/* Text pages (terms, privacy). Loaded after styles.css and reuses its tokens. */

.doc-top { grid-template-columns: minmax(0, 1fr) auto; }
.doc-home { text-decoration: none; }
.doc-back { display: inline-flex; align-items: center; text-decoration: none; }

.doc { max-width: calc(72ch + 64px); padding-block: 36px 24px; display: grid; gap: 22px; }
.doc h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); font-weight: 720; letter-spacing: -.03em; }
.doc h2 { font-size: 1.2rem; margin-bottom: 8px; }
.doc section { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--hair); }
.doc p, .doc li { max-width: 72ch; }
.doc ul, .doc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.doc-lede { font-size: 1.15rem; font-weight: 600; }
.doc-status { justify-self: start; font-size: .8rem; font-weight: 750; color: var(--gold-ink); background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 999px; padding: 3px 12px; }
.doc-toc { background: var(--lift); border: 1px solid var(--hair); border-radius: 16px; padding: 16px 20px; }
.doc-toc ol { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 4px 24px; font-weight: 600; }
.doc-callout { background: var(--stage); color: var(--stage-ink); border-radius: 16px; padding: 16px 18px; }
.doc-callout strong { color: #fff; }
/* Gaps the owner must fill before release. Loud on purpose, so they cannot ship unnoticed. */
.doc-todo, .doc-todo-inline { background: #fff3c4; border: 1px dashed #a07a10; color: #4d3a05; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.doc-todo { padding: 10px 14px; }
.doc-todo-inline { padding: 1px 8px; }

@media print {
  .doc-back { display: none; }
  .doc-callout { background: #fff; color: #000; border: 2px solid #000; }
  .doc-callout strong { color: #000; }
}
