.privacy-page {
    background: #ffffff;
}

.terms-page .privacy-toc {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* The Terms section uses the same ID as the public Services section. */
.terms-page #services {
    background: #ffffff;
}

.terms-page #services::before {
    display: none;
}

.privacy-hero {
    padding: 82px 0 72px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.privacy-reading-width {
    max-width: 850px;
}

.privacy-hero .content-page-heading {
    margin: 0 0 20px;
}

.privacy-hero-description {
    margin: 0 0 22px;
    color: #344258;
    font-size: var(--text-base);
    line-height: 1.7;
}

.privacy-hero p:not(.eyebrow) {
    color: #596579;
}

.privacy-updated {
    display: inline-flex;
    gap: 5px;
    margin: 0 0 28px;
    padding: 8px 12px;
    border: 1px solid #d6e2f5;
    border-radius: 999px;
    background: #ffffff;
    color: #344258 !important;
    font-size: var(--text-xs);
}

.legal-review-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    padding: 15px 17px;
    border: 1px solid #b9cff0;
    border-radius: 12px;
    background: #edf4ff;
    color: #173968;
    font-size: var(--text-xs);
    line-height: 1.5;
}

.legal-review-notice > span {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border-radius: 50%;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 700;
}

.privacy-policy-section {
    padding: 88px 0 110px;
}

.privacy-layout {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 800px);
    gap: 72px;
    justify-content: center;
    align-items: start;
}

.privacy-toc {
    position: sticky;
    top: 110px;
    padding: 22px;
    border: 1px solid #e0e6ee;
    border-radius: 14px;
    background: #f7f9fc;
}

.privacy-toc-title {
    margin: 0 0 14px;
    color: #172033;
    font: 600 var(--text-sm) Poppins, sans-serif;
}

.privacy-toc ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: privacy-toc;
}

.privacy-toc li {
    counter-increment: privacy-toc;
}

.privacy-toc a {
    display: grid;
    grid-template-columns: 23px 1fr;
    gap: 7px;
    color: #526178;
    font-size: var(--text-xs);
    line-height: 1.45;
}

.privacy-toc a::before {
    content: counter(privacy-toc, decimal-leading-zero);
    color: #4b7dca;
    font-weight: 700;
}

.privacy-toc a:hover,
.privacy-toc a:focus-visible,
.privacy-content a:hover,
.privacy-content a:focus-visible {
    color: #1f63cd;
}

.privacy-toc a:focus-visible,
.privacy-content a:focus-visible,
.privacy-back-to-top:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 3px;
}

.privacy-content {
    min-width: 0;
    color: #46546a;
    font-size: var(--text-sm);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.privacy-content > section {
    scroll-margin-top: 105px;
    padding: 0 0 58px;
    margin: 0 0 58px;
    border-bottom: 1px solid #e5e7eb;
}

.privacy-content > section:last-of-type {
    margin-bottom: 38px;
}

.privacy-content h2 {
    margin: 0 0 22px;
    color: #172033;
    font: 600 var(--text-2xl)/1.3 Poppins, sans-serif;
    letter-spacing: -0.035em;
    font-size: var(--text-2xl) !important;
}

.privacy-content h3 {
    margin: 34px 0 12px;
    color: #26334a;
    font: 600 var(--text-lg)/1.35 Poppins, sans-serif;
    letter-spacing: -0.025em;
}

.privacy-content p {
    margin: 0 0 17px;
}

.privacy-content ul {
    display: grid;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.privacy-content li {
    position: relative;
    padding-left: 25px;
}

.privacy-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
}

.privacy-content a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cookie-page .privacy-content code {
    padding: 2px 6px;
    border: 1px solid #d8e2f0;
    border-radius: 5px;
    background: #f3f6fa;
    color: #173968;
    font-size: 0.92em;
    overflow-wrap: anywhere;
}

.privacy-business-card {
    display: grid;
    gap: 7px;
    margin: 20px 0 24px;
    padding: 22px;
    border-left: 4px solid #4b7dca;
    border-radius: 0 12px 12px 0;
    background: #f5f7fa;
    color: #46546a;
    font-style: normal;
}

.privacy-business-card strong {
    margin-bottom: 3px;
    color: #172033;
    font-family: Poppins, sans-serif;
}

.privacy-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid #cdd9ea;
    border-radius: 9px;
    background: #ffffff;
    color: #2563eb;
    font-size: var(--text-xs);
    font-weight: 700;
    text-decoration: none !important;
}

@media (max-width: 900px) {
    .privacy-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .privacy-toc {
        position: static;
        max-width: 800px;
    }

    .terms-page .privacy-toc {
        max-height: none;
        overflow: visible;
    }

    .privacy-toc ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 24px;
    }

    .privacy-content {
        max-width: 800px;
    }
}

@media (max-width: 520px) {
    .privacy-hero {
        padding: 58px 0 54px;
    }

    .privacy-hero-description {
        font-size: var(--text-sm);
    }

    .privacy-updated {
        display: flex;
        width: fit-content;
        border-radius: 10px;
    }

    .privacy-policy-section {
        padding: 58px 0 78px;
    }

    .privacy-layout {
        gap: 38px;
    }

    .privacy-toc {
        padding: 19px;
    }

    .privacy-toc ol {
        grid-template-columns: 1fr;
    }

    .privacy-content {
        font-size: var(--text-sm);
        line-height: 1.75;
    }

    .privacy-content > section {
        padding-bottom: 42px;
        margin-bottom: 42px;
    }

    .privacy-content h2 {
        font-size: var(--text-xl) !important;
    }

    .privacy-content h3 {
        font-size: var(--text-base);
    }

    .legal-review-notice {
        align-items: flex-start;
    }
}
