/* ==========================================================================
   Bunvi — document pages: support, privacy, terms.
   --------------------------------------------------------------------------
   Loaded after site.css, which carries every token, the bar and the footer.
   This file is only the prose: a single measured column, set for reading a
   legal page end to end rather than skimming a landing page.

   These pages have a job the marketing page does not: the App Store links
   straight to /privacy and /terms, and a reviewer reads them. So the text is
   left plain and the layout gets out of its way.
   ========================================================================== */

.doc {
  max-width: 720px;
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 120px);
}

.doc__title {
  font-size: clamp(2.2rem, 5.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
}

.doc__updated {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.doc__lede {
  margin: 28px 0 0;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.58;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.doc h2 {
  margin: clamp(46px, 5.5vw, 64px) 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 750;
  letter-spacing: -0.026em;
  line-height: 1.2;
  scroll-margin-top: 96px;
}

.doc h3 {
  margin: 34px 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}

.doc p { margin: 0 0 1.05em; color: var(--ink-muted); text-wrap: pretty; }
.doc p strong, .doc li strong { color: var(--ink); }

.doc ul { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.doc li {
  position: relative;
  margin: 0 0 0.7em;
  padding-left: 26px;
  color: var(--ink-muted);
}
.doc li::before {
  content: "";
  position: absolute;
  left: 6px; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

.doc a { font-weight: 600; }

.doc hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: clamp(48px, 6vw, 72px) 0 0;
}

/* The boxed aside: a contact address, a billing summary. Same card as the
   marketing page, so the two do not look like two different products. */
.doc .card { margin: 26px 0; }
.doc .card p:last-child { margin-bottom: 0; }
.doc .card--contact p:nth-child(2) { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.4em; }
.doc .card--contact p:nth-child(2) a { color: var(--accent-ink); }

/* A value the operator still has to fill in. Impossible to miss, and
   impossible to mistake for finished text. */
.todo {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  /* Orange ink on an orange wash measured 2.7:1. The marker still has to be
     impossible to miss, so the tint stays and the text goes to full ink, with
     the flame doing the shouting as a rule underneath it. */
  background: color-mix(in srgb, var(--flame) 16%, transparent);
  box-shadow: inset 0 -2px 0 var(--flame);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.84em;
  font-weight: 700;
}

.doc code {
  font-family: var(--mono);
  color: var(--ink);
  font-size: 0.86em;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  padding: 2px 7px;
  border-radius: 6px;
}

/* A short contents list at the top of a long page. */
.doc__toc {
  margin: 34px 0 0;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--sunken);
}
.doc__toc h2 {
  margin: 0 0 12px;
  font-size: 0.765rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-faint);
}
.doc__toc ul { margin: 0; display: grid; gap: 8px; }
.doc__toc li { padding-left: 0; margin: 0; }
.doc__toc li::before { display: none; }
.doc__toc a { color: var(--ink-muted); font-weight: 550; }
.doc__toc a:hover { color: var(--ink); }
