/* The legal pages: privacy, terms, refunds. They load landing.css for the tokens,
   the fonts and the brand, and this for a reading column. Long text wants a
   narrow measure and plain headings, not the poster treatment. */

.legal-top { background: var(--night); }
.legal-top .wrap { padding-block: 16px; display: flex; align-items: center; gap: 24px; }
.legal-top .cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; }
.doc .eyebrow { margin-bottom: 10px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 14px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.doc .summary {
  background: var(--accent-bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 36px; color: var(--ink-2);
}
.doc .summary p + p { margin-top: 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; line-height: 1.2; }
.doc h3 { font-size: 17px; font-family: var(--sans); letter-spacing: 0; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc a { text-decoration: underline; text-underline-offset: 2px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 600; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; margin-bottom: 8px; }

/* Something only the owner can fill in: loud on purpose, so a page with one
   left in it is never mistaken for finished. */
.todo { background: var(--second); color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 600; }

.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .doc { padding: 36px 16px 56px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { padding: 4px 0; border: 0; }
  .doc tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc td:first-child { color: var(--ink); font-weight: 600; }
}
