/* getlimiter.com — the three policies: /privacy, /health-data and /terms.
   Loaded after page.css on those pages only (main.page-legal). Legal text:
   nothing here adds, drops or reorders a word. Section numbers are CSS
   counters, hidden from assistive technology, and the signal still beside
   the title is a background. No inline styles; the CSP forbids them. */

/* ---------- Hero: the title, the date, the short version ---------- */

.legal-hero .page-title { max-width: none; }
.legal-hero .doc-meta {
  max-width: 40rem;
  font: 400 0.9375rem/1.6 var(--body);
  letter-spacing: 0;
  color: var(--ink-3);
}
.legal-hero .stamp {
  display: block;
  margin-bottom: 10px;
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.legal-hero .stamp::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 12px;
  vertical-align: 0.08em;
  background: var(--ramp);
  border-radius: 1px;
  transform: rotate(45deg);
}
.legal-hero .doc-meta + .lede { margin-top: 30px; }
.lead-in { color: var(--ink); }

/* The signal still beside the title is page.css's, as on every plain hero. */

/* ---------- Contents: numbered to match the sections ---------- */

@media (min-width: 1080px) {
  .page-legal .doc-layout { grid-template-columns: 228px minmax(0, 1fr); }
}
.page-legal .toc ol { counter-reset: toc; }
.page-legal .toc li { counter-increment: toc; }
.page-legal .toc a { display: grid; grid-template-columns: 2rem minmax(0, 1fr); }
.page-legal .toc a::before {
  content: counter(toc, decimal-leading-zero);
  content: counter(toc, decimal-leading-zero) / "";
  font: 500 0.6875rem/1.95 var(--mono);
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.page-legal .toc a:hover::before, .page-legal .toc a:target-current::before { color: var(--mint); }

/* ---------- Sections: a hairline and a number, like the home's "01" ---------- */

.page-legal .doc { counter-reset: sec; }
.page-legal .doc h2 { counter-increment: sec; }
.page-legal .doc h2::before {
  content: counter(sec, decimal-leading-zero);
  content: counter(sec, decimal-leading-zero) / "";
  display: block;
  margin-bottom: 18px;
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.18em;
  color: var(--mint);
}
.page-legal .doc > h2 {
  margin-top: clamp(56px, 6vw, 84px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.page-legal .doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page-legal .doc > h2 + * { margin-top: 22px; }

.page-legal .doc code {
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Lists in a policy: one item to a hairline row, the ramp diamond kept. */
.page-legal .doc > ul:not([class]) { margin-top: 26px; border-top: 1px solid var(--line); }
.page-legal .doc > ul:not([class]) > li { padding: 15px 0 15px 30px; border-bottom: 1px solid var(--line); }
.page-legal .doc > ul:not([class]) > li + li { margin-top: 0; }
.page-legal .doc > ul:not([class]) > li::before { left: 5px; top: calc(15px + 0.66em); }
.page-legal .doc > ul:not([class]) + p { margin-top: 26px; }
/* A list that closes its section leaves the rule to the next heading, so
   the two hairlines never read as a double rule. */
.page-legal .doc > ul:not([class]):has(+ h2) > li:last-child { border-bottom: 0; }

/* ---------- The record of changes: dated rows ---------- */

.page-legal .revisions { margin-top: 36px; border-top: 1px solid var(--line); }
.page-legal .revisions .fine { padding: 16px 0; border-bottom: 1px solid var(--line); }
.page-legal .when {
  display: block;
  margin-bottom: 6px;
  font: 500 0.75rem/1.55 var(--mono);
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
@media screen and (min-width: 720px) {
  .page-legal .revisions .fine { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 28px; align-items: baseline; }
  .page-legal .when { margin: 0; }
}

/* ---------- Panels: the one warning, and the address ---------- */

.page-legal .doc > .card { margin-top: clamp(56px, 6vw, 84px); padding: clamp(26px, 3.4vw, 44px); }
.page-legal .doc > .card:first-child { margin-top: 0; }
.page-legal .card h2 { margin-bottom: 20px; }
.page-legal .card p { color: var(--ink-2); }
.page-legal .card p + p { margin-top: 1em; }

.page-legal .contact p { font-size: clamp(1.125rem, 1.6vw, 1.35rem); line-height: 1.5; }
.page-legal .contact a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--mint-line);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}
.page-legal .contact a::after { content: " →"; content: " →" / ""; color: var(--mint); }
.page-legal .contact a:hover { border-color: var(--mint); }

/* ---------- /health-data: the table of categories, every answer "No." ---------- */

.facts table { table-layout: fixed; }
.facts th, .facts td { padding: 18px 24px; }
.facts td { font-size: 1rem; line-height: 1.55; }
.facts thead th { padding-block: 16px; font-size: 0.6875rem; }
@media not screen and (max-width: 719px) {
  .facts thead th:first-child, .facts td:first-child { width: 46%; }
}
.facts td:first-child { color: var(--ink); }
.facts .no {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--mint);
}
.facts tbody tr { transition: background-color 0.2s var(--ease); }
.facts tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
@media screen and (max-width: 719px) {
  .facts table, .facts tbody, .facts tr, .facts td { display: block; }
  .facts thead { display: block; }
  /* The two heads sit on one line where they fit (from about 360px); on a
     narrower phone the second drops under the first, as the answer drops
     under its category in each row, instead of breaking mid-label. */
  .facts thead tr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .facts thead th { width: auto !important; padding: 0; border: 0; white-space: nowrap; }
  .facts tbody tr { padding: 18px 18px 20px; border-bottom: 1px solid var(--line); }
  .facts tbody tr:last-child { border-bottom: 0; }
  .facts td, .facts tbody tr:last-child > td { width: auto; padding: 0; border: 0; }
  .facts td:first-child { font-weight: 600; }
  .facts td + td { margin-top: 10px; }
}

/* ---------- Print: the policy on paper, black on white ---------- */

@media print {
  /* The title on one line and the hero text at the page's full measure.
     (The gap under the plain hero is page.css's print rule.) */
  .legal-hero .page-title .line { display: inline; }
  .legal-hero .doc-meta { max-width: none; }
  .legal-hero .stamp { color: #000; }
  .legal-hero .stamp::before { display: none; }
  .page-legal .doc > h2 { margin-top: 18pt; padding-top: 8pt; border-top: 0.75pt solid #b8b8b8; }
  .page-legal .doc > h2:first-child { margin-top: 0; }
  .page-legal .doc h2::before { margin-bottom: 4pt; font-size: 7.5pt; }
  .page-legal .doc > .card { margin-top: 18pt; padding: 10pt 12pt; }
  .page-legal .doc > .card:first-child { margin-top: 0; }
  .page-legal .card h2 { margin-bottom: 6pt; font-size: 16pt; }
  .page-legal .contact p { font-size: 11pt; }
  .page-legal .contact a::after { content: none; }
  .page-legal .doc code { padding: 0; border: 0; background: none; }
  .page-legal .doc > ul:not([class]) > li { padding: 4pt 0 4pt 16pt; break-inside: avoid; }
  .page-legal .doc > ul:not([class]) > li::before { left: 2pt; top: calc(4pt + 0.6em); width: 5pt; height: 5pt; }
  .page-legal .revisions .fine { padding: 5pt 0; break-inside: avoid; }
  .facts th, .facts td { padding: 5pt 8pt; font-size: 9.5pt; }
  .facts tr { break-inside: avoid; }
  .facts .no { font-size: 11pt; margin-bottom: 1pt; }
}
