/* ── Static documents: privacy, terms, refund, support, per-app privacy ─────
   Loads after /brand.css, which carries the tokens, faces, square reset and
   the navy backdrop (generated from src/brand.css + ds/src/tokens.css).

   A document is a faceplate, one readable column in a pane, and a footer
   rail. Silkscreen (the display face, small, uppercase) carries the meta.
   No colours or faces are defined here — only tokens. ds/GUIDELINE.md.
   ────────────────────────────────────────────────────────────────────────── */

body {
  padding: calc(28px + env(safe-area-inset-top)) 16px calc(80px + env(safe-area-inset-bottom));
  font-size: 16px;
  line-height: 1.65;
}

.doc-face,
.doc,
.doc-foot {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

/* The faceplate: wordmark left, the document's silkscreen label right. */
.doc-face {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 22px;
}

.doc-face img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
}

.doc-mark {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: clamp(22px, 6.5vw, 32px);
  line-height: 1;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.doc-mark:hover {
  color: var(--accent);
}

.doc-silk {
  margin-left: auto;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: right;
}

/* The document itself: one pane, hair border. It is not a screen — the 2px
   bezel is reserved for the pane that shows a live signal. */
.doc {
  background: var(--panel);
  padding: clamp(20px, 4vw, 36px);
}

.doc h1,
.doc h2,
.doc h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.doc h1 {
  font-size: clamp(30px, 6vw, 44px);
  color: var(--ink);
  margin: 0 0 10px;
}

.doc h2 {
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 34px 0 10px;
}

.doc h3 {
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0 0 6px;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc p {
  margin: 0 0 14px;
}

.doc ul {
  margin: 0 0 14px;
  padding-left: 1.2rem;
}

.doc li {
  margin-bottom: 8px;
}

.doc li::marker {
  color: var(--accent);
}

.doc strong,
.doc em {
  color: var(--ink);
}

.doc strong {
  font-weight: 600;
}

.doc a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.doc code {
  font-size: 0.92em;
  color: var(--ink);
  background: var(--bg-deep);
  padding: 0.05em 0.35em;
}

/* Meta is a small label — Finlandica caps, tracked, muted. */
.doc .doc-meta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
}

/* A block inside the document — a product on the support page. */
.doc-card {
  background: color-mix(in oklab, var(--bg-deep) 70%, transparent);
  padding: 16px 18px;
  margin: 0 0 12px;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

/* The footer rail: the rest of the set, in silkscreen. */
.doc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  padding-top: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-foot a {
  color: var(--muted);
  text-decoration: none;
}

.doc-foot a:hover,
.doc-foot a[aria-current='page'] {
  color: var(--accent);
}
