/* Shared styling for the legal pages (privacy, terms, risk disclosure, refunds).
 *
 * Deliberately a separate stylesheet rather than the landing page's inlined block: the landing page
 * inlines two webfonts and is 78KB because it has one job and must paint instantly. These pages are
 * long-form text that people arrive at from a footer link, so readability and a small payload
 * matter more than pixel-matching the marketing page. Colours are the same palette so it still
 * looks like the same product.
 */
:root {
  --bg: #0E1116;
  --panel: #141922;
  --line: #232B38;
  --fg: #E8EDF5;
  --muted: #A3AFC0;
  --dim: #6F7C8E;
  --brass: #D4A93C;
  --warn-bg: #241C0A;
  --warn-line: #5A4413;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

header.bar {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(14, 17, 22, .92);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.01em; color: var(--fg); text-decoration: none; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brass); flex: none; }
.bar-links { display: flex; gap: 18px; font-size: .88rem; flex-wrap: wrap; }
.bar-links a { color: var(--muted); text-decoration: none; }
.bar-links a:hover, .bar-links a[aria-current="page"] { color: var(--brass); }

main { padding: 44px 0 72px; }

h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 10px; }
h2 { font-size: 1.18rem; letter-spacing: -.01em; margin: 40px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
h3 { font-size: 1rem; margin: 24px 0 8px; color: var(--brass); }
p, li { color: var(--muted); }
li { margin-bottom: 8px; }
strong, b { color: var(--fg); }
a { color: var(--brass); }

.updated { color: var(--dim); font-size: .86rem; margin: 0 0 6px; }
.lede { color: var(--fg); font-size: 1.03rem; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--fg); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { color: var(--muted); }

.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout p:first-child { margin-top: 0; }

/* Marks a field only the operator can supply (legal entity, registered address, governing law).
 * Loud on purpose -- an unfilled placeholder on a live legal page should be impossible to miss. */
.todo {
  background: var(--warn-bg);
  border: 1px dashed var(--warn-line);
  border-radius: 4px;
  padding: 1px 7px;
  color: #F0C761;
  font-weight: 600;
  white-space: nowrap;
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  font-size: .85rem;
  color: var(--dim);
}
footer a { color: var(--muted); text-decoration: none; margin-right: 16px; }
footer a:hover { color: var(--brass); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
