/* Pushix document pages: legal pages (/legal, /terms, /privacy, …), developer guides (/guides/…) and the
   "not found" page. Builds on the tokens and base styles in site.css
   (nav, footer, .wrap). Document first: one readable ~70ch column, the list of legal pages on the left
   and a sticky "On this page" on the right; a single column on phones. Light and dark come from the
   tokens, so nothing here is theme-specific except the print sheet at the end. */

html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.legal address { font-style: normal; }

/* ---------------------------------------------------------------- page header */
.legal-head {
  position: relative; padding: 52px 0 40px; border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(620px 260px at 8% 0%, color-mix(in srgb, var(--blue) 15%, transparent), transparent 70%),
    radial-gradient(520px 260px at 96% 0%, color-mix(in srgb, var(--magenta) 8%, transparent), transparent 70%);
}
.legal-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--signal); opacity: .55; }
.legal-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13.5px; color: var(--ink-3); }
.legal-crumbs li + li::before { content: "/"; margin: 0 9px; color: var(--line); }
.legal-crumbs a { color: var(--ink-3); text-decoration: none; }
.legal-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.legal-crumbs [aria-current] { color: var(--ink-2); }
.legal-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.3vw, 48px); line-height: 1.08; letter-spacing: -0.035em; margin-top: 16px; max-width: 22ch; text-wrap: balance; }
.legal-head .lede { font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.55; color: var(--ink-2); margin-top: 14px; max-width: 60ch; }
.legal-head .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.legal-head .meta span { font-size: 13px; color: var(--ink-2); padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line-soft); background: color-mix(in srgb, var(--deck) 75%, transparent); overflow-wrap: anywhere; }
.legal-head .meta time { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- three columns */
.legal-grid {
  display: grid; grid-template-columns: 196px minmax(0, 1fr) 214px; grid-template-areas: "side doc toc";
  gap: 48px; align-items: start; padding-top: 44px; padding-bottom: 96px;
}
.legal-side { grid-area: side; position: sticky; top: 92px; }
.legal-doc { grid-area: doc; min-width: 0; max-width: 70ch; }
.legal-toc { grid-area: toc; position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
.toc-mobile { grid-area: tocm; display: none; }
.side-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3) !important; margin: 0 0 10px; }

/* legal pages list */
.legal-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-side a { position: relative; display: block; padding: 7px 12px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.35; transition: background .15s, color .15s; }
.legal-side a:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); color: var(--ink); }
.legal-side a[aria-current="page"] { background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 18%, transparent), color-mix(in srgb, var(--blue) 3%, transparent)); color: var(--ink); font-weight: 600; }
.legal-side a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--signal-v); }
.legal-side .side-all { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.legal-side .side-all a { color: var(--ink-3); font-size: 13.5px; }

/* on this page */
.legal-toc ol { list-style: none; margin: 0; padding: 0; }
.legal-toc li a { display: grid; grid-template-columns: 24px minmax(0, 1fr); padding: 5px 4px 5px 12px; border-left: 2px solid var(--line-soft); color: var(--ink-3); text-decoration: none; font-size: 13.5px; line-height: 1.4; transition: color .15s, border-color .15s; }
.legal-toc li a span { font-family: var(--mono); font-size: 11.5px; padding-top: 1.5px; }
.legal-toc li a:hover { color: var(--ink); }
.legal-toc li a[aria-current] { color: var(--ink); border-left-color: var(--accent-ui); }
.legal-toc li a[aria-current] span { color: var(--accent-ui); }
.toc-top { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--ink-3); text-decoration: none; }
.toc-top:hover { color: var(--ink); }

/* on this page — phones and tablets */
.toc-mobile { border: 1px solid var(--line-soft); border-radius: 14px; background: var(--deck); }
.toc-mobile summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-weight: 650; color: var(--ink); border-radius: 14px; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary span { margin-left: auto; font-weight: 500; font-size: 13px; color: var(--ink-3); }
.toc-mobile summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.toc-mobile[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc-mobile ol { list-style: none; margin: 0; padding: 6px 8px 10px; border-top: 1px solid var(--line-soft); }
.toc-mobile a { display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.4; }
.toc-mobile a:hover { background: var(--deck-2); color: var(--ink); }
.toc-mobile a span { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); padding-top: 2px; }

/* ---------------------------------------------------------------- the document */
.prose { font-size: 16.5px; line-height: 1.72; color: var(--ink-2); }
.prose p { margin: 0 0 1em; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose em { color: var(--ink); }
.prose a { color: var(--link); overflow-wrap: anywhere; }
.prose a:hover { color: var(--link-hover); }
.prose code { font-size: .84em; word-break: normal; overflow-wrap: anywhere; }
.legal-doc h2 {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font); font-size: 21px; line-height: 1.3; font-weight: 650; letter-spacing: -0.012em; font-stretch: 100%;
  color: var(--ink); margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--line-soft);
}
.legal-doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sec-n { flex: none; min-width: 2.2ch; font-family: var(--mono); font-size: 13.5px; font-weight: 500; color: var(--accent-ui); }
.sec-link { flex: none; margin-left: 2px; padding: 0 4px; border-radius: 5px; color: var(--ink-3) !important; font-weight: 500; text-decoration: none; opacity: 0; transition: opacity .15s; }
.legal-doc h2:hover .sec-link { opacity: 1; }
.prose h3 { font-size: 17px; line-height: 1.35; color: var(--ink); margin: 28px 0 8px; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose li { margin: 0 0 .55em; padding-left: .3em; }
.prose li::marker { color: var(--accent-ui); }
.prose ol > li::marker { font-family: var(--mono); font-size: .86em; }
.prose ol.alpha { list-style: lower-alpha; }
.prose ol.alpha > li::marker { content: "(" counter(list-item, lower-alpha) ") "; }

/* "In short" box at the top of a page */
.summary { position: relative; margin: 0 0 8px; padding: 20px 22px 16px 24px; border-radius: 16px; border: 1px solid var(--line-soft); overflow: hidden;
  background: radial-gradient(420px 180px at 0% 0%, color-mix(in srgb, var(--blue) 11%, transparent), transparent 70%), var(--deck); }
.summary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--signal-v); }
.summary .summary-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.summary li { position: relative; margin: 0; padding-left: 26px; color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.summary li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--accent-ui); border-bottom: 2px solid var(--accent-ui); transform: rotate(-45deg); }

/* tables */
.table-wrap { margin: 18px 0 22px; border: 1px solid var(--line-soft); border-radius: 14px; overflow-x: auto; background: var(--deck); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 14px; border-top: 1px solid var(--line-soft); border-bottom: 0; white-space: normal; font-size: inherit; }
.prose thead th { border-top: 0; background: var(--deck-2); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.prose tbody th { color: var(--ink); font-weight: 600; min-width: 8em; }
.prose td { color: var(--ink-2); }
.prose td:first-child code { white-space: nowrap; }

/* definitions and facts */
.terms-list { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); margin: 16px 0 24px; border-top: 1px solid var(--line-soft); }
.terms-list dt, .terms-list dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.terms-list dt { padding-right: 18px; color: var(--ink); font-weight: 650; }
.facts { display: grid; grid-template-columns: minmax(84px, 120px) minmax(0, 1fr); gap: 9px 16px; margin: 0; font-size: 15px; line-height: 1.5; }
.facts dt { color: var(--ink-3); font-size: 13.5px; padding-top: 1px; }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: break-word; min-width: 0; }
.facts dd a { overflow-wrap: anywhere; }

/* contact cards */
.contact-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 16px 0 8px; }
.contact-card { border: 1px solid var(--line-soft); border-radius: 16px; background: var(--deck); padding: 20px 22px; min-width: 0; }
.contact-card h3 { margin: 0 0 14px; font-size: 17px; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card p { font-size: 15px; line-height: 1.6; }
.contact-card.officer { margin: 18px 0 20px; border-color: var(--wash-line); background: radial-gradient(420px 160px at 100% 0%, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 70%), var(--deck); }
.soft-note { margin: 12px 0 0 !important; font-size: 14px; color: var(--ink-3) !important; }

.doc-end { margin: 48px 0 0 !important; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 14.5px; color: var(--ink-3) !important; }

/* ---------------------------------------------------------------- /legal index */
.legal-index { padding-top: 40px; padding-bottom: 96px; }
.index-intro p { max-width: 74ch; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.index-intro a, .index-panel a:not(.btn) { color: var(--link); }
.legal-cards { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.legal-cards li { display: flex; }
.legal-card { flex: 1; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 20px 20px 18px; border-radius: 18px; border: 1px solid var(--line-soft); background: var(--deck); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s cubic-bezier(.2, .75, .2, 1), box-shadow .2s; }
.legal-card:hover { color: var(--ink); border-color: var(--wash-line); transform: translateY(-2px); box-shadow: 0 18px 40px var(--shadow-lg); }
.lc-icon { width: 40px; height: 40px; margin-bottom: 6px; border-radius: 11px; display: grid; place-items: center; color: var(--accent-ui); background: color-mix(in srgb, var(--blue) 14%, transparent); }
.lc-icon .i { width: 21px; height: 21px; }
.lc-title { font-size: 16.5px; font-weight: 650; line-height: 1.3; }
.lc-text { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.lc-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--link); }
.lc-go .i { width: 15px; height: 15px; transition: transform .2s; }
.legal-card:hover .lc-go .i { transform: translateX(3px); }
.index-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.index-panel { min-width: 0; padding: 24px; border-radius: 18px; border: 1px solid var(--line-soft); background: var(--deck); }
.legal .index-panel h2 { font-family: var(--font); font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; font-stretch: 100%; margin: 0 0 14px; }
.index-panel p { font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.index-panel p:last-child { margin-bottom: 0; }
.index-note { margin-top: 24px; font-size: 14px; color: var(--ink-3) !important; }

/* ---------------------------------------------------------------- entrance (skipped with reduced motion)
   Movement only, no fade: the heading and first paragraph paint at once (fast largest paint, no layout shift). */
@keyframes legal-in { from { transform: translateY(8px); } }
.legal-grid > *, .index-intro, .index-panels, .index-note { animation: legal-in .5s cubic-bezier(.2, .75, .2, 1) both; }
.legal-cards li { animation: legal-in .5s cubic-bezier(.2, .75, .2, 1) both; animation-delay: calc(.14s + var(--n, 0) * 35ms); }
.legal-cards li:nth-child(2) { --n: 1; } .legal-cards li:nth-child(3) { --n: 2; } .legal-cards li:nth-child(4) { --n: 3; }
.legal-cards li:nth-child(5) { --n: 4; } .legal-cards li:nth-child(6) { --n: 5; } .legal-cards li:nth-child(7) { --n: 6; } .legal-cards li:nth-child(8) { --n: 7; }
@media (prefers-reduced-motion: reduce) {
  .legal-grid > *, .legal-cards li, .index-intro, .index-panels, .index-note { animation: none !important; }
  .legal-card, .legal-card .i { transition: none; }
  .legal-card:hover { transform: none; }
}

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1179px) {
  /* the footer and the breadcrumb already list every legal page */
  .legal-grid { grid-template-columns: minmax(0, 1fr) 210px; grid-template-areas: "doc toc"; }
  .legal-side { display: none; }
  .legal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tocm" "doc"; gap: 28px; padding-top: 28px; padding-bottom: 72px; }
  .legal-toc { display: none; }
  .toc-mobile { display: block; }
  .legal-doc { max-width: none; }
  .index-panels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .legal-head { padding: 34px 0 28px; }
  .legal-head .meta span { font-size: 12.5px; }
  .prose { font-size: 16px; line-height: 1.7; }
  .legal-doc h2 { font-size: 19px; margin-top: 38px; padding-top: 24px; gap: 8px; }
  .summary { padding: 18px 16px 14px 20px; }
  .summary li { font-size: 15px; }
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 10px 11px; }
  .prose tbody th { min-width: 6.5em; }
  /* three-column tables: one labelled block per row */
  .prose table.rows-on-phone, .prose table.rows-on-phone tbody, .prose table.rows-on-phone tr, .prose table.rows-on-phone td, .prose table.rows-on-phone tbody th { display: block; min-width: 0; }
  .prose table.rows-on-phone thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .prose table.rows-on-phone tr { padding: 12px 14px 13px; border-top: 1px solid var(--line-soft); }
  .prose table.rows-on-phone tbody tr:first-child { border-top: 0; }
  .prose table.rows-on-phone td, .prose table.rows-on-phone tbody th { padding: 0; border: 0; }
  .prose table.rows-on-phone tr > :first-child { color: var(--ink); font-weight: 600; font-size: 14.5px; }
  .prose table.rows-on-phone tr > :not(:first-child)::before { content: attr(data-label); display: block; margin: 8px 0 1px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .prose table.rows-on-phone td:first-child code { white-space: normal; }
  .terms-list { grid-template-columns: minmax(0, 1fr); }
  .terms-list dt { padding: 12px 0 2px; border-bottom: 0; }
  .terms-list dd { padding-top: 0; }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .contact-card { padding: 18px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dt { margin-top: 12px; font-size: 12.5px; }
  .facts dt:first-child { margin-top: 0; }
  .legal-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .legal-card { grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 4px; padding: 16px; }
  .legal-card .lc-icon { grid-row: span 3; margin: 0; }
  .legal-card .lc-go { display: none; }
  .legal-index { padding-top: 28px; padding-bottom: 72px; }
}

/* ---------------------------------------------------------------- developer guides (/guides/…) share this layout */
.legal-crumbs a, .legal-crumbs [aria-current] { display: inline-block; padding: 9px 0; }
.guide-doc h2 { display: block; }
.guide-doc h2 .sec-link, .guide-doc h3 .sec-link, .guide-doc h4 .sec-link { margin-left: 6px; }
.guide-doc h3:hover .sec-link, .guide-doc h4:hover .sec-link { opacity: 1; }
.guide-doc > p:first-child { font-size: 17.5px; color: var(--ink); }
.prose h4 { font-size: 15.5px; line-height: 1.4; color: var(--ink); margin: 24px 0 6px; }
.prose h2 code, .prose h3 code, .prose h4 code { font-size: .86em; }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 32px 0; }
.prose li > p { margin-bottom: .5em; }
.prose li > .code-block, .prose li > .table-wrap { margin: 10px 0 14px; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--accent-ui); border-radius: 0 12px 12px 0; background: var(--deck); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose .checklist li { position: relative; padding-left: 32px; }
.task-box { position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--line); background: var(--deck); }
.task.done .task-box { border-color: var(--accent-ui); background: var(--accent-ui); }
.task.done .task-box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* code examples: language label and a "Copy" button (added by a script) */
.code-block { margin: 18px 0 24px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--deck); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--line-soft); background: var(--deck-2); }
.code-head span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.code-copy { appearance: none; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--deck); color: var(--ink-2); font: 600 12.5px var(--font); cursor: pointer; }
.code-copy:hover { color: var(--ink); border-color: var(--hover-line); }
.prose .code-block pre code { display: block; margin: 0; padding: 14px 16px 16px; border: 0; border-radius: 0; background: none; color: var(--code-ink);
  font-size: 13.5px; line-height: 1.65; white-space: pre; overflow-x: auto; overflow-wrap: normal; word-break: normal; tab-size: 4; }

/* side list of guides and nested "On this page" */
.guide .legal-side .side-h { margin-top: 20px; }
.guide .legal-side .side-h:first-child { margin-top: 0; }
.guide .legal-side .side-all { margin-top: 14px; }
.guide .legal-toc li a, .guide .toc-mobile a { display: block; }
.guide .legal-toc li.toc-l3 a { padding-left: 26px; font-size: 13px; color: var(--ink-3); }
.guide .legal-toc li.toc-l3 a[aria-current] { color: var(--ink); }
.guide .legal-toc { max-height: calc(100vh - 120px); }

/* previous / next guide and the closing call to action */
.guide-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 52px 0 0; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.guide-pager a { display: grid; gap: 4px; min-height: 64px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--deck); color: var(--ink); font-weight: 650; text-decoration: none; line-height: 1.35; transition: border-color .2s; }
.guide-pager a:hover { border-color: var(--wash-line); color: var(--ink); }
.guide-pager span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.guide-pager .gp-next { grid-column: 2; text-align: right; }
.guide-cta { position: relative; margin: 28px 0 0; padding: 26px 26px 24px; border-radius: 18px; border: 1px solid var(--line-soft); overflow: hidden;
  background: radial-gradient(480px 200px at 100% 0%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%), var(--deck); }
.guide-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--signal); }
.legal .guide-cta h2, .legal-doc .guide-cta h2 { display: block; margin: 0 0 8px; padding: 0; border: 0; font-family: var(--display); font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; }
.guide-cta p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.guide-cta .guide-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.legal-index .guide-cta { margin-top: 40px; }

/* /guides/ list */
.guide-group + .guide-group { margin-top: 44px; }
.gg-head { display: grid; gap: 6px; max-width: 70ch; }
.legal .gg-head h2 { font-family: var(--display); font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; }
.gg-head p { color: var(--ink-2); font-size: 15.5px; }
.guide-group .legal-cards { margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* page not found */
.nf-code { font-family: var(--display); font-weight: 600; font-size: clamp(56px, 9vw, 96px); line-height: 1; letter-spacing: -0.05em; background: var(--signal); -webkit-background-clip: text; background-clip: text; color: transparent !important; margin-bottom: 8px; }
.nf-links { margin-top: 0; }
.nf-links .legal-card { grid-template-rows: auto 1fr; }

@media (max-width: 899px) {
  .guide .legal-toc { display: none; }
}
@media (max-width: 600px) {
  .prose .code-block pre code { font-size: 12.5px; padding: 12px 14px 14px; }
  .code-block { margin-left: -4px; margin-right: -4px; }
  .guide-pager { grid-template-columns: minmax(0, 1fr); }
  .guide-pager .gp-next { grid-column: auto; text-align: left; }
  .guide-cta { padding: 22px 18px 20px; }
  .guide-cta .guide-cta-actions .btn { flex: 1 1 auto; }
  .guide-doc > p:first-child { font-size: 16.5px; }
  .toc-mobile a { min-height: 44px; display: flex !important; align-items: center; }
  .code-copy { height: 40px; padding: 0 14px; }
  .legal-side a { min-height: 44px; }
  .guide-group .legal-cards { grid-template-columns: minmax(0, 1fr); }
  .nf-links .legal-card { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- print: just the document */
@media print {
  :root, :root[data-theme] {
    --night: #fff; --deck: #fff; --deck-2: #f3f3f3; --line: #bbb; --line-soft: #d4d4d4;
    --ink: #000; --ink-2: #1a1a1a; --ink-3: #555; --link: #000; --link-hover: #000; --accent-ui: #000; --cyan: #000; --wash-line: #999;
    color-scheme: light;
  }
  @page { margin: 18mm 16mm; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  .site-nav, .site-foot, .skip, .legal-side, .legal-toc, .toc-mobile, .sec-link, .legal-crumbs, .doc-end, .guide-pager, .guide-cta, .code-copy { display: none !important; }
  .legal-head { padding: 0 0 10pt; background: none; border-bottom: 1px solid #999; }
  .legal-head::after, .summary::before { display: none; }
  .legal-head .meta span { border: 0; padding: 0; background: none; }
  .legal-head .meta span + span::before { content: "· "; }
  .wrap { width: 100%; padding: 0; }
  .legal-grid, .legal-index { display: block; padding: 14pt 0 0; }
  .legal-doc { max-width: none; }
  .prose { font-size: 10.5pt; line-height: 1.5; }
  .legal-doc h2 { font-size: 13pt; margin: 18pt 0 6pt; padding-top: 0; border-top: 0; break-after: avoid; }
  .prose h3 { break-after: avoid; }
  .prose a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after, .prose a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: .85em; overflow-wrap: anywhere; }
  .summary, .table-wrap, .contact-card, .legal-card, .index-panel, tr { break-inside: avoid; box-shadow: none; background: none; }
  .table-wrap { overflow: visible; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
