/* ===========================================================================
   Legal surfaces — shared stylesheet
   Cosmonauts 01a public website. Written 2026-08-25.

   WHAT THIS IS. Two long-form documents, /privacy-policy and /terms-and-conditions.
   `legal` is one of the seven surfaces the live set (specs/v4-dc/) has nothing for,
   and the live footer already renders a "Legal" column of five inert labels under
   the note "Pages in preparation. Copy to follow from the legal team." These are
   two of those five.

   WHY IT IS A SEPARATE FILE AND NOT AN EDIT TO THE LIVE DOCUMENT.
   `Cosmonauts Site.dc.html` is under a standing hold: STATUS.md records that
   whether it has an upstream is contested and must be settled before anyone edits
   it. Adding sibling surfaces does not touch it. These pages are also static HTML
   with no React, no Babel and no runtime fetch from unpkg, which is the shape
   STATUS.md says anything shippable has to take.

   TOKENS. Consumed from the vendored design system by relative path. Nothing here
   redefines a token the system already supplies. Everything this file adds is
   listed under DERIVED below, with the reason.

   VISUAL LANGUAGE. Head section, page shell, floating nav pill, mobile disclosure
   nav, footer and the four breakpoints are transcribed from the live set so these
   pages sit inside it rather than beside it. Section numbering uses the system's
   SectionTag device (32px black disc + uppercase accent label).
   ======================================================================== */

@import "../_ds/cosmonauts-design-system-274fb3b8-d5c4-43fa-90d4-e02f090d7bb0/tokens/fonts.css";
@import "../_ds/cosmonauts-design-system-274fb3b8-d5c4-43fa-90d4-e02f090d7bb0/tokens/colors.css";
@import "../_ds/cosmonauts-design-system-274fb3b8-d5c4-43fa-90d4-e02f090d7bb0/tokens/typography.css";
@import "../_ds/cosmonauts-design-system-274fb3b8-d5c4-43fa-90d4-e02f090d7bb0/tokens/spacing.css";
@import "../_ds/cosmonauts-design-system-274fb3b8-d5c4-43fa-90d4-e02f090d7bb0/tokens/effects.css";
@import "../_ds/cosmonauts-design-system-274fb3b8-d5c4-43fa-90d4-e02f090d7bb0/tokens/states.css";

/* ---------------------------------------------------------------------------
   DERIVED — the long-form reading role the system does not have.

   The type scale is built for a marketing page: --leading-body is 1, which is
   correct for a two-line card title and unreadable for a fourteen-section legal
   document. The live set already departs from it, setting line-height 1.45 inline
   on every standfirst, so the departure is established practice rather than a new
   idea; it just has no token. These three are the smallest set that lets a legal
   document be read, and they are candidates to go upstream rather than to live
   here permanently. Raised in README.md as DS-1.

   --leading-prose 1.65: measured against Geist at 17px. The system's own
   --span-8 comment says an eight-column measure "lands near 70 characters", which
   is the measure these pages hold.
   ------------------------------------------------------------------------ */
:root {
  --leading-prose: 1.65;
  --size-prose: 17px;          /* one step above --size-body; body is a UI size here */
  --prose-measure: 68ch;       /* the eight-column measure, expressed in characters */
  --prose-para-gap: var(--space-16);
  --legal-rule: 1px solid var(--border-hairline);
}

html, body { margin: 0; padding: 0; background: var(--cos-white); }

/* The live document's page shell, verbatim. --page-x steps at 760 and 600 below. */
.cos-page {
  width: 100%;
  --page-x: clamp(48px, 8vw, 352px);
  margin: 0 auto;
  background: var(--surface-page);
  position: relative;
  font-family: var(--font-core);
}

/* Links inside chrome (nav, footer) are unstyled; links inside prose keep the
   system's underline. states.css sets a global `a` rule, so chrome opts out. */
.cos-page a { color: var(--cos-black); text-decoration: none; }
.cos-page a:hover { opacity: var(--state-hover-opacity); }

.cos-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Skip link. These pages carry a persistent contents rail, so the number of
   things between the top of the document and the text is higher than on any
   other surface. It reveals itself as a standard pill on focus. */
.cos-skip {
  position: absolute; left: var(--space-24); top: var(--space-24); z-index: 80;
  transform: translateY(-200%);
  display: inline-flex; align-items: center; height: var(--control-h-sm);
  padding: 0 var(--control-pad-x-sm);
  border-radius: var(--radius-pill);
  background: var(--cos-black); color: var(--cos-white);
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  font-size: var(--size-label-sm); letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
}
.cos-skip:focus { transform: translateY(0); }

/* ============================ NAVIGATION ============================
   The floating pill from the live set's SiteHeader: white, fully rounded,
   logo centred with the items split symmetrically either side by flex `order`,
   so DOM order stays logical while the arrangement is symmetrical. The disc
   beside a label is the state marker and its space is reserved at rest, so
   nothing in the row shifts when it appears.

   navItems is the live set's four: Home, Events, Members, Contact us. That
   contradicts the standing "primary nav is exactly two items" rule, which
   STATUS.md records as broken by the live design and unresolved. These pages
   follow the live set rather than pick a side. Raised in README.md as OQ-4. */
.cos-desktop-nav { position: absolute; left: 0; right: 0; top: 0; z-index: 5; }
.cos-nav-outer {
  display: flex; justify-content: center;
  padding: var(--space-24) var(--gutter-web);
  box-sizing: border-box;
}
.cos-nav-pill {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-32);
  height: var(--nav-pill-h);
  padding: 0 var(--space-32);
  border-radius: var(--radius-pill);
  background: var(--cos-white);
  box-sizing: border-box;
}
.cos-nav-logo { order: 0; display: inline-flex; margin: 0 var(--space-16); }
.cos-nav-logo img { height: 24px; width: auto; display: block; }
.cos-nav-item {
  display: inline-flex; align-items: center; gap: var(--btn-hover-dot-gap);
  font-family: var(--font-core); font-weight: var(--weight-medium);
  font-size: var(--size-body); line-height: var(--leading-ui);
  letter-spacing: var(--tracking-body);
  color: var(--cos-black); white-space: nowrap;
  transition: opacity var(--state-duration) var(--state-ease);
}
.cos-nav-item[data-side="left"]  { order: -1; }
.cos-nav-item[data-side="right"] { order: 1; }
.cos-nav-dot {
  flex-shrink: 0; display: block;
  width: var(--btn-hover-dot); height: var(--btn-hover-dot);
  border-radius: var(--radius-round); background: currentColor;
  opacity: 0; transform: translateX(calc(var(--btn-hover-dot) * -0.5));
  transition: opacity var(--state-duration) var(--state-ease),
              transform var(--state-duration) var(--state-ease);
}
.cos-nav-item:hover .cos-nav-dot,
.cos-nav-item:focus-visible .cos-nav-dot { opacity: 1; transform: translateX(0); }

/* Mobile disclosure nav, below 600px. A <details>, so open/closed, keyboard
   operation and Escape all come from the platform. The toggle is a labelled
   pill and not a hamburger: the brand rule is pill = labelled action, circle =
   iconic control, and the icon set holds no hamburger glyph, so drawing one
   would invent a brand asset. Transcribed from the live set. */
.cos-mobile-nav { display: none; }
.cos-mobile-nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60;
  padding: 12px 20px; box-sizing: border-box;
}
.cos-mnav-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cos-mnav-logo {
  display: inline-flex; align-items: center; height: 52px; padding: 0 20px;
  border-radius: var(--radius-pill); background: var(--cos-white);
  border: none; appearance: none; -webkit-appearance: none;
  font: inherit; color: inherit; cursor: pointer;
}
.cos-mnav-logo img { height: 22px; width: auto; display: block; }
.cos-mnav-toggle {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px;
  border: none; cursor: pointer; border-radius: var(--radius-pill);
  background: var(--cos-white); color: var(--cos-black);
  font-family: var(--font-accent); font-weight: var(--weight-medium); font-size: 15px;
  letter-spacing: var(--tracking-accent); text-transform: uppercase;
  list-style: none;
}
.cos-mnav-toggle::-webkit-details-marker { display: none; }
.cos-mnav-toggle::marker { content: ""; }
.cos-mnav-toggle .cos-mnav-dot {
  width: var(--btn-hover-dot); height: var(--btn-hover-dot);
  border-radius: var(--radius-round); background: var(--cos-black); flex-shrink: 0;
}
details[open] > .cos-mnav-toggle { background: var(--cos-black); color: var(--cos-white); }
details[open] > .cos-mnav-toggle .cos-mnav-dot { background: var(--cos-white); }
.cos-mnav-closed { display: inline; }
.cos-mnav-opened { display: none; }
details[open] .cos-mnav-closed { display: none; }
details[open] .cos-mnav-opened { display: inline; }
.cos-mnav-panel {
  position: absolute; left: 20px; right: 20px; top: 76px;
  padding: 12px; box-sizing: border-box;
  background: var(--cos-black); border-radius: 20px;
  display: flex; flex-direction: column;
}
.cos-mnav-panel a {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 16px 14px; text-align: left;
  font-family: var(--font-core); font-weight: var(--weight-medium); font-size: 26px;
  letter-spacing: var(--tracking-headline); color: var(--cos-white);
}
.cos-mnav-mark {
  width: 10px; height: 10px; border-radius: var(--radius-round);
  background: var(--cos-white); flex-shrink: 0; opacity: 0;
}
.cos-mnav-panel a[aria-current="page"] .cos-mnav-mark { opacity: 1; }

/* ============================ HEAD ============================
   The live set's "— Head" pattern: --surface-section ground, the orbit graphic
   bled off the top-right corner at 0.13, the floating header absolutely placed
   over it at z-index 5, and 158px of top padding to clear it. */
.cos-head {
  position: relative; width: 100%;
  background: var(--surface-section);
  padding: 0 var(--page-x) 80px;
  box-sizing: border-box;
  overflow: hidden;
}
.cos-head-orbit {
  position: absolute; right: -8%; top: -34%;
  width: min(760px, 46%); aspect-ratio: 1 / 1;
  pointer-events: none; opacity: 0.13;
}
.cos-head-orbit svg { display: block; width: 100%; height: auto; }
.cos-head-grid {
  position: relative; padding-top: 158px;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 64px; align-items: end;
}
.cos-head-grid h1 {
  margin: 0; font-family: var(--font-core); font-weight: var(--weight-medium);
  font-size: clamp(56px, 6.7vw, 112px); line-height: var(--leading-headline);
  letter-spacing: var(--tracking-headline); color: var(--text-primary);
}
.cos-head-standfirst {
  margin: 0; font-family: var(--font-core); font-weight: var(--weight-regular);
  font-size: var(--size-body); line-height: 1.45;
  letter-spacing: var(--tracking-body); text-wrap: pretty;
}
.cos-head-note { display: flex; justify-content: flex-end; margin-top: 48px; }
.cos-head-note span {
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  font-size: var(--size-label-sm); letter-spacing: var(--tracking-accent);
  text-transform: uppercase; color: var(--text-muted);
}

/* ============================ STATUS BAND ============================
   A black band stating that the document is a draft and not in force. This is
   the one piece of these pages that is meant to be deleted rather than filled
   in: it comes out when Legal signs the wording off. It is deliberately the
   loudest thing on the page after the headline, because a draft privacy notice
   that reads as a live one is the failure mode worth designing against.

   The band uses --cos-black rather than --feedback-warning. The brand is
   monochrome and the derived feedback colours are flagged in colors.css as
   "most likely values to be overruled by the agency"; a page that may be
   screenshotted for sign-off should not be the first surface to spend them. */
.cos-status {
  width: 100%; background: var(--cos-black);
  padding: 32px var(--page-x); box-sizing: border-box;
}
.cos-status-inner {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: var(--space-16) var(--space-32);
}
.cos-status-tag {
  display: inline-flex; align-items: center; gap: var(--space-8); flex-shrink: 0;
}
.cos-status-tag span:first-child {
  width: var(--marker-size); height: var(--marker-size); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-round);
  background: var(--cos-white); color: var(--cos-black);
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  font-size: var(--size-label); line-height: var(--leading-ui);
}
.cos-status-tag span:last-child {
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  font-size: var(--size-label); line-height: var(--leading-ui);
  letter-spacing: var(--tracking-accent); text-transform: uppercase;
  color: var(--cos-white); white-space: nowrap;
}
.cos-status p {
  margin: 0; flex: 1 1 320px;
  font-family: var(--font-core); font-weight: var(--weight-regular);
  font-size: var(--size-body); line-height: 1.5;
  letter-spacing: var(--tracking-body); color: var(--text-inverse-muted);
  text-wrap: pretty;
}
.cos-status p strong { color: var(--cos-white); font-weight: var(--weight-semibold); }

/* ============================ DOCUMENT BODY ============================
   Two columns: a persistent contents rail and the document. The rail is sticky
   because a fourteen-section notice is a reference document — a reader arrives
   looking for section 10, not to read from the top. */
.cos-doc {
  width: 100%; background: var(--surface-page);
  padding: 64px var(--page-x) 96px; box-sizing: border-box;
}
.cos-doc-grid {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px; align-items: start;
}

.cos-toc { position: sticky; top: 32px; }
.cos-toc h2 {
  margin: 0 0 var(--space-16);
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  font-size: var(--size-label-sm); line-height: var(--leading-ui);
  letter-spacing: var(--tracking-accent); text-transform: uppercase;
  color: var(--text-muted);
}
.cos-toc ol { list-style: none; margin: 0; padding: 0; }
.cos-toc li { border-top: var(--legal-rule); }
.cos-toc li:last-child { border-bottom: var(--legal-rule); }
.cos-toc a {
  display: grid; grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--space-8); align-items: baseline;
  padding: 10px 0;
  font-family: var(--font-core); font-weight: var(--weight-regular);
  font-size: var(--size-body-sm); line-height: 1.3;
  letter-spacing: var(--tracking-body); color: var(--text-secondary);
  transition: color var(--state-duration) var(--state-ease);
}
.cos-toc a:hover { opacity: 1; color: var(--text-primary); }
.cos-toc a span:first-child {
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  color: var(--text-muted); font-variant-numeric: tabular-nums;
}

/* A section. Numbered tag, heading, prose. The tag is the system's SectionTag
   at its 32px default; every content section in the brand's web concepts opens
   with one, and a numbered legal document is the case it fits best. */
.cos-section { max-width: var(--prose-measure); scroll-margin-top: 32px; }
.cos-section + .cos-section { margin-top: 64px; padding-top: 48px; border-top: var(--legal-rule); }
.cos-tag { display: flex; align-items: center; gap: var(--space-8); margin-bottom: var(--space-24); }
.cos-tag-num {
  width: var(--marker-size); height: var(--marker-size); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-round);
  background: var(--cos-black); color: var(--cos-white);
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  font-size: var(--size-label); line-height: var(--leading-ui);
  font-variant-numeric: tabular-nums;
}
.cos-tag-label {
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  font-size: var(--size-label); line-height: var(--leading-ui);
  letter-spacing: var(--tracking-accent); text-transform: uppercase;
  color: var(--cos-black);
}
.cos-section h2 {
  margin: 0 0 var(--space-24);
  font-family: var(--font-core); font-weight: var(--weight-medium);
  font-size: clamp(28px, 3vw, var(--size-h3)); line-height: 1.05;
  letter-spacing: var(--tracking-headline); color: var(--text-primary);
  text-wrap: balance;
}
.cos-section h3 {
  margin: 32px 0 var(--space-12);
  font-family: var(--font-core); font-weight: var(--weight-semibold);
  font-size: 19px; line-height: 1.25;
  letter-spacing: var(--tracking-body); color: var(--text-primary);
}

/* The prose role itself. */
.cos-prose p {
  margin: 0 0 var(--prose-para-gap);
  font-family: var(--font-core); font-weight: var(--weight-regular);
  font-size: var(--size-prose); line-height: var(--leading-prose);
  letter-spacing: var(--tracking-body); color: var(--text-secondary);
  text-wrap: pretty;
}
.cos-prose p:last-child { margin-bottom: 0; }
.cos-prose a { text-decoration: underline; text-underline-offset: 0.18em; color: var(--text-primary); }
.cos-prose strong { font-weight: var(--weight-semibold); color: var(--text-primary); }

/* DERIVED — a prose list. MarkerList is described in the system as "the only
   list style in the system", and it is uppercase Space Grotesk at
   --leading-body. That is a label list. A legal document's clauses are running
   sentences, and setting fourteen of them in uppercase accent would be
   unreadable and wrong. This keeps the brand device — the circular marker, at
   text size, in black — and puts the text in the prose role. Raised as DS-2. */
.cos-prose ul { list-style: none; margin: 0 0 var(--prose-para-gap); padding: 0; }
.cos-prose ul li {
  position: relative; padding-left: 22px; margin-bottom: var(--space-12);
  font-family: var(--font-core); font-weight: var(--weight-regular);
  font-size: var(--size-prose); line-height: var(--leading-prose);
  letter-spacing: var(--tracking-body); color: var(--text-secondary);
  text-wrap: pretty;
}
.cos-prose ul li::before {
  content: ""; position: absolute; left: 0;
  /* Centred on the first line's optical middle rather than its top. */
  top: calc(var(--size-prose) * var(--leading-prose) / 2 - 4px);
  width: var(--space-8); height: var(--space-8);
  border-radius: var(--radius-round); background: var(--cos-black);
}
.cos-prose ul li:last-child { margin-bottom: 0; }

/* Numbered clauses — 1.1, 7.4 and so on. The reference is the content, so it is
   set in the accent face and hung in its own column rather than folded into the
   sentence, which is what the source document does and what makes it hard to
   scan. */
.cos-clauses { display: flex; flex-direction: column; gap: var(--space-16); margin: 0 0 var(--prose-para-gap); }
.cos-clause { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: var(--space-12); align-items: baseline; }
.cos-clause > dt {
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  font-size: var(--size-label-sm); line-height: var(--leading-prose);
  letter-spacing: var(--tracking-accent); color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.cos-clause > dd {
  margin: 0;
  font-family: var(--font-core); font-weight: var(--weight-regular);
  font-size: var(--size-prose); line-height: var(--leading-prose);
  letter-spacing: var(--tracking-body); color: var(--text-secondary);
  text-wrap: pretty;
}

/* A definition table — the data categories in the privacy notice, the entity
   details in both. Hairline rows, no fills, no shadows: the identity is flat
   and separation comes from rules and tonal surfaces. */
.cos-deflist { margin: 0 0 var(--prose-para-gap); border-top: var(--legal-rule); }

/* A three-column table — the purposes-of-processing table in the privacy notice,
   which the deflist cannot carry because it pairs a purpose with BOTH the data
   types and the legal basis. Same idiom as the deflist: hairline rows, no fills,
   no shadows. Below 760px each row becomes a stack, because three columns of
   legal prose in 375px is unreadable and a horizontal scroll inside a legal
   document is worse. */
.cos-table { margin: 0 0 var(--prose-para-gap); border-top: var(--legal-rule); }
.cos-table > div {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: var(--space-24); padding: 16px 0; border-bottom: var(--legal-rule);
}
.cos-table-head > * {
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  font-size: var(--size-label-sm); line-height: 1.3;
  letter-spacing: var(--tracking-accent); text-transform: uppercase;
  color: var(--text-primary);
}
.cos-table-cell { margin: 0; }
.cos-table-cell + .cos-table-cell { margin: 0; }
@media (max-width: 760px) {
  .cos-table > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  /* The column headings describe columns that no longer exist side by side.
     `.cos-table > .cos-table-head`, not `.cos-table-head`: the row rule above is
     `.cos-table > div`, which is (0,1,1), and a media query adds no specificity. A bare
     class selector here is (0,1,0) and loses, which showed the headings twice in the
     stacked view — once as the head row and once as each cell's own label. */
  .cos-table > .cos-table-head { display: none; }
  .cos-table-cell::before {
    content: attr(data-label); display: block;
    font-family: var(--font-accent); font-weight: var(--weight-medium);
    font-size: var(--size-label-sm); letter-spacing: var(--tracking-accent);
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
  }
}

.cos-deflist > div {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--space-24); padding: 16px 0; border-bottom: var(--legal-rule);
}
.cos-deflist dt {
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  font-size: var(--size-label-sm); line-height: 1.3;
  letter-spacing: var(--tracking-accent); text-transform: uppercase;
  color: var(--text-primary);
}
.cos-deflist dd {
  margin: 0;
  font-family: var(--font-core); font-weight: var(--weight-regular);
  font-size: var(--size-body); line-height: 1.5;
  letter-spacing: var(--tracking-body); color: var(--text-secondary);
}

/* The pending-copy marker. Every section carries one until Legal replaces the
   wording. It is a tonal panel rather than a coloured one, for the same reason
   the status band is black. */
.cos-pending {
  display: flex; align-items: flex-start; gap: var(--space-12);
  margin: var(--space-24) 0 0; padding: 16px 18px;
  background: var(--surface-section);
}
.cos-pending::before {
  content: ""; flex-shrink: 0; margin-top: 7px;
  width: var(--marker-sm); height: var(--marker-sm);
  border-radius: var(--radius-round); background: var(--cos-black);
}
.cos-pending p {
  margin: 0;
  font-family: var(--font-core); font-weight: var(--weight-regular);
  font-size: var(--size-body-sm); line-height: 1.5;
  letter-spacing: var(--tracking-body); color: var(--text-muted);
}
.cos-pending p strong {
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  text-transform: uppercase; color: var(--text-primary);
}

/* The sibling-document link that closes each page. */
.cos-crosslink {
  width: 100%; background: var(--surface-section);
  padding: 48px var(--page-x) 64px; box-sizing: border-box;
}
.cos-crosslink-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--space-24);
}
.cos-crosslink-inner p {
  margin: 0; max-width: 48ch;
  font-family: var(--font-core); font-size: var(--size-body); line-height: 1.5;
  letter-spacing: var(--tracking-body); color: var(--text-secondary);
}
.cos-btn {
  display: inline-flex; align-items: center; gap: var(--btn-hover-dot-gap);
  height: var(--control-h); padding: 0 var(--control-pad-x);
  border-radius: var(--radius-pill);
  background: var(--cos-black); color: var(--cos-white);
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  font-size: var(--size-body); line-height: var(--leading-headline);
  letter-spacing: var(--tracking-none); text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--state-duration) var(--state-ease);
}
/* The chrome rule above is `.cos-page a`, which is (0,1,1) and beat `.cos-btn`'s
   (0,1,0) — so the label rendered black on the black pill, at 1:1, invisible.
   Found by screenshot on 2026-08-25, not by reading the CSS. Qualifying with the
   element wins on specificity without reaching for !important. */
.cos-page a.cos-btn { color: var(--cos-white); }
.cos-btn .cos-nav-dot { background: var(--cos-white); }
.cos-btn:hover { opacity: 1; }
.cos-btn:hover .cos-nav-dot, .cos-btn:focus-visible .cos-nav-dot { opacity: 1; transform: translateX(0); }

/* ============================ FOOTER ============================
   Transcribed from the live document. The one change is that the Legal column's
   five labels are no longer inert <span>s: the two that now exist are links,
   and the note beneath narrows to the three that do not. */
.cos-footer {
  width: 100%; background: var(--cos-black);
  padding: 64px var(--page-x) 48px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 64px;
}
.cos-footer-cols {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 64px);
  align-items: flex-start; justify-content: space-between;
}
.cos-footer-col { display: flex; flex-direction: column; gap: 12px; }
.cos-footer-col > span:first-child {
  font-family: var(--font-accent); font-weight: var(--weight-medium); font-size: 13px;
  letter-spacing: var(--tracking-accent); text-transform: uppercase;
  color: var(--text-inverse-muted);
}
.cos-footer-col a, .cos-footer-col > span:not(:first-child) {
  font-family: var(--font-accent); font-weight: var(--weight-medium); font-size: 14px;
  letter-spacing: var(--tracking-accent); text-transform: uppercase;
  color: var(--cos-white); white-space: nowrap;
}
/* The three legal pages that do not exist yet. This lost to
   `.cos-footer-col > span:not(:first-child)` — (0,2,1) against (0,2,0) — so they
   rendered pure white and read as working links to pages that are not written.
   The `:not()` is carried here so this selector is unambiguously more specific
   rather than winning on source order. */
.cos-footer-col > span.cos-footer-dim:not(:first-child) { color: var(--text-inverse-muted); }
.cos-footer-cols a { color: var(--cos-white); }
.cos-footer-logo img { height: 22px; width: auto; display: block; }
.cos-footer-note {
  margin-top: 4px;
  font-family: var(--font-core); font-weight: var(--weight-regular); font-size: 13px;
  line-height: 1.3; letter-spacing: var(--tracking-body);
  color: var(--text-inverse-muted); max-width: 200px;
  text-transform: none; white-space: normal;
}
.cos-footer-base {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 24px;
}
.cos-footer-base span {
  font-family: var(--font-accent); font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-accent); text-transform: uppercase;
}
.cos-footer-base span:first-child { font-size: 14px; color: var(--cos-white); }
.cos-footer-base span:last-child { font-size: 13px; color: var(--text-inverse-muted); text-align: right; }

/* ============================ RESPONSIVE ============================
   The live set's four breakpoints, and its reasons. 900 is where the footer's
   five flex columns stop holding and where a two-column editorial head stops
   being two columns. 760 is where a readable measure dies. 600 is where the nav
   pill cannot be made to fit at any gap or padding. 380 is the floor.

   These pages add one breakpoint decision of their own: the contents rail goes
   from a sticky 260px column to a <details> disclosure above the document at
   900, not at 760. A 260px rail against a 68ch measure needs about 900px of
   content box before the measure survives, and --page-x is still 48px at 900. */

@media (max-width: 900px) {
  .cos-footer-cols {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 20px; justify-content: start;
  }
  .cos-footer-cols > :first-child { grid-column: 1 / -1; }
  .cos-footer-cols a, .cos-footer-cols span, .cos-footer-cols p { white-space: normal; }
  .cos-footer-cols { overflow-wrap: anywhere; }

  .cos-head-grid { grid-template-columns: 1fr; gap: 32px; }
  .cos-head-note { justify-content: flex-start; margin-top: 24px; }
  .cos-head { padding-bottom: 40px; }
  .cos-doc { padding-top: 40px; padding-bottom: 56px; }
  .cos-footer { padding-top: 48px; }

  /* The rail becomes a disclosure. It keeps its position above the document, so
     the reader still meets the contents before the text. */
  .cos-doc-grid { grid-template-columns: 1fr; gap: 40px; }
  .cos-toc { position: static; }
  .cos-toc-wrap { border-top: var(--legal-rule); border-bottom: var(--legal-rule); }
  .cos-toc-summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-12);
    padding: 18px 0; cursor: pointer; list-style: none;
    font-family: var(--font-accent); font-weight: var(--weight-medium);
    font-size: var(--size-label); letter-spacing: var(--tracking-accent);
    text-transform: uppercase; color: var(--text-primary);
  }
  .cos-toc-summary::-webkit-details-marker { display: none; }
  .cos-toc-summary::marker { content: ""; }
  .cos-toc-open { display: none; }
  .cos-toc-wrap[open] .cos-toc-open { display: inline; }
  .cos-toc-wrap[open] .cos-toc-shut { display: none; }
  .cos-toc h2 { display: none; }
  .cos-toc ol { padding-bottom: 12px; }
  .cos-toc li:first-child { border-top: none; }
  .cos-toc li:last-child { border-bottom: none; }
  .cos-toc a { padding: 12px 0; font-size: var(--size-body); }
}

/* Above 900 the disclosure must not behave like one: it is a plain rail. */
@media (min-width: 901px) {
  .cos-toc-summary { display: none; }
  .cos-toc-wrap > ol { display: block !important; }
}

/* The 901-1080 band, where --page-x is still climbing (8vw) while the rail is
   already back. Both take width from the measure at once, and at 920 the
   measure fell to 50.6 characters against the 68-72 this page holds elsewhere —
   measured on the rendered page, not derived. A 260px rail and a 64px gap is a
   1440 proportion; here the rail narrows and the gap closes, which returns the
   measure to about 62 characters without changing anything above 1080. */
@media (min-width: 901px) and (max-width: 1080px) {
  .cos-doc-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
  .cos-toc a { grid-template-columns: 20px minmax(0, 1fr); font-size: 13px; }
}

@media (max-width: 760px) {
  .cos-page { --page-x: 32px; }
  .cos-head-grid { padding-top: 128px; }
  .cos-crosslink-inner { flex-direction: column; align-items: flex-start; }
  .cos-deflist > div { grid-template-columns: 1fr; gap: var(--space-8); }
  .cos-footer-base { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cos-footer-base span:last-child { text-align: left; }
}

@media (max-width: 600px) {
  .cos-page { --page-x: 20px; }
  .cos-desktop-nav { display: none; }
  .cos-mobile-nav { display: block; }
  /* The head no longer clears a floating pill inside the section; it clears the
     fixed mobile bar, which is 76px including its padding. */
  .cos-head-grid { padding-top: 108px; }
  .cos-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cos-clause { grid-template-columns: 1fr; gap: var(--space-4); }
  .cos-clause > dt { line-height: 1.2; }
  .cos-status { padding-top: 24px; padding-bottom: 24px; }
  /* Touch target: the contents rows are 12px of padding on a 16px line, which
     is 40px. Under the 44px floor. */
  .cos-toc a { padding: 14px 0; }
}

@media (max-width: 380px) {
  .cos-nav-pill { gap: var(--space-16); }
  .cos-footer-cols { grid-template-columns: 1fr; }
}

@media print {
  .cos-desktop-nav, .cos-mobile-nav, .cos-toc, .cos-crosslink, .cos-skip { display: none !important; }
  .cos-doc-grid { grid-template-columns: 1fr; }
  .cos-head, .cos-status, .cos-footer { background: none !important; }
  .cos-status p, .cos-status-tag span:last-child, .cos-footer-base span,
  .cos-footer-col a, .cos-footer-col span { color: var(--cos-black) !important; }
  .cos-status-tag span:first-child { background: var(--cos-black) !important; color: var(--cos-white) !important; }
  .cos-section { max-width: none; }
  .cos-section + .cos-section { break-before: auto; }
  .cos-section h2 { break-after: avoid; }
}
