/* =========================================================
   LEGAL PAGE FOUNDATION
========================================================= */

.legal-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.legal-page section {
    width: 100%;
    box-sizing: border-box;
}

.legal-page p {
    color: var(--color-text-muted);
}

.legal-page a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   SHARED LABEL
========================================================= */

.legal-page .section-label {
    display: inline-block;
    margin-bottom: 1.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}


/* =========================================================
   HERO
========================================================= */

.legal-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 6rem 1.5rem;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    overflow: hidden;
}

.legal-hero::before {
    content: "";
    position: absolute;
    top: -250px;
    left: 50%;
    width: 520px;
    height: 520px;
    transform: translateX(-50%);
    border: 1px solid rgba(102, 122, 104, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.legal-hero::after {
    content: "";
    position: absolute;
    top: -205px;
    left: 50%;
    width: 430px;
    height: 430px;
    transform: translateX(-50%);
    border: 1px solid rgba(102, 122, 104, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.legal-hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
}

.legal-hero h1 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(3.2rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.legal-hero-intro {
    max-width: 700px;
    margin: 1.8rem auto 0;
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.8;
}

.legal-updated {
    display: block;
    margin-top: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}


/* =========================================================
   CONTENT SECTIONS
========================================================= */

.legal-section {
    padding: 6.5rem 1.5rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.legal-section-alt {
    background: var(--color-background);
}

.legal-content-block {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content-block h2 {
    max-width: 760px;
    margin: 0;
    color: var(--color-text);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.legal-content-block p {
    max-width: 760px;
    margin: 1.35rem 0 0;
    font-size: 1rem;
    line-height: 1.85;
}


/* =========================================================
   LISTS
========================================================= */

.legal-content-block ul {
    max-width: 760px;
    margin: 1.5rem 0 0;
    padding-left: 1.35rem;
}

.legal-content-block li {
    margin-bottom: 0.8rem;
    padding-left: 0.25rem;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.legal-content-block li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CTA
========================================================= */

.legal-cta {
    position: relative;
    padding: 8rem 1.5rem;
    background: var(--color-primary);
    text-align: center;
    overflow: hidden;
}

.legal-cta::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -140px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.legal-cta::after {
    content: "";
    position: absolute;
    bottom: -260px;
    left: -160px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(102, 122, 104, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.legal-cta-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.legal-cta .section-label {
    color: #aebdae;
}

.legal-cta h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 650;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.legal-cta p {
    max-width: 640px;
    margin: 1.4rem auto 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.8;
}

.legal-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 155px;
    margin-top: 2rem;
    padding: 0.9rem 1.4rem;
    border: 1px solid #ffffff;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.legal-cta .btn:hover {
    transform: translateY(-2px);
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-primary);
}


/* =========================================================
   PAGE ENTRANCE
========================================================= */

.legal-hero-content {
    animation: legalHeroContent 0.7s ease both;
}

.legal-section,
.legal-cta {
    animation: legalSectionReveal 0.7s ease both;
}

@keyframes legalHeroContent {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes legalSectionReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .legal-content-block {
        max-width: 760px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .legal-hero {
        min-height: 430px;
        padding: 5rem 1.25rem;
    }

    .legal-hero::before {
        width: 390px;
        height: 390px;
    }

    .legal-hero::after {
        width: 320px;
        height: 320px;
    }

    .legal-hero h1 {
        font-size: 3.5rem;
    }

    .legal-section {
        padding: 5rem 1.25rem;
    }

    .legal-content-block h2 {
        font-size: 2.15rem;
    }

    .legal-content-block p,
    .legal-content-block li {
        font-size: 0.95rem;
        line-height: 1.78;
    }

    .legal-cta {
        padding: 6rem 1.25rem;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .legal-hero {
        min-height: 400px;
    }

    .legal-hero h1 {
        font-size: 3rem;
    }

    .legal-page .section-label {
        font-size: 0.68rem;
    }

    .legal-section {
        padding: 4.25rem 1rem;
    }

    .legal-content-block h2 {
        font-size: 1.85rem;
    }

    .legal-cta {
        padding: 5rem 1rem;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .legal-hero-content,
    .legal-section,
    .legal-cta {
        animation: none;
    }

    .legal-page a {
        transition: none;
    }

}

