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

:root {
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --bg: #0f0f13;
  --surface: #18181f;
  --surface2: #1e1e28;
  --border: #2a2a3a;
  --text: #f1f1f5;
  --text-muted: #9b9bb8;
  --text-dim: #6b6b8a;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem;
  height: 64px;
  background: rgba(15, 15, 19, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo svg { width: 32px; height: 32px; }
.nav-logo .logo-accent { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-ghost { color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal .meta { color: var(--text-muted); font-size: 0.92rem; margin: 0.25rem 0 2rem; }

.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.4rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.legal h3 { font-size: 1.02rem; font-weight: 600; color: #a5b4fc; margin: 1.4rem 0 0.4rem; }
.legal p { margin: 0.7rem 0; color: #d6d6e2; }
.legal ul { margin: 0.6rem 0 0.6rem 1.4rem; color: #d6d6e2; }
.legal li { margin: 0.35rem 0; }
.legal strong { color: var(--text); }
.legal a { color: #a5b4fc; }

.legal .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.legal .see-also { margin-top: 2.5rem; color: var(--text-muted); }

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

footer p { color: var(--text-dim); font-size: 0.82rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-dim); font-size: 0.82rem; text-decoration: none; white-space: nowrap; }
.footer-links a:hover { color: var(--text-muted); }

@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .nav-actions .btn-ghost { display: none; }
  footer { flex-direction: column; text-align: center; }
}
