/* Legal pages — match existing inner-page header, fonts, colors, and spacing */
.legal-page .page-header {
    background-color: #78ddfa;
}

.legal-content-section {
    padding: 48px 0 80px;
    background: #fff;
}

.legal-article {
    max-width: 860px;
    margin: 0 auto;
    color: #1a1b1e;
    font-family: "Red Hat Text", sans-serif;
    font-size: 16px;
    line-height: 1.875;
}

.legal-updated {
    color: #5a6b7c;
    margin: 0 0 28px;
    font-size: 15px;
}

.legal-article h2 {
    color: #0b3d91;
    font-family: "Red Hat Display", sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.35;
    margin: 36px 0 12px;
}

.legal-article h2:first-of-type {
    margin-top: 0;
}

.legal-article h3 {
    color: #1a1b1e;
    font-family: "Red Hat Display", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 24px 0 8px;
}

.legal-article p {
    margin: 0 0 16px;
    color: #1a1b1e;
}

.legal-article ul,
.legal-article ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.legal-article li {
    margin-bottom: 6px;
}

.legal-article a {
    color: #0b3d91;
    text-decoration: underline;
}

.legal-article a:hover,
.legal-article a:focus {
    color: #ed2f6b;
}

.legal-article a:focus-visible {
    outline: 2px solid #0b3d91;
    outline-offset: 2px;
}

.legal-article code {
    font-size: 0.92em;
    background: #f3f7fd;
    padding: 1px 6px;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .legal-content-section {
        padding: 32px 0 56px;
    }

    .legal-article h2 {
        font-size: 22px;
    }

    .legal-article h3 {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .legal-page .page-header {
        height: auto !important;
        min-height: 0 !important;
        padding: 36px 16px 28px !important;
    }

    .legal-content-section {
        padding: 24px 0 48px;
    }

    .legal-article {
        font-size: 15px;
        line-height: 1.75;
    }

    .legal-article h2 {
        font-size: 20px;
        margin-top: 28px;
    }
}

@media (max-width: 480px) {
    .legal-article h2 {
        font-size: 19px;
    }

    .legal-article h3 {
        font-size: 17px;
    }
}
