/* The body of every static page except the home page: pricing, the legal pages, contact,
   404. Same layout as before the redesign; the
   type and colour now come from design.css, which loads first.

   design.css zeroes the margins on headings and paragraphs (the home page spaces with gap),
   so long-form pages put their reading rhythm back here. */

.page, .legal { max-width: 1120px; margin: 0 auto; padding: 56px 24px 72px; }
.legal { max-width: 780px; }

.page h1, .legal h1 { font: 600 clamp(34px, 4vw, 52px)/1.08 var(--display); letter-spacing: -0.02em; margin: 0 0 .45em; }
.page h2, .legal h2 { font: 600 clamp(24px, 2.6vw, 30px)/1.2 var(--display); letter-spacing: -0.01em; margin: 1.4em 0 .5em; }
.page h3 { font-size: 18px; font-weight: 600; margin: 0 0 .4em; }
.page p, .legal p, .page ul, .legal ul, .legal ol { margin: 0 0 1em; line-height: 1.6; }
.page li, .legal li { margin: .3em 0; }
.lede { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 40em; }
.page .note, .legal .note { font-size: 14px; }
.center { text-align: center; }
.page .btn.primary { margin-top: 8px; }
/* Same 8px as the top toolbar's buttons (toolbar.css .tj-acts). */
.page .cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.legal .updated { color: var(--muted); }
.legal section { padding: 4px 0; }
.legal h2 { font-size: 22px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 22px; margin: 24px 0; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; }

.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 28px; position: relative; margin: .6em 0; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

table.plain { border-collapse: collapse; width: 100%; max-width: 640px; margin: 8px 0 28px; font-size: 15px; }
table.plain th, table.plain td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-weight: 600; }

/* ---- Feedback and Contact us (R23): the two forms, web/public/messages.js ---- */
.msgform { display: grid; gap: 18px; max-width: 40rem; margin: 28px 0 8px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-rest); }
.msgform .field { display: grid; gap: 6px; }
.msgform .field > span:first-child { font-weight: 600; }
.msgform input, .msgform select, .msgform textarea {
  font: 16px/1.45 var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--r-control); padding: 10px 12px; width: 100%; }
.msgform textarea { resize: vertical; min-height: 10rem; }
.msgform input:focus-visible, .msgform select:focus-visible, .msgform textarea:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.msgform .hint, .msgform .count { font-size: 14px; color: var(--muted); margin: 0; }
.msgform .count.over { color: var(--warn); font-weight: 600; }
.msgform .hint:empty { display: none; }
.msgform .btn.primary { justify-self: start; margin: 0; }
.msgform[aria-busy="true"] .btn.primary { opacity: .6; cursor: progress; }
.msgform .status { margin: 0; font-weight: 600; }
.msgform .status:empty { display: none; }
.msgform .status.ok { color: var(--accent-dark); }
.msgform .status.problem { color: var(--warn); }
/* The honeypot: a field no person sees or reaches. */
.msgform .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.noscript { border-left: 4px solid var(--warn); padding: 12px 16px; background: var(--sunk); border-radius: var(--r-control); }

/* An answer or gift page's "More from TuckJoy" (layout.mjs relatedLinks): the other such pages,
   as plain text links in columns, never buttons (docs/decisions/2026-10-25-one-design-system-and-header.md). */
.related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.page .related h2 { font: 700 var(--text-16)/1.3 var(--body); letter-spacing: 0; margin: 0 0 12px; }
.page .related ul { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 24px; }
.page .related li { margin: 0 0 8px; break-inside: avoid; }
.related a { font-size: var(--text-14); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.related a:hover { color: var(--ink); }
