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

:root {
  --main-bg: #09090b;
  --surface: #111113;
  --surface-2: #18181b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #fafafa;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;
  --muted-soft: #71717a;
  --violet: #8b5cf6;
  --violet-hover: #7c3aed;
  --violet-soft: rgba(139, 92, 246, 0.15);
  --font: 'Geist', -apple-system, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 820px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--main-bg);
  color: var(--text);
  letter-spacing: -0.011em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--violet-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(9, 9, 11, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px var(--violet);
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--text); }

main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 96px;
  position: relative;
  z-index: 1;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.legal-header .eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-header .updated {
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--text);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text-soft);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content li::marker {
  color: var(--muted-soft);
}

.legal-content a {
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid var(--violet-soft);
  transition: border-color 0.15s;
}

.legal-content a:hover { border-color: var(--violet); }

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.15s;
}

footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  main { padding: 40px 20px 64px; }
  h1 { font-size: 1.75rem; }
  .legal-content h2 { font-size: 1.15rem; }
}
