/* ========================================================================== 
   Icon7 — Privacy Policy
   Responsive editorial legal layout using the shared design system.
   ========================================================================== */
.legal-page-hero {
    position: relative;
    isolation: isolate;
}

.legal-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(26, 43, 74, 0.72), rgba(26, 43, 74, 0.28));
}

.legal-page-hero .page__hero__content {
    text-align: left;
    max-width: 1180px;
    margin: 0 auto;
}

.legal-page-hero .page__hero__content h1 {
    max-width: 760px;
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 400;
    line-height: 1.08;
    color: var(--white);
    letter-spacing: -0.025em;
}

.legal-page {
    background: var(--cream);
}

.legal-page .legal-layout {
    width: min(1240px, calc(100% - 8rem));
    margin: 0 auto;
    padding: 6rem 0 7rem;
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.legal-page .legal-sidebar {
    position: sticky;
    top: 130px;
}

.legal-page .legal-eyebrow {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--terracotta);
}

.legal-page .legal-sidebar h2 {
    margin: 0 0 1rem;
    font-family: var(--font-script);
    font-size: clamp(2.6rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1;
    color: var(--navy);
}

.legal-page .legal-sidebar > p {
    margin: 0 0 2rem;
    font-family: var(--font-serif);
    font-size: 0.98rem;
    line-height: 1.8;
    color: rgba(26, 43, 74, 0.72);
}

.legal-page .legal-toc {
    display: grid;
    gap: 0;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(26, 43, 74, 0.12);
}

.legal-page .legal-toc:empty {
    display: none;
}

.legal-page .legal-toc a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(26, 43, 74, 0.1);
    font-family: var(--font-serif);
    font-size: 0.84rem;
    line-height: 1.45;
    color: rgba(26, 43, 74, 0.7);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.legal-page .legal-toc a:hover,
.legal-page .legal-toc a.is-active {
    padding-left: 0.4rem;
    color: var(--terracotta);
}

.legal-page .legal-contact-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--terracotta);
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--terracotta);
    text-decoration: none;
}

.legal-page .legal-content-card {
    min-width: 0;
    padding: clamp(2rem, 5vw, 4.5rem);
    background: var(--white);
    border: 1px solid rgba(26, 43, 74, 0.08);
    box-shadow: 0 24px 80px rgba(26, 43, 74, 0.08);
}

.legal-page .legal-document-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(26, 43, 74, 0.12);
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(26, 43, 74, 0.58);
}

.legal-page .content {
    max-width: 760px;
    margin: 0;
    padding: 0;
}

.legal-page .content h2,
.legal-page .content h3,
.legal-page .content .legal-section-heading {
    scroll-margin-top: 130px;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--navy);
}

.legal-page .content h2,
.legal-page .content h3 {
    margin: 3rem 0 1rem;
    padding-top: 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(26, 43, 74, 0.1);
}

.legal-page .content .legal-section-heading {
    margin-top: 2.75rem;
}

.legal-page .content > :first-child,
.legal-page .content > :first-child strong {
    margin-top: 0;
}

.legal-page .content p,
.legal-page .content ul,
.legal-page .content ol,
.legal-page .content blockquote {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(26, 43, 74, 0.83);
}

.legal-page .content p {
    margin: 0 0 1.25rem;
}

.legal-page .content p strong:first-child {
    color: var(--navy);
}

.legal-page .content ul,
.legal-page .content ol {
    margin: 1rem 0 1.5rem;
    padding-left: 1.4rem;
}

.legal-page .content li {
    margin-bottom: 0.65rem;
    padding-left: 0.25rem;
}

.legal-page .content a {
    color: var(--terracotta);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

@media (max-width: 1024px) {
    .legal-page .legal-layout {
        width: min(100% - 4rem, 920px);
        padding: 5rem 0;
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .legal-page .legal-sidebar {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
        column-gap: 3rem;
    }

    .legal-page .legal-sidebar .legal-eyebrow,
    .legal-page .legal-sidebar h2,
    .legal-page .legal-sidebar > p,
    .legal-page .legal-sidebar .legal-contact-link {
        grid-column: 1;
    }

    .legal-page .legal-toc {
        grid-column: 2;
        grid-row: 1 / span 4;
        margin: 0;
    }
}

@media (max-width: 700px) {
    .legal-page-hero .page__hero__content {
        text-align: center;
    }

    .legal-page .legal-layout {
        width: calc(100% - 2rem);
        padding: 3.5rem 0 4rem;
    }

    .legal-page .legal-sidebar {
        display: block;
    }

    .legal-page .legal-toc {
        margin: 1.75rem 0 2rem;
    }

    .legal-page .legal-content-card {
        padding: 2rem 1.35rem;
    }

    .legal-page .legal-document-meta {
        flex-direction: column;
        margin-bottom: 2rem;
    }
}
