:root {
  --bg: #0a0e14;
  --surface: #121922;
  --text: #e8edf4;
  --muted: #8b9aad;
  --accent: #c8f542;
  --accent-dim: rgba(200, 245, 66, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 42rem;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Top bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nav-btn:hover {
  text-decoration: none;
  background: var(--accent-dim);
  border-color: rgba(200, 245, 66, 0.35);
  color: var(--accent);
}

.nav-btn[aria-current="page"] {
  background: var(--accent-dim);
  border-color: rgba(200, 245, 66, 0.45);
  color: var(--accent);
}

/* Main */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem 3.5rem;
}

.hero {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Legal pages */
.doc h1 {
  font-size: clamp(1.5rem, 4.5vw, 1.85rem);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.doc h2 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc p {
  margin: 0 0 1rem;
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.35rem;
}

.doc .meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

footer a {
  font-weight: 600;
}

@media (min-width: 480px) {
  .header-inner {
    padding: 0.875rem 1.25rem;
  }
  main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
