/* ============================================================
   LEGAL PAGES — Privacy, Terms, Cookie Policy
   Small hero + clean text layout
   ============================================================ */

.legal-hero {
    position: relative;
    width: 100%;
    height: 30vh;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(-1 * var(--nav-height));
}

.legal-hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.legal-hero__canvas canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.legal-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.legal-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    padding-top: var(--nav-height);
}

.legal-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.legal-hero__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

[data-theme="light"] .legal-hero__fade {
    height: 60px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(236,232,244,0.3) 30%,
        rgba(236,232,244,0.7) 65%,
        #ece8f4 100%
    );
}

/* ── Content ── */
.legal-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.legal-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #d8b4fe;
    margin: 0 0 0.75rem;
}

[data-theme="light"] .legal-section__title {
    color: #7c3aed;
}

.legal-section__text {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 0 0 1rem;
}

.legal-section__text:last-child {
    margin-bottom: 0;
}

.legal-section__list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}

.legal-section__list li {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.85;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.legal-section__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.legal-contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.legal-contact__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-contact__text a {
    color: var(--accent);
    transition: color 0.2s;
}

.legal-contact__text a:hover {
    color: var(--accent-hover);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .legal-container {
        padding: 2rem 1rem 4rem;
    }

    .legal-section__title {
        font-size: 1.1rem;
    }

    .legal-section__text,
    .legal-section__list li {
        font-size: 0.87rem;
    }
}
