/* The legal pages: /privacy, /terms, /support and their Polish versions under /pl/.
   Standalone like /press/ and 404.html — no bundle, no JavaScript — so App Review, a
   crawler and a phone on a bad connection all get the whole text at once. Brand
   tokens from src/index.css. */
:root {
  --bg: #f2efea;
  --bg-elev: #faf8f4;
  --ink: #0e0e0e;
  --ink-soft: #6b6864;
  --ink-mute: #9b9893;
  --line: rgba(14, 14, 14, 0.1);
  --haze: rgba(244, 184, 155, 0.45);
  --haze-2: rgba(183, 196, 223, 0.4);
  --todo: #fde68a;

  --f-display: "Onest", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-serif: "Instrument Serif", ui-serif, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131211; --bg-elev: #1c1a18; --ink: #f2efea; --ink-soft: #aaa49c; --ink-mute: #7d7871;
    --line: rgba(242, 239, 234, 0.12);
    --haze: rgba(217, 105, 75, 0.18); --haze-2: rgba(74, 111, 168, 0.18);
    --todo: #7c5e10;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131211; --bg-elev: #1c1a18; --ink: #f2efea; --ink-soft: #aaa49c; --ink-mute: #7d7871;
  --line: rgba(242, 239, 234, 0.12);
  --haze: rgba(217, 105, 75, 0.18); --haze-2: rgba(74, 111, 168, 0.18);
  --todo: #7c5e10;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.page {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 72px;
}
@media (min-width: 640px) { .page { padding-inline: 32px; } }
.fog {
  position: absolute; top: 0; left: 50%; width: 100vw; margin-left: -50vw; height: 520px;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 55% at 12% 8%, var(--haze), transparent 70%),
    radial-gradient(45% 45% at 78% 40%, var(--haze-2), transparent 70%);
}

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 28px;
}
.wordmark { color: inherit; text-decoration: none; font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.top nav { display: flex; gap: 16px; }
.label, .top nav a {
  font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
}
.top nav a[aria-current] { color: var(--ink); }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(40px, 8vw, 64px); margin: 40px 0 12px; }
h1 em { font-family: var(--f-serif); font-weight: 400; color: var(--ink-soft); }
h2 { font-size: 26px; margin: 48px 0 12px; padding-top: 24px; border-top: .5px solid var(--line); }
h3 { font-size: 18px; margin: 28px 0 8px; letter-spacing: -0.015em; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: inherit; text-underline-offset: 3px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 56ch; }
.meta { color: var(--ink-mute); font-size: 14px; }
strong { font-weight: 600; }

.toc { background: var(--bg-elev); border: .5px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 28px 0; }
.toc ol { margin: 8px 0 0; columns: 2 220px; column-gap: 24px; }
.toc li { break-inside: avoid; }

/* tables scroll inside themselves, never the page */
.table { overflow-x: auto; margin: 0 0 18px; border: .5px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: .5px solid var(--line); }
th { font-weight: 600; background: var(--bg-elev); }
tr:last-child td { border-bottom: 0; }

.box { background: var(--bg-elev); border: .5px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 18px 0; }

/* A fact the team still has to supply. scripts/check-legal.mjs fails the build
   while any page still carries one, so a placeholder can never go live. */
.todo { background: var(--todo); color: inherit; padding: 0 4px; border-radius: 4px; }

footer {
  margin-top: 64px; padding-top: 20px; border-top: .5px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--ink-mute); font-size: 13px;
}
footer a { color: var(--ink-soft); }
