@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
    color-scheme: dark;
    --page: oklch(.13 .005 250);
    --card: oklch(.16 .005 250);
    --surface: oklch(.18 .005 250);
    --border: oklch(.22 .005 250);
    --border-strong: oklch(.28 .005 250);
    --text: oklch(.96 .003 250);
    --muted: oklch(.70 .005 250);
    --subtle: oklch(.52 .005 250);
    --accent: #e0454a;
    --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { min-height: 100%; background: var(--page); scroll-behavior: smooth; }
body {
    min-height: 100%;
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { color: #fff; background: rgba(224, 69, 74, .42); }
* { scrollbar-width: thin; scrollbar-color: oklch(.28 .005 250) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: oklch(.28 .005 250);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

a { color: inherit; }
.legal-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 56px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
    background: color-mix(in srgb, var(--page) 88%, transparent);
    backdrop-filter: blur(16px);
}
.legal-nav-inner {
    width: min(1120px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-family: Manrope, var(--font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.03em;
    text-decoration: none;
}
.legal-brand img { width: 21px; height: 21px; object-fit: contain; }
.legal-nav-links { display: flex; align-items: center; gap: 20px; }
.legal-nav-links a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease;
}
.legal-nav-links a:hover, .legal-nav-links a[aria-current="page"] { color: var(--text); }

.legal-main {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    padding: 74px 0 96px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease;
}
.back-link:hover { color: var(--text); }
.back-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.legal-header { padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.legal-kicker {
    display: block;
    margin-bottom: 11px;
    color: var(--subtle);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.legal-header h1 {
    margin: 0;
    color: var(--text);
    font-family: Manrope, var(--font);
    font-size: clamp(34px, 6vw, 52px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.05em;
}
.legal-updated { margin: 13px 0 0; color: var(--subtle); font-size: 12px; }
.legal-intro { margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.legal-content { padding-top: 10px; }
.legal-section { padding: 30px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.legal-section h2 {
    margin: 0 0 13px;
    color: var(--text);
    font-family: Manrope, var(--font);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.025em;
}
.legal-section h3 {
    margin: 23px 0 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}
.legal-section p { margin: 0 0 12px; color: var(--muted); }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--text); font-weight: 600; }
.legal-section a { color: var(--text); text-underline-offset: 3px; }
.legal-section ul { margin: 13px 0 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.legal-section li { position: relative; padding-left: 18px; color: var(--muted); }
.legal-section li::before {
    position: absolute;
    top: .73em;
    left: 2px;
    width: 4px;
    height: 4px;
    content: "";
    background: var(--subtle);
    border-radius: 50%;
}
.legal-callout {
    margin-top: 18px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.legal-callout p { font-size: 13px; }

.legal-footer {
    width: min(1120px, calc(100% - 40px));
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--border);
    color: var(--subtle);
    font-size: 11px;
}
.legal-footer-links { display: flex; gap: 18px; }
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer a:hover { color: var(--text); }

@media (max-width: 620px) {
    .legal-nav-inner, .legal-main, .legal-footer { width: min(calc(100% - 28px), 760px); }
    .legal-nav-links a:first-child { display: none; }
    .legal-main { padding: 48px 0 72px; }
    .back-link { margin-bottom: 28px; }
    .legal-header { padding-bottom: 28px; }
    .legal-section { padding: 26px 0; }
    .legal-footer { padding: 23px 0; align-items: flex-start; flex-direction: column-reverse; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
