/* OptionsKing legal pages — shared styling (money-green / charcoal, matches the
   app design tokens). Self-contained, no external fonts or assets. Light + dark
   aware, mobile-first. Host these on optionsking.app and link from the app +
   both app-store listings. */

:root {
  --green-50: #e9f7ef;
  --green-100: #cdeeda;
  --green-500: #129463;
  --green-600: #0c7a51;
  --green-700: #0a6142;
  --green-800: #084c34;
  --ink-700: #2c342e;
  --ink-800: #1d231f;
  --ink-900: #12160f;

  --bg: #f6faf7;
  --surface: #ffffff;
  --text: var(--ink-800);
  --muted: #5b6660;
  --border: #e2ebe5;
  --primary: var(--green-600);
  --primary-strong: var(--green-700);
  --accent-bg: var(--green-50);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1512;
    --surface: #161d18;
    --text: #e7efe9;
    --muted: #9db0a6;
    --border: #26302a;
    --primary: #3fbf88;
    --primary-strong: #63c496;
    --accent-bg: #12271d;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

header.site .inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.crown {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: #fff;
}

.crown svg { width: 20px; height: 20px; display: block; }

.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

h1 {
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 40px 0 6px;
}

.updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 20px;
}

.applies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 28px;
  font-size: 15px;
}

.applies strong { color: var(--primary-strong); }

.pill {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 13px;
  font-weight: 600;
}

h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
  padding-top: 8px;
}

h3 {
  font-size: 17px;
  margin: 22px 0 6px;
}

p, li { color: var(--text); }

a { color: var(--primary-strong); }

ul { padding-left: 22px; }
li { margin: 6px 0; }

.callout {
  background: var(--accent-bg);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 15.5px;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 8px;
}
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0 24px;
}

footer.site {
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 20px;
}
footer.site a { color: var(--muted); }

.doclink { font-weight: 600; }
