:root {
  --bg: #0f1419;
  --surface: #1a2228;
  --surface-muted: #232d35;
  --border: #2e3a44;
  --text: #e8eaec;
  --text-muted: #8a9aa8;
  --text-subtle: #5a6a78;
  --accent-red: #b8342b;
  --accent-blue: #3a6f8f;
  --accent-amber: #c7922b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", "Consolas", "Monaco", monospace;
}

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

html { font-size: 16px; }

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

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

/* ── Nav ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.nav-brand .reticle {
  width: 22px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
}

.nav-brand .reticle svg { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.875rem;
}

.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent-red); }

/* ── Layout ── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.container.wide { max-width: 960px; }

/* ── Hero (index only) ── */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.badge-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ── Link cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  display: block;
}

.card:hover {
  border-color: var(--accent-blue);
  background: var(--surface-muted);
  text-decoration: none;
}

.card-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Policy pages ── */
.policy-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.policy-header .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.policy-header .breadcrumb a { color: var(--text-subtle); }
.policy-header .breadcrumb a:hover { color: var(--text-muted); }

.policy-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.policy-header .effective {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.policy-header .effective span {
  font-family: var(--font-mono);
  color: var(--text-subtle);
}

/* ── Doc body ── */
.doc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.doc h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }

.doc p { color: var(--text-muted); margin-bottom: 0.9rem; font-size: 0.9375rem; }

.doc ul, .doc ol {
  margin: 0.5rem 0 0.9rem 1.5rem;
}

.doc li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

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

.doc .highlight-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-red);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.doc .highlight-box p { margin: 0; }

/* ── Contact / footer strip ── */
.contact-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-strip p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-strip a {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--accent-blue);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 4rem;
}

footer a { color: var(--text-subtle); margin: 0 0.5rem; }
footer a:hover { color: var(--text-muted); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .container { padding: 2rem 1.25rem 4rem; }
  .hero { padding: 3rem 1.25rem 2rem; }
  .hero h1 { font-size: 1.75rem; }
  .contact-strip { flex-direction: column; align-items: flex-start; }
}
