/* Shared chrome for /about and /legal/* — matches AppLook. */
:root {
  color-scheme: dark;
  --bg: #050b1a;
  --bg-mid: #0a1428;
  --surface: #12203a;
  --surface-high: #1a2b4a;
  --ink: #f0f4ff;
  --muted: #8b9bb8;
  --brand: #4c6fff;
  --brand-muted: #8aa0ff;
  --cta: #5b8cff;
  --agree: #3ddc84;
  --hairline: rgba(139, 155, 184, 0.28);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-padding-bottom: 140px; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 480px at 50% -80px, #1a2b4a 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 42%, #0e1a30 100%);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--brand-muted); }
a:hover { color: var(--ink); }

.top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 20px;
  background: rgba(5, 11, 26, 0.92);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-high);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 168px;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 0 0 6px;
}

h2 {
  color: var(--brand-muted);
  font-size: 1.05rem;
  margin: 28px 0 8px;
}

.tagline,
.updated { color: var(--muted); margin-top: 0; }

.card,
.markets {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 12px;
}

.markets h3 {
  margin: 14px 0 4px;
  font-size: 0.95rem;
}

.markets h3:first-child { margin-top: 0; }

.markets p,
.markets ul { margin: 0; }

ul, ol { padding-left: 1.15rem; }
li { margin: 0 0 6px; }

.actions { margin: 24px 0 8px; display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.btn:hover { color: #fff; filter: brightness(1.08); }

.btn.secondary {
  background: transparent;
  color: var(--brand-muted);
  border: 1px solid var(--brand);
}

.btn.secondary:hover { color: var(--ink); background: var(--surface-high); }

.links {
  margin-top: 36px;
  font-size: 0.85rem;
  color: var(--muted);
}

.react {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(18, 32, 58, 0.96);
  border-top: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
}

.react-label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.react-actions { display: flex; gap: 8px; }

.react button {
  min-height: 48px;
  min-width: 112px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.react button:hover { background: rgba(76, 111, 255, 0.16); }

.react button:focus-visible {
  outline: 2px solid var(--brand-muted);
  outline-offset: 2px;
}

.react button:active { transform: scale(0.98); }

.react button[data-vote="agree"].is-on {
  background: var(--agree);
  border-color: var(--agree);
  color: #062014;
}

.react button[data-vote="disagree"].is-on {
  background: var(--surface-high);
  border-color: var(--brand-muted);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--brand-muted);
}

.react-note {
  flex-basis: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

code {
  font-size: 0.9em;
  color: var(--brand-muted);
}
