/* GymRank published legal documents — layout only (phase 29, plan 29-05).
 * Dark-mode only. No external CDNs, no trackers, no JavaScript. Carries no secret of any kind.
 *
 * Linked SECOND, after landing.css, which owns the palette and the font stack. Every colour
 * below resolves through a landing.css :root custom property (decision PD-29-A adds --text,
 * --text-dim and --text-mute for exactly this), so the palette keeps ONE author.
 *
 * ZERO colour literals in this file — machine-asserted. Pasting a hex value here is a
 * second author of the palette and must turn the check RED.
 *
 * This sheet carries NO poster, NO 9:16 slot, NO gold chip and no full-width accent fill.
 * A legal document is read-only: the share-landing affordance on /pr and /belt is not
 * copied here. */

/* landing.css flex-centres a single 364px card; a scrolling document flows from the top. */
body.doc-page {
  display: block;
  justify-content: initial;
}

/* Reading measure: ~72 characters at 15px. Page padding (32px 18px 40px) is inherited from
   landing.css unchanged, so the 680px measure collapses naturally on a phone. Single column
   at every width — no breakpoint is invented here, and no child carries a fixed width. */
.doc {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

/* Screen title (docs/design.md §4) — the same treatment as the Settings title. */
.doc h1 {
  font-family: "Funnel Display", "Plus Jakarta Sans", sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 18px;
}

/* Section label — verbatim the app's mono uppercase treatment (docs/design.md §2). */
.doc h2 {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 22px 0 10px;
}

/* Body — the exact design.md Body row. The web text must read identically to the in-app
   text, so the line-height is 1.45 and must not be raised. */
.doc p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-dim);
  margin: 0 0 16px;
}

/* The one accent use on a legal page. */
.doc a {
  color: var(--lime);
  text-decoration: underline;
}

/* landing.css's .footnote inherits weight 400 and a literal colour; the phase contract is
   exactly two weights and every colour through a token. */
.doc .footnote {
  font-weight: 500;
  color: var(--text-mute);
}
