/* ===========================================================================
   The three legal pages: terms, refunds, privacy.

   Read once, mostly by somebody deciding whether to sign up or pay, and by
   Paddle's reviewers - so the landing page's colours and type, a readable
   measure, and nothing else. No script, same as the landing page: the
   system's light or dark setting is the only switch.
   =========================================================================== */
:root {
  --navy: #1b2a4a; --ink-rgb: 27,42,74; --navy-light: #27406d;
  --gold: #c9a227;
  --page-bg: #fff; --surface-alt: #f6f8fa;
  --border: #dde3ea; --border-soft: #e8ecf1;
  --text: #1d2531; --text-soft: #56626f; --text-faint: #626b78;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --gutter: clamp(16px, 4vw, 72px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #b9c9e6; --ink-rgb: 185,201,230; --navy-light: #8fa6cd;
    --gold: #e0b63f;
    --page-bg: #11151c; --surface-alt: #1a202a;
    --border: #39424f; --border-soft: #2a323e;
    --text: #e6eaf0; --text-soft: #a8b2c0; --text-faint: #8894a4;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--page-bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-light); }
.wrap { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

header.top .wrap {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { font-weight: 700; letter-spacing: .14em; font-size: 14px; color: var(--navy); }
.brand-rule { width: 1px; height: 18px; background: rgba(var(--ink-rgb),.25); }
.brand-name { font-size: 14px; color: var(--navy); opacity: .8; white-space: nowrap; }
.legal-nav { margin-left: auto; display: flex; gap: 2px; }
.legal-nav a {
  font-size: 14px; color: var(--text-soft); text-decoration: none;
  padding: 6px 10px; border-radius: 8px;
}
.legal-nav a:hover { background: rgba(var(--ink-rgb),.07); }
.legal-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }

main.doc { padding-bottom: 64px; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--navy); }
h1 { font-size: clamp(34px, 5vw, 46px); letter-spacing: -.04em; line-height: 1.1; margin: 28px 0 8px; }
h2 { font-size: 24px; letter-spacing: -.03em; line-height: 1.25; margin: 44px 0 10px; }
h3 { font-size: 16px; margin: 24px 0 6px; }
.meta { color: var(--text-faint); font-size: 14px; margin: 0 0 28px; }
p, li { margin: 0 0 12px; }
ul, ol { padding-left: 22px; margin: 0 0 12px; }
strong { font-weight: 600; }

/* "In short" - what the page says, before it says it carefully. */
.short {
  background: var(--surface-alt); border-radius: 14px;
  padding: 18px 22px 8px; margin: 0 0 8px;
  box-shadow: inset 3px 0 0 var(--gold);
}
.short p:first-child { font-weight: 600; margin-bottom: 8px; }

/* Tables scroll inside themselves on a phone; the page never does. */
.table { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--border-soft); }
th { font-weight: 600; color: var(--text-soft); border-bottom-color: var(--border); }
td:first-child { font-weight: 600; min-width: 9em; }
table.wide td { min-width: 11em; }

blockquote {
  margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--border);
  color: var(--text-soft);
}

footer { border-top: 1px solid var(--border-soft); padding: 26px 0 44px; color: var(--text-faint); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; }

@media (max-width: 560px) {
  .legal-nav { margin-left: -10px; width: 100%; }
}
