:root {
  --bg: #0B0F14;
  --bg-elev: #10161F;
  --text: #E8F0FF;
  --muted: #8D96A8;
  --accent: #7B6CFF;
  --accent-bright: #A7B8FF;
  --line: rgba(232, 240, 255, 0.09);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --max: 720px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.legal-top {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.legal-top__inner {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.legal-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-family: var(--display); font-weight: 700;
  font-size: 0.95rem; letter-spacing: -0.02em; text-decoration: none;
}
.legal-brand:hover { text-decoration: none; color: var(--accent-bright); }
.legal-brand img { width: 18px; height: 17px; }
.legal-top__back {
  color: var(--muted); font-size: 0.85rem; text-decoration: none;
}
.legal-top__back:hover { color: var(--accent-bright); text-decoration: none; }

.legal-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 72px;
}
.legal-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-wrap h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.legal-updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.86rem;
}
.legal-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 32px;
}
.legal-nav a {
  display: inline-flex; align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(232, 240, 255, 0.03);
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(167, 184, 255, 0.35);
  background: rgba(123, 108, 255, 0.12);
  text-decoration: none;
}

.legal-section {
  margin: 0 0 22px;
  padding: 18px 18px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(232,240,255,0.03), transparent 70%);
}
.legal-section h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.legal-section ol {
  margin: 0;
  padding: 0 0 8px 1.15rem;
}
.legal-section li {
  margin: 0 0 10px;
  color: rgba(232, 240, 255, 0.88);
  font-size: 0.94rem;
}
.legal-section li::marker { color: var(--accent-bright); }
.legal-note {
  margin: 28px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(167, 184, 255, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer {
  margin-top: 8px;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(232, 240, 255, 0.08);
}
.site-footer__inner {
  width: min(960px, calc(100% - 0px));
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
}
.site-footer__links {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  color: var(--muted); font-size: 0.74rem;
}
.site-footer__links a { color: var(--muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--accent-bright); }
.site-footer__note {
  margin: 0; color: var(--muted); opacity: 0.72;
  font-size: 0.68rem; line-height: 1.45;
}
