/**
 * Section: Legal Page
 *
 * Plain-content layout for Privacy Policy, Terms of Use, etc. Loaded by
 * page-templates/legal-page.php via wp_enqueue_style in functions.php.
 *
 * Centered single column, comfortable reading width, classic legal-doc
 * typography. Inherits site fonts and brand link colour.
 */

.legal-page-main {
    /* Top padding clears the position:fixed header (height: calc(var(--vw) * 9.75))
       plus breathing room. Without this, the floating header overlaps the content. */
    padding: calc(var(--vw) * 13) calc(var(--vw) * 5) calc(var(--vw) * 5);
    background: #ffffff;
}

.legal-page-content {
    max-width: 880px;
    margin: 0 auto;
    font-family: "Montserrat", sans-serif;
    color: #1a1a1a;
    font-size: clamp(1rem, calc(var(--vw) * 1.05), 1.125rem);
    line-height: 1.7;
}

.legal-page-header {
    margin-bottom: calc(var(--vw) * 2);
    padding-bottom: calc(var(--vw) * 1.5);
    border-bottom: 1px solid #e6e6e6;
}

.legal-page-header h1 {
    font-family: "Open Sans Condensed", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(2rem, calc(var(--vw) * 3.5), 3.5rem);
    line-height: 1.1;
    margin: 0;
    color: #1a1a1a;
}

.legal-page-content h2,
.legal-page-content h3,
.legal-page-content h4 {
    font-family: "Open Sans Condensed", sans-serif;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2.2em;
    margin-bottom: 0.6em;
    line-height: 1.2;
}

.legal-page-content h2 { font-size: clamp(1.5rem, calc(var(--vw) * 2.2), 2.25rem); }
.legal-page-content h3 { font-size: clamp(1.25rem, calc(var(--vw) * 1.7), 1.75rem); }
.legal-page-content h4 { font-size: clamp(1.1rem, calc(var(--vw) * 1.3), 1.4rem); }

.legal-page-content p,
.legal-page-content ul,
.legal-page-content ol {
    margin: 0 0 1.1em;
}

.legal-page-content ul,
.legal-page-content ol {
    padding-left: 1.4em;
}

.legal-page-content li {
    margin-bottom: 0.35em;
}

.legal-page-content strong,
.legal-page-content b {
    font-weight: 700;
}

.legal-page-content a {
    color: #C22127;
    text-decoration: underline;
}

.legal-page-content a:hover {
    color: #8a1719;
}

.legal-page-content hr {
    margin: 2.5em 0;
    border: 0;
    border-top: 1px solid #e6e6e6;
}

@media (max-width: 768px) {
    .legal-page-main {
        padding: calc(var(--vw) * 6) calc(var(--vw) * 5);
    }
}
