/* pages.css — the terms, the privacy policy, the removal route and the
   payment explainer (pages.js).

   Its own stylesheet rather than the app's, on purpose. styles.css is written
   for a fixed-height application that must never scroll — body { overflow:
   hidden } is load-bearing there, because the Telegram webview will otherwise
   scroll the page out from behind the app. A document that exists to be read
   needs the exact opposite, and reusing that file would mean fighting it. */

:root {
  color-scheme: dark;
  --canvas: #0b0b0b;
  --card: #141414;
  --ink: #f4f4f3;
  --ink-2: #b5b5b1;
  --line: rgba(255, 255, 255, 0.1);
  --hot: #ff1b8d;
  --warn: #fab219;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Heebo, Rubik, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* A measure, not the window. Legal text at full width on a laptop is text
   nobody finishes. */
.doc {
  max-width: 44rem;
  margin-inline: auto;
  padding: 48px 20px 64px;
}

h1 {
  margin: 0 0 28px;
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h2 {
  margin: 40px 0 10px;
  font-size: 1.2rem;
  line-height: 1.4;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-inline-start: 1.4em;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--hot);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

strong {
  color: #fff;
}
/* The operator's name and the contact address are Latin text inside an RTL
   document, which is where reading order breaks. Browsers isolate <bdi> by
   default; declared anyway, as styles.css does, because a default nobody wrote
   down is a default somebody resets. */
bdi {
  unicode-bidi: isolate;
}

/* The age statement, the removal address, the one thing on each page that must
   not be skimmed past. */
.callout {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.callout h2 {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

/* Reserved for content involving a minor, or intimate content published
   without consent. Pink is the site's "press this"; this is not that. */
.callout.urgent {
  border-color: rgba(250, 178, 25, 0.45);
  background: rgba(250, 178, 25, 0.07);
}

/* A point that needs a lawyer's answer rather than ours. Visible on the page
   on purpose: a draft that looks finished gets treated as finished, and these
   pages are drafts until somebody qualified reads them. */
.review {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-inline-start: 3px solid var(--warn);
  border-radius: 0 10px 10px 0;
  background: rgba(250, 178, 25, 0.06);
  color: var(--ink-2);
  font-size: 0.92rem;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.doc-age {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 0.88rem;
}
