/* Long-form legal pages. Different job from the console: this text has to be READ, by a
   merchant deciding whether to trust us and possibly by a lawyer. So: generous measure,
   real hierarchy, and nothing decorative competing with the words. */

.app section.box { padding: 0; }

.legal { max-width: 78ch; margin: 0 auto; padding: 0 0 70px; }
.legal h1 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; margin: 0 0 10px; }
.legal .sub { font-size: 13.5px; color: var(--muted); margin: 0 0 30px; line-height: 1.6; }

/* The table of contents links to h2/h3 ids. neo.css only sets scroll-margin on
   section[id], so without this the heading lands underneath the sticky nav. */
.legal :where(h1, h2, h3)[id] { scroll-margin-top: 88px; }

.legal h2 {
  font-size: 17px; letter-spacing: -.01em; margin: 40px 0 12px;
  padding-top: 20px; border-top: 1px solid var(--edge);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 14px; margin: 22px 0 8px; color: var(--ink); }

.legal p, .legal li {
  font-size: 13.8px; line-height: 1.72; color: var(--ink-2); margin: 0 0 12px;
}
.legal ol, .legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal b, .legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--acc); }

/* Anything the operator must fill in before this document is shown to a customer.
   Deliberately loud — a placeholder that ships into a signed contract is a real problem. */
.fill {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  background: rgba(255,184,77,.14); border: 1px solid rgba(255,184,77,.45);
  color: var(--warn); font-family: var(--mono); font-size: .92em; font-weight: 600;
}

.legal .callout {
  border: 1px solid var(--edge); border-left: 3px solid var(--acc);
  background: var(--panel); border-radius: 0 10px 10px 0;
  padding: 14px 16px; margin: 18px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal .callout.warn { border-left-color: var(--warn); }

.legal table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 13px; }
.legal th {
  text-align: left; font: 600 10.5px/1 var(--sans); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); padding: 0 12px 9px 0;
  border-bottom: 1px solid var(--edge);
}
.legal td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--edge); color: var(--ink-2); vertical-align: top; }

.legal .meta { font-size: 12px; color: var(--muted); margin-top: 34px; }
.toc { background: var(--panel); border: 1px solid var(--edge); border-radius: 11px; padding: 16px 18px; margin: 0 0 34px; }
.toc p { font: 600 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 5px; font-size: 13px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--acc); }

/* Phones: the tab strip and the data tables are wider than 320-390px. Each scrolls
   inside itself instead of widening the page (measured: tabs right=401, tables 414 at 390). */
.legal-nav > *, nav > .wrap > * { min-width: 0; }
.legal table { display: block; overflow-x: auto; }
@media (max-width: 560px) { .tabs { overflow-x: auto; scrollbar-width: none; } .tab { flex: 0 0 auto; } }
