/**
 * WS Legal Texts - Frontend Styles
 */

.ws-legal-text {
    line-height: 1.7;
    font-size: 16px;
}

.ws-legal-text h1 {
    font-size: 2em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.ws-legal-text h2 {
    font-size: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eee;
}

.ws-legal-text h3 {
    font-size: 1.25em;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
}

.ws-legal-text p {
    margin-bottom: 1em;
}

.ws-legal-text ul,
.ws-legal-text ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.ws-legal-text li {
    margin-bottom: 0.5em;
}

.ws-legal-text a {
    color: #0073aa;
    text-decoration: underline;
}

.ws-legal-text a:hover {
    color: #005177;
}

/* Table of Contents */
.ws-legal-toc {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px 25px;
    margin-bottom: 2em;
}

.ws-legal-toc h2 {
    font-size: 1.1em;
    margin: 0 0 15px 0;
    padding: 0;
    border: none;
}

.ws-legal-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ws-legal-toc li {
    margin-bottom: 8px;
}

.ws-legal-toc li.toc-sub {
    padding-left: 20px;
}

.ws-legal-toc a {
    color: #333;
    text-decoration: none;
}

.ws-legal-toc a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Section styling */
.ws-legal-section {
    margin-bottom: 2em;
}

/* Emphasis for important text */
.ws-legal-text strong,
.ws-legal-text b {
    font-weight: 600;
}

/* Legal notice styling */
.ws-legal-notice {
    background: #fffbeb;
    border-left: 4px solid #f0c14b;
    padding: 15px 20px;
    margin: 1.5em 0;
}

/* Contact info styling */
.ws-legal-contact {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin: 1.5em 0;
}

/* Print styles */
@media print {
    .ws-legal-text {
        font-size: 12pt;
        line-height: 1.5;
    }

    .ws-legal-toc {
        page-break-after: always;
    }

    .ws-legal-text h2 {
        page-break-after: avoid;
    }
}
