/* RadioB2B legal pages. Shares the tokens used by index.html. */

:root {
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-deep: #1e40af;
  --brand-wash: #eff5ff;
  --brand-line: #d3e2fd;

  --ink: #1f2937;
  --ink-body: #4b5563;
  --ink-mute: #5d6470;
  --ink-faint: #646b78;

  --page: #ffffff;
  --surface: #f9fafb;
  --surface-2: #f3f4f6;
  --line: #e5e7eb;
  --line-soft: #f1f2f4;

  --warn-wash: #fffbeb;
  --warn-line: #fde9b8;
  --warn-ink: #92400e;

  --r-card: 12px;
  --r-ctrl: 8px;
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: var(--page);
  color: var(--ink-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

.mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace; }

/* ── Header ── */
.legal-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.legal-head .inner {
  max-width: 54rem; margin: 0 auto; padding: 0 1.5rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.wordmark { display: inline-flex; align-items: baseline; text-decoration: none; }
.wordmark .a { font-size: 1.15rem; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.wordmark .b { font-size: 1.15rem; font-weight: 600; letter-spacing: -.03em; color: var(--brand); }
.back {
  font-size: .84rem; color: var(--ink-mute); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem; min-height: 26px;
  transition: color .16s ease;
}
.back:hover { color: var(--brand-deep); }

/* ── Shell ── */
.legal-wrap { max-width: 54rem; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }

.doc-kicker {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-deep); margin: 0 0 .875rem;
}
h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -.03em;
  color: var(--ink); line-height: 1.15; margin: 0 0 1rem;
}
.doc-dates {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .75rem; color: var(--ink-mute); margin: 0 0 2rem;
}

/* ── Table of contents ── */
.toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 1.25rem 1.5rem; margin-bottom: 3rem;
}
.toc p.label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 .75rem;
}
.toc ol { margin: 0; padding-left: 1.15rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .25rem; break-inside: avoid; }
.toc a {
  font-size: .875rem; color: var(--ink-body); text-decoration: none;
  display: inline-block; padding: .2rem 0; min-height: 24px;
  transition: color .16s ease;
}
.toc a:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.toc li::marker { color: var(--ink-faint); font-size: .8rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ── Body ── */
.legal-body h2 {
  font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink);
  margin: 3rem 0 .875rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}
.legal-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body h2 .num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .8rem; color: var(--brand); margin-right: .6rem; font-weight: 500;
}
.legal-body h3 {
  font-size: .95rem; font-weight: 600; color: var(--ink);
  margin: 1.75rem 0 .5rem; letter-spacing: -.01em;
}
.legal-body p { margin: 0 0 1rem; max-width: 68ch; }
.legal-body ul, .legal-body ol { margin: 0 0 1rem; padding-left: 1.25rem; max-width: 68ch; }
.legal-body li { margin-bottom: .5rem; }
.legal-body li::marker { color: var(--brand); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a {
  color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-body a:hover { color: var(--brand-strong); }

/* ── Callouts ── */
.note, .warn {
  border-radius: var(--r-card); padding: 1rem 1.25rem; margin: 0 0 1.25rem;
  max-width: 68ch;
}
.note { background: var(--brand-wash); border: 1px solid var(--brand-line); }
.warn { background: var(--warn-wash); border: 1px solid var(--warn-line); }
.note p, .warn p { margin: 0; font-size: .9375rem; }
.note p + p, .warn p + p { margin-top: .625rem; }
.warn p { color: var(--warn-ink); }
.note .label, .warn .label {
  display: block; font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .66rem; letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: .45rem; font-weight: 500;
}
.note .label { color: var(--brand-deep); }
.warn .label { color: var(--warn-ink); }

/* ── Definitions ── */
.defs { margin: 0 0 1.25rem; max-width: 68ch; }
.defs dt {
  font-weight: 600; color: var(--ink); font-size: .9375rem;
  margin-top: .875rem;
}
.defs dt:first-child { margin-top: 0; }
.defs dd { margin: .15rem 0 0; font-size: .9375rem; }

/* ── Info cards ── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1.5rem; max-width: 68ch; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem 1.25rem; }
.info-card .label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .66rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 .35rem;
}
.info-card p { margin: 0; font-size: .875rem; line-height: 1.6; }
.info-card a { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }

/* ── Data table ── */
.tbl-wrap { overflow-x: auto; margin: 0 0 1.5rem; max-width: 68ch; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; }
thead th {
  text-align: left; font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500;
  padding: 0 1rem .6rem 0; border-bottom: 1px solid var(--line);
}
tbody td { padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }

.divider { border: none; border-top: 1px solid var(--line); margin: 3rem 0 2rem; }

.crosslinks { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .875rem; }
.crosslinks a { color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.crosslinks a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ── */
.legal-foot { border-top: 1px solid var(--line); background: var(--surface); }
.legal-foot .inner {
  max-width: 54rem; margin: 0 auto; padding: 2rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.legal-foot p { margin: 0; font-size: .78rem; color: var(--ink-mute); }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.legal-foot a {
  font-size: .78rem; color: var(--ink-mute); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 24px;
  transition: color .16s ease;
}
.legal-foot a:hover { color: var(--brand-deep); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: fixed; top: -100px; left: 1rem; z-index: 100;
  background: var(--brand); color: #fff; padding: .6rem 1.1rem;
  border-radius: var(--r-ctrl); text-decoration: none; font-size: .875rem; font-weight: 500;
  transition: top .18s ease;
}
.skip:focus { top: 1rem; }

@media print {
  .legal-head, .legal-foot, .toc, .skip { display: none; }
  body { font-size: 10.5pt; line-height: 1.5; color: #000; }
  .legal-wrap { max-width: none; padding: 0; }
  .legal-body h2 { page-break-after: avoid; }
  .legal-body p, .legal-body li { page-break-inside: avoid; }
  .note, .warn { border: 1px solid #999; background: none; }
  a { color: #000; text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

.inline-btn{font:inherit;font-size:inherit;color:#2563eb;background:none;border:none;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.inline-btn:hover{color:#1d4ed8}

/* ══ Content / SEO article pages ══ */

.crumbs {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .72rem; color: var(--ink-mute); margin: 0 0 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
}
.crumbs a { color: var(--ink-mute); text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { color: var(--ink-faint); }

.lede {
  font-size: 1.0625rem; line-height: 1.7; color: var(--ink-body);
  max-width: 62ch; margin: 0 0 2rem;
}

.keyfacts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden; margin: 0 0 2.5rem;
}
.keyfacts div { background: #fff; padding: 1.125rem 1.25rem; }
.keyfacts dt {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: .64rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .35rem;
}
.keyfacts dd {
  margin: 0; font-size: 1.35rem; font-weight: 600; color: var(--ink);
  letter-spacing: -.02em; line-height: 1.15;
}
.keyfacts dd small { display: block; font-size: .78rem; font-weight: 400; color: var(--ink-mute); margin-top: .3rem; letter-spacing: 0; }

.cta-band {
  border-radius: var(--r-card); padding: 1.75rem;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff; margin: 2.5rem 0; max-width: 68ch;
}
.cta-band h2 { color: #fff; font-size: 1.25rem; margin: 0 0 .5rem; border: none; padding: 0; }
.cta-band p { color: rgba(255,255,255,.95); font-size: .9375rem; margin: 0 0 1.25rem; max-width: none; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: .625rem; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-size: .9rem; font-weight: 500; padding: .7rem 1.25rem; border-radius: var(--r-ctrl);
  text-decoration: none; border: 1px solid transparent; min-height: 24px;
  transition: background-color .18s, border-color .18s, transform .12s;
}
.cta-btn.solid { background: #fff; color: var(--brand-deep); }
.cta-btn.solid:hover { background: #eef3ff; }
.cta-btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.72); }
.cta-btn.line:hover { background: rgba(255,255,255,.12); }
.cta-btn:active { transform: scale(.985); }

.verdict {
  border-left: 3px solid var(--brand); background: var(--brand-wash);
  padding: 1rem 1.25rem; border-radius: 0 var(--r-card) var(--r-card) 0;
  margin: 0 0 1.5rem; max-width: 68ch;
}
.verdict p { margin: 0; font-size: .9375rem; }
.verdict p + p { margin-top: .5rem; }

.related { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.75rem; }
.related h2 { border: none; padding: 0; margin: 0 0 1rem; font-size: 1.05rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.related a {
  display: inline-flex; align-items: center; min-height: 24px;
  font-size: .9375rem; color: var(--brand); text-decoration: none;
}
.related a:hover { text-decoration: underline; text-underline-offset: 3px; }

.legal-body .src { font-size: .78rem; color: var(--ink-mute); margin-top: 2rem; }
.legal-body .src a { color: var(--ink-mute); }
