/* Shared shell for the standalone legal documents (privacy.html, terms.html).
   These sit outside the React bundle on purpose: they are plain documents that
   should render instantly, work with JS disabled, and never depend on the app. */

:root {
  --accent: #A87E3F;
  --ink: #221C14;
  --bg: #FAF6EF;
  --rule: #DCD5C7;
  --rule-soft: #E9E3D7;
  --muted: #6E6353;
  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  color-scheme: light;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.68;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: 760px; margin: 0 auto; padding-inline: 24px; padding-block: 0 96px; }

/* ---------- masthead ---------- */
.top {
  display: flex; align-items: center; gap: 14px;
  padding-block: 26px; margin-bottom: 52px;
  border-bottom: 1px solid var(--rule);
}
.top .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; font-size: 16px; }
.top .brand img { width: 24px; height: auto; }
.top .back {
  margin-left: auto;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.top .back:hover { color: var(--accent); }

/* ---------- document head ---------- */
.kicker {
  display: block;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.kicker .ix { color: var(--accent); margin-right: 10px; }

h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(36px, 6.5vw, 54px); line-height: 1.05; letter-spacing: -.015em;
  text-wrap: balance; margin-bottom: 20px;
}
h1 em { font-style: italic; font-weight: 400; }

.lede { font-size: 18px; color: var(--muted); max-width: 58ch; text-wrap: pretty; }

.stamp {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule-soft);
  font-family: var(--mono); font-size: 12px; letter-spacing: .05em; color: var(--muted);
}
.stamp b { color: var(--ink); font-weight: 500; }

/* ---------- body ---------- */
h2 {
  font-family: var(--display); font-weight: 500;
  font-size: 27px; line-height: 1.2; letter-spacing: -.01em;
  margin: 54px 0 14px; text-wrap: balance;
  display: flex; align-items: baseline; gap: 14px;
}
h2 .n {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; color: var(--accent); flex: none;
}
h3 { font-family: var(--body); font-size: 16px; font-weight: 600; margin: 26px 0 8px; }

p { margin-bottom: 15px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 15px; padding-left: 0; list-style: none; }
li { position: relative; padding-left: 22px; margin-bottom: 9px; }
li::before {
  content: ''; position: absolute; left: 2px; top: .68em;
  width: 6px; height: 1.5px; background: var(--accent);
}
li b { font-weight: 600; }

strong, b { font-weight: 600; }
em { font-style: italic; }
a.inline { color: var(--ink); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--accent) 70%, transparent); transition: color .2s, border-color .2s; }
a.inline:hover { color: var(--accent); border-color: var(--accent); }

.callout {
  background: color-mix(in oklab, var(--accent) 9%, var(--bg));
  border-left: 3px solid var(--accent);
  padding: 16px 20px; margin: 22px 0; font-size: 15.5px;
}
.callout p { margin-bottom: 10px; }

table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
th {
  text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule);
}
td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
td:first-child { font-weight: 600; white-space: nowrap; padding-right: 22px; }
.tablescroll { overflow-x: auto; }

/* ---------- footer ---------- */
.foot {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline;
  font-size: 14px; color: var(--muted);
}
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--accent); }
.foot .c { margin-left: auto; font-family: var(--mono); font-size: 12px; }

@media (max-width: 620px) {
  .foot .c { margin-left: 0; width: 100%; }
  h2 { flex-direction: column; gap: 4px; }
}
