/* Shared styling for the static policy and information pages.
 *
 * These five documents (about, contact, disclaimer, privacy, terms) are plain
 * HTML on purpose. They are the pages a reviewer, a regulator or a reader
 * reaches for when they want to know who is behind the site, and they should
 * not depend on a JavaScript bundle booting successfully to be readable.
 *
 * The palette mirrors src/styles/tokens.css so they do not read as a different
 * website, and the theme resolves from the same localStorage key the app uses.
 */

:root {
  --canvas: #fcfcfd;
  --surface: #ffffff;
  --ink: #12172180;
  --ink: #121721;
  --muted: #4c5666;
  --faint: #7b8494;
  --hairline: #e8eaef;
  --accent: #4f46e5;
  --accent-soft: #eef0fe;
}

[data-theme="dark"] {
  --canvas: #0a0f1a;
  --surface: #111827;
  --ink: #e6e9ef;
  --muted: #a2abbb;
  --faint: #737d8f;
  --hairline: #212a3c;
  --accent: #818cf8;
  --accent-soft: #1b2136;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

.topbar {
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  margin-bottom: 40px;
}

.topbar .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.topbar nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--accent); }
.topbar nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

h1 {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  text-wrap: balance;
}

.updated {
  color: var(--faint);
  font-size: 14px;
  margin: 0 0 34px;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 40px 0 10px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

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

p, li { color: var(--muted); }
p { margin: 0 0 14px; }

.lead {
  font-size: 18.5px;
  color: var(--muted);
  margin-bottom: 28px;
}

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 7px; }
li::marker { color: var(--faint); }

strong { color: var(--ink); font-weight: 600; }

a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 22px 0;
}

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

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }

dl { margin: 0; }
dt { font-weight: 600; color: var(--ink); margin-top: 16px; }
dd { margin: 2px 0 0; color: var(--muted); }

.tablewrap { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
td { color: var(--muted); }

.foot {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--faint);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }
