/* The legal pages (privacy, terms, about): long-form text on the front
   page's tokens. Loaded after styles.css, which holds the header, the
   footer and the font. */

.doc {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(3.5rem, 9vw, 7rem);
}
.doc-head { max-width: 46rem; }
.doc-head h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.doc-meta { margin-top: 1rem; color: var(--paper-3); font-size: 0.95rem; }
.lede {
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--paper-2);
  text-wrap: pretty;
}

/* Contents beside the text on wide screens; the summary box serves a phone. */
.doc-grid { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 3rem; }
.toc { display: none; }
@media (min-width: 1000px) {
  .doc-grid { grid-template-columns: 13rem minmax(0, 44rem); gap: 5rem; align-items: start; }
  .toc { display: block; position: sticky; top: 2rem; }
}
.toc p { color: var(--paper-3); font-size: 0.85rem; font-weight: 500; }
.toc ol { margin: 0.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.toc a { color: var(--paper-3); text-decoration: none; font-size: 0.9rem; line-height: 1.35; }
.toc a:hover { color: var(--paper); }

/* The text itself. */
.prose { max-width: 44rem; min-width: 0; }
.prose > * + * { margin-top: 1rem; }
.prose p, .prose li { color: var(--paper-2); text-wrap: pretty; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose h2 {
  margin-top: 3.25rem;
  max-width: none;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  scroll-margin-top: 1.5rem;
}
.prose h3 { margin-top: 2rem; font-size: 1.125rem; line-height: 1.3; }
.prose h2 + *, .prose h3 + * { margin-top: 0.75rem; }
.prose ul { margin-bottom: 0; padding-left: 1.2rem; }
.prose li + li { margin-top: 0.45rem; }
.prose li::marker { color: var(--paper-3); }

/* "In short": the page in five lines, before the detail. */
.summary {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
}
.prose .summary h2 { margin-top: 0; font-size: 1.125rem; }
.prose > .summary:first-child { margin-top: 0; }

/* Label and value rows: the About page's facts. */
.facts { margin: 0; }
.facts > div { padding: 0.85rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.15rem; }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--paper-3); font-size: 0.95rem; }
.facts dd { margin: 0; color: var(--paper); overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .facts > div { grid-template-columns: 13rem 1fr; gap: 1rem; }
}
