/* Shared style for the static legal pages (terms, privacy, refunds), in the app's look (dark only). The tokens are
   copies of src/web/styles/tokens.css (tests/seo.test.ts checks they are the same); the typeface comes from /fonts.css,
   which the build writes from the app's own font files. */

/* PLAN SWITCH. The site is in free mode (public.app_settings.free_mode), so the paid-plan text is hidden.
   When Premium is switched on (docs/SETUP.md, "Switching Premium on"), change `.premium-only` below to `.free-only`. */
.premium-only { display: none !important; }

:root {
  color-scheme: dark;
  --page: #0d0d0d;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-2: #c3c2b7;
  --muted: #918f89;
  --accent: #22d3ee;
  --font: "Sofia Sans Variable", "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-c: "Sofia Sans Condensed Variable", "Sofia Sans Condensed", "Sofia Sans Variable", "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); }
main { max-width: 72ch; margin: 0 auto; padding: 28px 16px 64px; }
a { color: var(--text); text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; margin-bottom: 28px; font: 600 14px / 1.2 var(--font); }
.back, .lang { color: var(--text-2); text-decoration: none; }
.back:hover, .lang:hover { color: var(--text); }
/* Headings in the app's broadcast cut, as the public pages (pages.css). */
h1 { margin: 0 0 8px; font: 900 clamp(30px, 6vw, 40px) / 0.95 var(--font-c); letter-spacing: -0.005em; text-transform: uppercase; text-wrap: balance; }
h2 { margin: 36px 0 8px; font: 900 20px / 1.15 var(--font-c); letter-spacing: 0.02em; text-transform: uppercase; }
h2::before { content: ""; display: inline-block; width: 14px; height: 4px; margin: 0 9px 0 2px; vertical-align: 0.22em; background: var(--accent); transform: skewX(-24deg); }
p, li { color: var(--text-2); }
p { margin: 0 0 12px; }
strong { color: var(--text); }
ul { margin: 0 0 12px; padding-left: 20px; }
li + li { margin-top: 4px; }
.updated { margin: 0 0 28px; font-size: 13px; color: var(--muted); }
footer { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer a { color: var(--text-2); }
