/* Shared styling for the Strat legal pages.
   Deliberately plain: these documents are read when something has gone wrong,
   often on a phone, sometimes by a regulator. Legibility beats decoration. */

:root {
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #5c6270;
  --rule: #e4e7ec;
  --accent: #f0870f;
  --card: #f7f8fa;
  --todo-bg: #fff4e5;
  --todo-fg: #8a4b00;
  --todo-border: #f0870f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --fg: #e8eaee;
    --muted: #98a0ae;
    --rule: #262a32;
    --accent: #ffa53d;
    --card: #171a20;
    --todo-bg: #2a1f10;
    --todo-fg: #ffc077;
    --todo-border: #ffa53d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 96px;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 720px; margin: 0 auto; }

header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
  font-size: 17px;
}

.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 20px 0 8px;
}

h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

h3 { font-size: 16px; margin: 24px 0 6px; }

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

.meta { color: var(--muted); font-size: 14px; margin: 0; }

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

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.scroll { overflow-x: auto; }

th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
}

.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Unfilled operator details. Loud on purpose — a legal page that ships with a
   placeholder still in it is worse than no page at all. */
.todo {
  background: var(--todo-bg);
  color: var(--todo-fg);
  border: 1px dashed var(--todo-border);
  border-radius: 5px;
  padding: 1px 6px;
  font-weight: 600;
  font-size: 0.95em;
  white-space: nowrap;
}

nav.toc { margin: 24px 0 8px; font-size: 15px; }
nav.toc a { display: block; padding: 3px 0; }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

code {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.9em;
}
