/* The legal pages, terms.html and refunds.html: the site's dark page and glow, one readable column. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #07080d;
  --text: #f4f2ee;
  --text-2: rgba(244, 242, 238, 0.72);
  --text-3: rgba(244, 242, 238, 0.45);
  --surface: rgba(255, 255, 255, 0.04);
  --line: rgba(244, 242, 238, 0.1);
  --accent: #f4f2ee;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: underline; text-decoration-color: rgba(244, 242, 238, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* the site's light, quieter than on the landing so the text stays easy to read */
.bg { position: fixed; inset: 0; pointer-events: none; background:
  radial-gradient(60% 34% at 0% 0%, rgba(214, 158, 56, 0.16), transparent 70%),
  radial-gradient(50% 36% at 100% 38%, rgba(86, 58, 214, 0.16), transparent 70%); }

.doc { position: relative; max-width: 720px; margin: 0 auto;
  padding: max(26px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(56px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
.logo svg { width: 24px; height: 24px; }
.top nav { display: flex; gap: 18px; font-size: 14px; color: var(--text-3); }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }

h1 { margin: 56px 0 0; font-weight: 560; font-size: clamp(38px, 7vw, 54px); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.updated { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }
.lead { margin: 22px 0 0; font-size: 19px; line-height: 1.5; color: var(--text); text-wrap: pretty; }

h2 { margin: 44px 0 10px; font-size: 20px; font-weight: 560; letter-spacing: -0.02em; scroll-margin-top: 20px; }
h2 .n { margin-right: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; }
p, li { color: var(--text-2); }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin: 0 0 8px; padding-left: 2px; }
li::marker { color: var(--text-3); }
strong { color: var(--text); font-weight: 540; }

/* a worked refund, like a receipt */
.calc { margin: 18px 0 16px; padding: 18px 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.calc__title { margin: 0 0 12px; font-size: 12px; font-weight: 520; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.calc dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 20px; font-variant-numeric: tabular-nums; }
.calc dt { color: var(--text-2); }
.calc dd { margin: 0; text-align: right; color: var(--text); }
.calc .gap { margin-top: 8px; }
.calc .sum { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 560; color: var(--text); }

.foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 13.5px; color: var(--text-3); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
