:root {
  --ink: #1a1f1c;
  --ink-soft: #334155;
  --muted: #64748b;
  --brand: #1e6243;
  --brand-dark: #15462f;
  --cream: #f7fafc;
  --line: #e2e8f0;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

a { color: var(--brand); }

.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 0.55rem;
  background: var(--brand);
  color: var(--white);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 13px;
  line-height: 1;
}

.word {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  text-transform: lowercase;
}

.tabs {
  display: flex;
  gap: 4px;
  margin: 28px 0 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.tab {
  flex: 1;
  min-width: 0;
  text-align: center;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 11px 10px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab:hover { background: #f0f7f3; color: var(--brand); }

.tab[aria-current="page"] {
  background: var(--brand);
  color: var(--white);
}

h1 {
  font-size: 1.75rem;
  margin: 28px 0 8px;
}

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

p, li { font-size: 0.95rem; color: var(--ink-soft); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
  background: #eef3f0;
  color: var(--brand-dark);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.perm {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.legal-foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .tab { font-size: 0.78rem; padding: 10px 8px; }
  h1 { font-size: 1.45rem; }
}
