/* The information pages: about, contact, status, security, report abuse and the six legal pages.
   Linked after site.css and pages.css. Legal contents rail, contact topics, about facts, status
   tables (task M-Info). Tokens only, logical properties, no animation. 721px stays the phone
   breakpoint; 1024px is the wide one (rail and two columns). */

.page { --page-pad: clamp(16px, 4vw, 40px); }

/* — legal pages (privacy, terms, acceptable use, cookies, sub-processors, data processing, security, report abuse) —
   The board's page: the page switcher, the head (h1, the entity line, the lede), then "On this page" beside the sections.
   The page is a grid with no gap of its own (each block carries its margin, so a sticky card can span many rows):
   from 1024px three equal columns, the contents in the first and each section across the other two (at most 760px wide);
   below that one column, the contents above the sections (a two-column card on a tablet); on a phone the switcher and the
   contents are closed disclosures. The switcher comes first on the page whatever the source order (`order`), and the
   entity line that the source puts above the h1 sits under it. Report abuse has no switcher or contents. */
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
}
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .page-head {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--space-4); max-width: 760px; margin-block-end: var(--space-10); padding-top: 0;
}
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .page-head > h1 { order: 1; margin-block-start: var(--space-2); font-size: clamp(40px, 5.6vw, 72px); line-height: 0.96; }
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--demo) > .page-head > .eyebrow {
  order: 2; font-size: 12.5px; font-weight: var(--weight-regular); line-height: normal; letter-spacing: normal; text-transform: none;
}
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .page-head > .page-head__lede {
  order: 3; max-width: none; font-size: 17px; line-height: 1.55; color: var(--color-text-muted); text-wrap: wrap;
}
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .page-head > .page-head__actions { order: 4; align-self: flex-start; padding-top: 0; }
.page-head__actions .btn-primary { min-height: 50px; line-height: normal; }

.legal-pages { order: -1; }
/* The switcher (or its phone disclosure) is the first thing on the page; the head sits 16px under it. */
.page-head:has(~ .legal-pages) { margin-block-start: var(--space-4); }
.legal-pages__list { display: flex; flex-wrap: wrap; gap: var(--space-2); max-width: 760px; margin: 0; padding: 0; list-style: none; }
.legal-pages__link {
  display: inline-flex; align-items: center; padding: var(--space-2) 14px;
  font-size: 13px; font-weight: var(--weight-medium); line-height: normal; white-space: nowrap; color: var(--color-text); text-decoration: none;
  border: 1px solid var(--color-line); border-radius: var(--radius-pill);
}
.legal-pages__link[aria-current="page"] { font-weight: var(--weight-semibold); color: var(--color-bg); background: var(--color-text); border-color: var(--color-text); }

/* On this page: a card with the links stacked. */
.legal-toc { display: flex; flex-direction: column; gap: 2px; padding: 18px var(--space-5); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-tier); }
.legal-toc .eyebrow { margin: 0 0 6px; font-family: var(--font-body); font-size: 12px; font-weight: var(--weight-regular); line-height: normal; }
.legal-toc__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.legal-toc__link {
  display: flex; align-items: center; min-block-size: 36px; font-size: 14.5px; line-height: normal; color: var(--color-text-muted); text-decoration: none;
}
.legal-toc__link:hover, .legal-toc__link:focus-visible { color: var(--color-text); }

/* The phone's two disclosures; hidden wherever the card and the row of links show. */
.legal-disclosure { display: none; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-well); }
.legal-disclosure > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-block-size: 48px; padding: 0 var(--space-4);
  font-size: 14.5px; font-weight: var(--weight-semibold); line-height: normal; cursor: pointer; list-style: none;
}
.legal-disclosure > summary::-webkit-details-marker { display: none; }
.legal-disclosure > summary .icon { flex: none; width: 18px; height: 18px; stroke-width: 2.2; }
.legal-disclosure[open] > summary .icon { transform: rotate(180deg); }
.legal-disclosure__label { font-size: 12px; font-weight: var(--weight-regular); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.legal-disclosure__label + strong { margin-inline-end: auto; font-weight: var(--weight-semibold); }
.legal-disclosure > nav { display: flex; flex-direction: column; padding: 0 var(--space-4) 10px; }
.legal-disclosure > nav a {
  display: flex; align-items: center; box-sizing: content-box; min-block-size: 44px; font-size: 14.5px; line-height: normal; color: var(--color-text-muted); text-decoration: none;
  border-top: 1px solid var(--color-line);
}
.legal-disclosure > nav a[aria-current="true"] { font-weight: var(--weight-semibold); color: var(--color-text); }
.legal-disclosure--pages { order: -1; }
@media (prefers-reduced-motion: no-preference) {
  .legal-disclosure > summary .icon { transition: transform var(--dur-ui) var(--ease-out); }
}

/* The sections: the board's long-form type scale (paragraph 16.5, h2 28, lists and tables in the same measure). */
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .prose {
  display: flex; flex-direction: column; gap: 14px; max-width: 760px; line-height: 1.65; text-wrap: wrap;
}
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .prose + .prose { margin-block-start: 44px; }
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .prose > h2:not(.eyebrow):not(.section-title) {
  margin: 0; font-size: 28px; font-weight: var(--weight-bold); line-height: 1.1; letter-spacing: -0.02em; scroll-margin-block-start: var(--space-3);
}
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .prose > p {
  margin: 0 0 14px; font-size: 16.5px; line-height: 1.65; color: var(--color-text-muted);
}
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .prose > p:last-child { margin-block-end: 0; }
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .prose > ul {
  display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0 0 0 22px; font-size: 16.5px; line-height: 1.6; color: var(--color-text-muted);
}
.prose li::marker { color: var(--color-text); }
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .prose li + li { margin-top: 0; }
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .prose a {
  color: var(--color-text); text-decoration: underline; text-underline-offset: 3px;
}
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .prose a:hover { color: var(--color-text-muted); }
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security, .page--report-abuse, .page--demo) > .prose strong { font-weight: var(--weight-semibold); color: var(--color-text); }

/* Tables in a legal section: the board's framed table (the table is its own frame; table.mjs has no wrapper). */
:is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security) > .prose > .commitment-table {
  width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-well);
}
.prose > .commitment-table th, .prose > .commitment-table td {
  padding: 14px var(--space-4); font-size: 14.5px; line-height: 1.5; text-align: start; vertical-align: top; overflow-wrap: break-word; border-bottom: 1px solid var(--color-line);
}
.prose > .commitment-table thead th { font-size: 14.5px; font-weight: var(--weight-semibold); color: var(--color-text); }
.prose > .commitment-table tbody th { width: auto; font-weight: var(--weight-semibold); }
.prose > .commitment-table td { color: var(--color-text-muted); }
.prose > .commitment-table tbody tr:last-child > * { border-block-end: 0; }

@media (min-width: 721px) and (max-width: 1023px) {
  .legal-toc__list { display: grid; grid-template-columns: 1fr 1fr; }
  .prose > .commitment-table th, .prose > .commitment-table td { padding: var(--space-3); font-size: 14px; }
}
@media (max-width: 1023px) {
  .legal-toc + .legal-disclosure--toc + .prose { margin-block-start: 28px; }
}
@media (max-width: 720px) {
  .legal-pages, .legal-toc { display: none; }
  .legal-disclosure { display: block; }
  .prose > .commitment-table, .prose > .commitment-table tbody { display: flex; flex-direction: column; gap: 10px; }
  :is(.page--privacy, .page--terms, .page--refunds, .page--acceptable-use, .page--cookies, .page--sub-processors, .page--dpa, .page--security) > .prose > .commitment-table { border: 0; background: transparent; }
  .prose > .commitment-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .prose > .commitment-table tr { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); border: 1px solid var(--color-line); border-radius: var(--radius-well); background: var(--color-surface); }
  .prose > .commitment-table th, .prose > .commitment-table td { display: block; padding: 0; border: 0; }
  .prose > .commitment-table tbody th { font-size: 16px; }
  .prose > .commitment-table td[data-label] { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
  .prose > .commitment-table td[data-label]::before { display: inline; margin: 0; font-size: inherit; font-weight: var(--weight-semibold); color: var(--color-text-muted); }
}
@media (min-width: 1024px) {
  .page:has(> .legal-toc) { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
  .page:has(> .legal-toc) > .legal-pages, .page:has(> .legal-toc) > .page-head { grid-column: 1 / -1; }
  .page:has(> .legal-toc) > .legal-toc {
    grid-column: 1; grid-row: 3 / span 60; align-self: start;
    position: sticky; inset-block-start: 92px; max-block-size: calc(100vh - 120px); overflow: auto; box-sizing: border-box;
  }
  .page:has(> .legal-toc) > .prose { grid-column: 2 / span 2; }
}

/* — about: the head, the story beside a card of facts, then the three rules on a dark band —
   The page is a column with no gap: each block carries the board's own padding. The story and the card are one
   `.facts-split` block, the board's auto-fit grid (three columns from 1256px, where the story spans two and the card
   one; two below that, where the story fills the row and the card follows; one on a phone). */
.page--about { gap: 0; padding-block: 0; }
.page--about > .page-head { align-items: stretch; gap: var(--space-6); max-width: none; margin-inline: calc(-1 * var(--page-pad)); padding: clamp(48px, 7vw, 96px) var(--page-pad) clamp(40px, 6vw, 72px); }
.page--about > .page-head .eyebrow { font-size: 12.5px; font-weight: var(--weight-regular); line-height: normal; }
.page--about > .page-head h1 { max-width: 16ch; }

.facts-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 48px; align-items: start; margin-inline: calc(-1 * var(--page-pad)); padding: 0 var(--page-pad) clamp(56px, 7vw, 96px); }
.facts-split__story { grid-column: span 2; max-width: 720px; text-wrap: wrap; }
.facts-split__story p { margin: 0 0 18px; font-size: 18px; line-height: 1.65; color: var(--color-text-muted); }
.facts-split__story p:last-child { margin: 0; }
.facts { display: flex; flex-direction: column; gap: 2px; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-card); }
.facts__list { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.facts__row { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5) 22px; line-height: normal; background: var(--color-surface); }
.facts__row > dt, .facts__row > dd { margin: 0; }
.facts__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.facts__value { font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.facts__value--mono { font-family: var(--font-mono); font-size: 14px; font-weight: var(--weight-regular); }
.facts__value a { text-decoration: none; }
.facts__value a:hover { color: var(--color-text-muted); }
.facts__note { font-size: 13.5px; line-height: 1.45; color: var(--color-text-muted); }

@media (max-width: 1023px) { .facts-split__story { grid-column: 1 / -1; } }
.page--about .timeline--rules .timeline__step { padding: 28px var(--space-6); }
.page--about .timeline--rules .timeline__body { font-size: 16px; line-height: 1.55; }
/* Tablet: the facts sit in one row under the story, the three rules in one row. */
@media (min-width: 721px) and (max-width: 1023px) {
  .facts__list { flex-direction: row; }
  .facts__row { flex: 1 1 0; min-width: 0; }
  .page--about .timeline--rules .timeline__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* — contact: the head and the addresses in the first column, the topics card in the second —
   The page is the board's two-column grid: auto-fit at 380px, which is two columns from a page 875px wide. Below that
   it is one column in source order (head, addresses, topics). The head and the addresses are separate children of
   the page, so the columns are placed by hand: the card spans both rows, and the second row takes the extra height so
   the addresses stay under the lede. */
.page--contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6) clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); }
.page--contact > .page-head { align-items: stretch; gap: var(--space-6); max-width: none; padding-top: 0; }
.page--contact > .page-head .page-head__lede { max-width: 480px; line-height: 1.55; color: var(--color-text-muted); text-wrap: wrap; }

.contact [hidden], .contact__row [hidden] { display: none; }
.contact__rows { display: flex; flex-direction: column; gap: 2px; margin: 0; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-card); }
.contact__row { display: flex; flex-direction: column; gap: 6px; padding: var(--space-5) 22px; line-height: normal; background: var(--color-surface); }
.contact__row--note { gap: var(--space-1); }
.contact__row > dt, .contact__row > dd { margin: 0; }
.contact__row > dd { display: flex; flex-direction: column; gap: 6px; }
.contact__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.contact__addr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.contact__address, .contact__selected { min-width: 0; font-size: 17px; font-weight: var(--weight-semibold); overflow-wrap: anywhere; text-decoration: none; }
.contact__selected { padding: 0 var(--space-1); color: var(--color-bg); background: var(--color-text); border-radius: 3px; }
.contact__copy { gap: var(--space-2); min-height: 40px; padding: 0 14px; font-size: 13.5px; line-height: normal; color: var(--color-text); background: var(--color-bg); border-color: var(--color-line); }
.contact__copy:hover:not(:disabled) { color: var(--color-text); border-color: var(--color-text); }
.contact__copy:not([data-state="idle"]):hover { border-color: var(--color-line); }
.contact__copy .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.contact__note, .contact__denied { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--color-text-muted); }
.contact__row--note .contact__note { font-size: 14.5px; }
.contact__denied:empty { display: none; }

.contact__topics { display: flex; flex-direction: column; gap: var(--space-4); padding: clamp(24px, 3vw, 36px); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-hero); }
.contact__topics-inner { display: flex; flex-direction: column; gap: 6px; }
/* The :not()s lift this above pages.css's `.page h2:not(.eyebrow):not(.section-title)`, which is 24px/700. */
.page h2.contact__heading:not(.eyebrow):not(.section-title) { margin: 0; font-family: var(--font-body); font-size: 13px; font-weight: var(--weight-semibold); line-height: normal; letter-spacing: normal; }
.contact__topic-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.contact__topic {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); box-sizing: border-box; inline-size: 100%;
  min-block-size: 48px; padding: 0 14px; font-size: 15px; line-height: normal; color: var(--color-text); text-decoration: none;
  background: var(--color-surface); border: 1.5px solid var(--color-border-control); border-radius: var(--radius-control);
}
.contact__topic:hover { border-color: var(--color-text); }
.contact__topic .icon { width: 18px; height: 18px; stroke-width: 2.2; color: var(--color-text-muted); }
@media (max-width: 720px) { .contact__topic { font-size: 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .contact__topic { transition: border-color var(--dur-hover) var(--ease-in-out); }
}

@media (min-width: 875px) {
  .page--contact { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; }
  .page--contact > .page-head { grid-column: 1; grid-row: 1; }
  .page--contact > .contact__rows { grid-column: 1; grid-row: 2; }
  .page--contact > .contact__topics { grid-column: 2; grid-row: 1 / span 2; }
}

/* — not found: the head only (h1, one sentence, three links back in). The board's page: Contact's padding, a 24px column. — */
.page--not-found { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); }
.page--not-found > .page-head { align-items: stretch; gap: var(--space-6); max-width: none; padding-top: 0; }
.page--not-found .page-head__lede { max-width: 480px; line-height: 1.55; color: var(--color-text-muted); text-wrap: wrap; }
.page--not-found .page-head__actions { padding-top: 0; }
.page--not-found .page-head__actions .btn-primary { min-height: var(--control-h); }
@media (max-width: 720px) { .page--not-found .page-head__actions .btn { flex: 1 1 100%; } }

/* — status: a card per month, the incidents table, the abuse total — */
.status-section { display: flex; flex-direction: column; gap: var(--space-4); }
.page .status-section > h2 { margin: 0; }
.status-intro p { margin: 0 0 var(--space-3); color: var(--color-text-muted); }
.status-intro p:last-child { margin-block-end: 0; }
.status-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.status-month { gap: var(--space-2); }
.status-month > p { margin: 0; }
.status-month__figure { font-family: var(--font-display); font-size: 28px; font-weight: var(--weight-heavy); line-height: 1.05; letter-spacing: -0.02em; }
.status-month__note { font-size: 13px; color: var(--color-text-muted); }
.status-table { overflow-x: auto; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-card); }
.status-table .commitment-table { margin: 0; }
.status-table .commitment-table tbody tr:last-child > * { border-block-end: 0; }
.status-abuse { max-inline-size: 22rem; gap: var(--space-2); }
.status-abuse > p { margin: 0; }
.status-empty { margin: 0; max-inline-size: 68ch; padding: var(--space-4) var(--space-5); border: 1px dashed var(--color-border-control); border-radius: var(--radius-inset); }
