/* ============================================================
   legal.css — shared styles for Privacy / Cookie / Terms / Legal
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0e1f;
    --bg-2: #111631;
    --surface: #0f1328;
    --surface-card: #161b33;
    --brand: #6366f1;
    --brand-2: #22d3ee;
    --brand-3: #a855f7;
    --grad: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    --ink: #e8ecf8;
    --ink-h: #ffffff;
    --muted: #8892b0;
    --line: rgba(99,102,241,0.18);
}
[data-theme="light"] {
    --bg: #eaf3e2;
    --bg-2: #d9e9c9;
    --surface: #f7fbf1;
    --surface-card: #ffffff;
    --brand: #16a34a;
    --brand-2: #65a30d;
    --brand-3: #15803d;
    --grad: linear-gradient(135deg, #16a34a 0%, #84cc16 100%);
    --ink: #1f3a1f;
    --ink-h: #0f2410;
    --muted: #4a6b4a;
    --line: rgba(22,163,74,0.22);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--surface);
}
h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    color: var(--ink-h);
}

/* Nav */
nav {
    background: rgba(15,19,40,0.85);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
}
[data-theme="light"] nav { background: rgba(247,251,241,0.85); }
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink-h);
    text-decoration: none;
}
.nav-controls { display: flex; gap: 8px; }
.nav-toggle {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    color: var(--ink);
    width: 40px; height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.12); border-color: var(--brand-2); color: var(--brand-2); }
[data-theme="light"] .nav-toggle { background: rgba(22,163,74,0.06); }
[data-theme="light"] .nav-toggle:hover { background: rgba(22,163,74,0.14); }
.nav-toggle svg { width: 18px; height: 18px; }
.theme-ico-light { display: none; }
[data-theme="light"] .theme-ico-dark { display: none; }
[data-theme="light"] .theme-ico-light { display: inline-flex; }

/* Page header */
.page-header {
    position: relative;
    padding: 72px 22px 52px;
    text-align: center;
    background:
        radial-gradient(900px 400px at 80% -10%, rgba(34,211,238,0.18), transparent 60%),
        radial-gradient(700px 360px at 10% 10%, rgba(168,85,247,0.18), transparent 55%),
        linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
    color: #fff;
    border-bottom: 1px solid var(--line);
}
[data-theme="light"] .page-header {
    color: var(--ink-h);
    background:
        radial-gradient(900px 400px at 80% -10%, rgba(132,204,22,0.30), transparent 60%),
        radial-gradient(700px 360px at 10% 10%, rgba(22,163,74,0.25), transparent 55%),
        linear-gradient(160deg, #eaf3e2 0%, #d9e9c9 100%);
}
.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-2);
    margin-bottom: 10px;
}
.page-header h1 { font-size: 2.4rem; margin-bottom: 8px; }
.page-header p { color: var(--muted); font-size: 1rem; }
[data-theme="light"] .page-header p { color: #2e5a2e; }

/* Content */
main {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 22px 72px;
}
.card {
    background: var(--surface-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
[data-theme="light"] .card { box-shadow: 0 10px 30px rgba(15,36,16,0.08); }
.card h2 {
    font-size: 1.35rem;
    margin: 26px 0 12px;
    color: var(--ink-h);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
}
.card h2:first-of-type { margin-top: 0; }
.card p, .card li { color: var(--muted); font-size: 0.97rem; margin-bottom: 12px; }
.card ul, .card ol { padding-left: 22px; margin-bottom: 12px; }
.card li::marker { color: var(--brand); }
.card a { color: var(--brand-2); font-weight: 600; text-decoration: none; }
.card a:hover { color: var(--brand-3); text-decoration: underline; }
.card strong { color: var(--ink-h); }
.card table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
    font-size: 0.92rem;
}
.card th, .card td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}
.card th { color: var(--ink-h); font-weight: 600; background: rgba(99,102,241,0.06); }
[data-theme="light"] .card th { background: rgba(22,163,74,0.06); }

.updated {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-2);
    background: rgba(34,211,238,0.10);
    border: 1px solid rgba(34,211,238,0.25);
    border-radius: 999px;
}
[data-theme="light"] .updated { background: rgba(22,163,74,0.10); border-color: rgba(22,163,74,0.30); }

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 12px 22px;
    background: var(--grad);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 10px 24px rgba(34,211,238,0.25);
}
[data-theme="light"] .back-home { box-shadow: 0 10px 24px rgba(22,163,74,0.30); }
.back-home:hover { transform: translateY(-3px); }

footer {
    background: linear-gradient(160deg, #060918 0%, #0a0e1f 100%);
    color: #7b89a8;
    text-align: center;
    padding: 32px 20px;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
}
[data-theme="light"] footer {
    background: linear-gradient(160deg, #d9e9c9 0%, #eaf3e2 100%);
    color: #2e5a2e;
}
footer a { color: var(--brand-2); text-decoration: none; font-weight: 600; margin: 0 4px; }
footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .page-header { padding: 52px 18px 36px; }
    .page-header h1 { font-size: 1.8rem; }
    main { padding: 32px 16px 52px; }
    .card { padding: 24px 18px; border-radius: 14px; }
    .card h2 { font-size: 1.15rem; }
    nav { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
