/* ========================================
   Legal Pages — Privacy, Terms, Cookies
   ======================================== */

.legal-hero {
    padding: 160px 0 64px;
    background: var(--blue-950);
    border-bottom: 1px solid var(--border);
}

.legal-hero .section-label {
    margin-bottom: 16px;
}

.legal-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.legal-hero .legal-updated {
    font-size: 0.82rem;
    color: var(--slate-500);
}

/* ── Legal content ── */

.legal-content {
    padding: 80px 0 120px;
    background: var(--blue-950);
}

.legal-body {
    max-width: 760px;
}

.legal-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-top: 56px;
    margin-bottom: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.legal-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-300);
    margin-top: 32px;
    margin-bottom: 10px;
}

.legal-body p {
    font-size: 0.9rem;
    color: var(--slate-400);
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal-body ul,
.legal-body ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.legal-body li {
    font-size: 0.9rem;
    color: var(--slate-400);
    line-height: 1.75;
    margin-bottom: 6px;
}

.legal-body a {
    color: var(--blue-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-body a:hover {
    color: var(--blue-300);
}

.legal-body strong {
    color: var(--slate-300);
    font-weight: 600;
}

.legal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.85rem;
}

.legal-body th,
.legal-body td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border);
    color: var(--slate-400);
}

.legal-body th {
    background: var(--blue-900);
    color: var(--slate-300);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Cookie Consent Banner ── */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--blue-900);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-banner-text {
    flex: 1;
    font-size: 0.82rem;
    color: var(--slate-400);
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--blue-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--blue-600);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: #2563eb;
}

.cookie-btn-reject {
    background: transparent;
    color: var(--slate-400);
    border: 1px solid var(--border);
}

.cookie-btn-reject:hover {
    color: var(--white);
    border-color: var(--slate-600);
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .legal-hero {
        padding: 130px 0 48px;
    }

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

    .legal-content {
        padding: 56px 0 80px;
    }

    .legal-body h2 {
        font-size: 1.1rem;
        margin-top: 40px;
        padding-top: 24px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}
