/* ============================================================
   LEGAL PAGES — Privacy, Cookie, Terms
   ============================================================ */

.legal-page {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
}
.legal-page .container { max-width: 800px; }

/* --- Header ---------------------------------------------- */
.legal-header {
    text-align: center;
    margin-bottom: 40px;
}
.legal-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.legal-header p {
    font-size: .82rem;
    color: var(--text-muted);
}

/* --- Content --------------------------------------------- */
.legal-body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}
.legal-body h2 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--coral);
    letter-spacing: .5px;
    margin: 32px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
    font-size: .92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 8px;
}
.legal-body p {
    font-size: .86rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-body ul {
    margin: 8px 0 16px 20px;
    list-style: none;
}
.legal-body ul li {
    font-size: .84rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 3px 0;
    position: relative;
    padding-left: 18px;
}
.legal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    opacity: .5;
}
.legal-body strong { color: var(--text-primary); }
.legal-body a { color: var(--coral); }
.legal-body a:hover { text-decoration: underline; }

/* --- Cookie Banner --------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 20px 24px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.cookie-banner--visible {
    transform: translateY(0);
}
.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}
.cookie-banner__text {
    flex: 1;
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.cookie-banner__text a {
    color: var(--coral);
    text-decoration: underline;
}
.cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* --- Cookie Preferences (in cookie policy page) ---------- */
.cookie-prefs {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.cookie-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.cookie-pref:last-child { border-bottom: none; }
.cookie-pref__info h4 {
    font-size: .85rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.cookie-pref__info p {
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
.cookie-pref__toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.cookie-pref__toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-pref__slider {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition);
}
.cookie-pref__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition);
}
.cookie-pref__toggle input:checked + .cookie-pref__slider {
    background: var(--coral);
    border-color: var(--coral);
}
.cookie-pref__toggle input:checked + .cookie-pref__slider::before {
    transform: translateX(18px);
    background: #fff;
}
.cookie-pref__toggle input:disabled + .cookie-pref__slider {
    opacity: .5;
    cursor: not-allowed;
}

/* --- Responsive ------------------------------------------ */
@media (max-width: 768px) {
    .legal-page { padding: 90px 0 60px; }
    .legal-body { padding: 28px 20px; }
    .legal-body h2 { font-size: .95rem; }
    .legal-body p { font-size: .82rem; }
    .legal-body ul li { font-size: .8rem; }

    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .cookie-banner__actions {
        width: 100%;
    }
    .cookie-banner__actions .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .legal-page { padding: 80px 0 40px; }
    .legal-body { padding: 20px 16px; border-radius: var(--radius-lg); }
    .legal-header h1 { font-size: 1.4rem; }
}
