/* Legal pages (privacy, terms). Tokens from css/tokens.css. */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; background: var(--black); }
body {
    background-color: #0b0b0f;
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(199, 0, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(42, 101, 229, 0.05) 0%, transparent 40%);
}

:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-md);
    background: #fff;
    color: #120018;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.legal-header {
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(11, 11, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    border-radius: var(--radius-sm);
}
.logo-box img { width: 32px; height: 32px; }
.logo-word {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo-word span {
    background: linear-gradient(135deg, var(--p-base) 0%, var(--b-base) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: color var(--dur-fast) var(--ease-out);
}
.back-btn:hover { color: #fff; }

.legal-container {
    max-width: 800px;
    margin: 4rem auto 8rem;
    padding: 0 5%;
}
.legal-container:focus { outline: none; }

.legal-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    padding: 3rem;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #d48bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-wrap: balance;
}

.last-updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2.5rem; }

h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
    scroll-margin-top: 90px;
}

p, li { font-size: 0.95rem; line-height: 1.7; color: rgba(255, 255, 255, 0.8); }
p { margin-bottom: 1.5rem; }
ul, ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
.legal-card a { color: #e6a8ff; text-underline-offset: 3px; }

.alert-box {
    background: rgba(199, 0, 255, 0.05);
    border: 1px solid rgba(199, 0, 255, 0.2);
    padding: 1.2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 5%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .legal-card { padding: 2rem 1.25rem; border-radius: 20px; }
    .legal-container { margin-top: 2rem; padding: 0 1rem; }
}
