/* Page-specific presentation for the five retained legacy content surfaces.
   Shared navigation, footer, consent, focus, and reset rules live in site.css.
   V31 pass 2 (WP5): brand colours only. The legacy wave is the brand wave, and coral and the
   old magenta are the brand accent. /news, the press page and /404 take the site.css ink tones
   (ink-2 86%, ink-3 70%); /privacy and /terms keep theirs (shell-only change there). */
.legacy-page {
  --ink-2: #3a4f7a;
  --ink-3: #6b7fa8;
  --bg: #fff;
  --bg-2: #f4f6fb;
  --grad-wave: linear-gradient(135deg, #a54891 0%, #927ac1 38%, #2784a0 72%, #003562 100%);
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-md: 0 4px 24px rgba(23, 42, 90, 0.14);
}
.legacy-news,
.legacy-press,
.legacy-404 {
  --ink-2: color-mix(in oklab, #003562 86%, #fff);
  --ink-3: color-mix(in oklab, #003562 70%, #fff);
  --bg-2: #f5f7fb;
}
.legacy-page .page-header *,
.legacy-page .legacy-content * {
  box-sizing: border-box;
}
.legacy-page .page-header :where(h1, p),
.legacy-page .legacy-content :where(h2, h3, h4, p, ul, ol) {
  margin-top: 0;
}
.legacy-press .pr-wrap a,
.legacy-legal .legal-wrap a {
  color: var(--accent-2);
}

/* News */
.legacy-news .page-header {
  text-align: center;
}
.legacy-news .page-header .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.legacy-news .page-header .kicker::before,
.legacy-press .page-header .kicker::before,
.legacy-legal .page-header .kicker::before {
  width: 18px;
  height: 1.5px;
  background: currentColor;
  content: "";
}
.legacy-news .page-header p {
  margin-inline: auto;
}
.legacy-news .featured--single {
  max-width: 860px;
  margin-inline: auto;
  grid-template-columns: 1fr;
}
.legacy-news .featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
  padding: 48px;
  color: var(--ink);
  background: #fff;
}
.legacy-news .featured-source {
  margin-bottom: 10px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.legacy-news .featured-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad-wave);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.legacy-news .featured h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
}
.legacy-news .featured p {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.legacy-news .featured-date {
  color: var(--ink-3);
  font-size: 12px;
}
.legacy-news .featured-link {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--grad-wave);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.legacy-news .news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.legacy-news .news-item {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(23, 42, 90, 0.1);
  background: #fff;
}
.legacy-news .ni-stripe {
  width: 4px;
  flex: 0 0 auto;
}
.legacy-news .nc-company .ni-stripe { background: linear-gradient(180deg, #5b7fbd, #2a6d8f); }
.legacy-news .nc-clinical .ni-stripe { background: var(--grad-wave); }
.legacy-news .nc-research .ni-stripe { background: linear-gradient(180deg, #4abfa0, #2784a0); }
.legacy-news .nc-press .ni-stripe { background: linear-gradient(180deg, #a54891, #927ac1); }
.legacy-news .ni-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  padding: 24px 28px;
  flex: 1;
}
.legacy-news .ni-icon {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 11px;
}
.legacy-news .ni-icon svg { width: 21px; height: 21px; }
.legacy-news .nc-company .ni-icon { color: #5b7fbd; background: rgba(91, 127, 189, 0.12); }
.legacy-news .nc-clinical .ni-icon { color: #a54891; background: rgba(165, 72, 145, 0.12); }
.legacy-news .nc-research .ni-icon { color: #4abfa0; background: rgba(74, 191, 160, 0.12); }
.legacy-news .nc-press .ni-icon { color: #a54891; background: rgba(165, 72, 145, 0.12); }
.legacy-news .news-content { min-width: 0; flex: 1; }
.legacy-news .ni-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}
.legacy-news .ni-cat {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.legacy-news .nc-company .ni-cat { color: #5b7fbd; background: rgba(91, 127, 189, 0.11); }
.legacy-news .nc-clinical .ni-cat { color: #a54891; background: rgba(165, 72, 145, 0.11); }
.legacy-news .nc-research .ni-cat { color: #4abfa0; background: rgba(74, 191, 160, 0.11); }
.legacy-news .nc-press .ni-cat { color: #a54891; background: rgba(165, 72, 145, 0.11); }
.legacy-news .news-date,
.legacy-news .news-source-badge {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
}
.legacy-news .news-date { letter-spacing: 0.05em; text-transform: uppercase; }
.legacy-news .news-source-badge { padding: 3px 9px; border-radius: 5px; background: var(--bg-2); }
.legacy-news .news-headline {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.3;
}
.legacy-news .news-headline a { color: inherit; text-decoration: none; }
.legacy-news .news-headline a:hover { color: var(--accent); }
.legacy-news .news-summary { color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.legacy-news .ni-link,
.legacy-news .news-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.legacy-news .newsletter-section {
  margin-top: 64px;
  padding: 48px;
  border-radius: 20px;
  text-align: center;
  background: var(--bg-2);
}
.legacy-news .newsletter-section h3 { margin: 0 0 8px; font-size: 26px; }
.legacy-news .newsletter-section p { margin: 0 0 24px; color: var(--ink-2); font-size: 15px; }
.legacy-news .newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.legacy-news .newsletter-form input {
  min-width: 0;
  padding: 12px 16px;
  flex: 1;
  border: 1.5px solid rgba(23, 42, 90, 0.15);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: 400 14px var(--sans);
}
.legacy-news .btn-wave {
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--grad-wave);
  font-weight: 600;
  cursor: pointer;
}
.legacy-news .filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.legacy-news .filter-chip {
  padding: 6px 16px;
  border: 1.5px solid rgba(23, 42, 90, 0.15);
  border-radius: 999px;
  color: var(--ink-2);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.legacy-news .filter-chip:hover,
.legacy-news .filter-chip.active { color: #fff; border-color: var(--ink); background: var(--ink); }
.legacy-news .press-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid rgba(91, 127, 189, 0.2);
  border-radius: 12px;
  background: rgba(91, 127, 189, 0.08);
}
.legacy-news .press-note svg { flex: 0 0 auto; color: var(--accent-2); }
.legacy-news .press-note p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* Press and legal reading layouts */
.legacy-press .page-header .kicker,
.legacy-legal .page-header .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* V6 (Erez item 13): spacing, not rules, between sections. */
.legacy-press .pr-wrap > p { margin: 0 0 20px; color: var(--ink-2); }
.legacy-press .pr-wrap h2 { padding-top: 12px; }
.legacy-press .pr-wrap h3 { margin: 28px 0 8px; font-size: 20px; }
.legacy-page.legacy-press .page-header { padding-inline: calc((100% - var(--wrap)) / 2); }
.legacy-page.legacy-press .page-header .kicker { text-transform: uppercase; }
.legacy-page.legacy-press .page-header .kicker::before { content: none; }
.legacy-page.legacy-press .pr-wrap h2 { font-weight: 620; font-variation-settings: normal; letter-spacing: -0.025em; }
.legacy-page.legacy-press .pr-wrap h3 { font-weight: 620; font-variation-settings: normal; letter-spacing: -0.015em; }
/* Links on the press page meet 4.5:1: navy text links, the back link in the brand accent. */
.legacy-page.legacy-press .pr-wrap a { color: var(--ink); }
.legacy-page.legacy-press .pr-wrap a.pr-back { color: var(--accent); }
.legacy-press .pr-wrap ul { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; padding-left: 24px; }
.legacy-press .pr-wrap li { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.legacy-press .pr-quote {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: rgba(165, 72, 145, 0.06);
}
.legacy-press .pr-quote p { margin: 0; color: var(--ink); font: 400 18px/1.75 var(--sans); }
.legacy-press .pr-quote .pr-quote-attr { margin-top: 12px; color: var(--ink-3); font: 600 12px/1.5 var(--sans); letter-spacing: 0.04em; }
.legacy-press .pr-back { display: inline-flex; margin-bottom: 8px; color: var(--accent); font-size: 13px; font-weight: 600; }
.legacy-press .pr-footer-note { margin-top: 44px; padding-top: 20px; color: var(--ink-3); font-size: 13px; }

.legacy-legal .legal-toc { margin-bottom: 48px; }
.legacy-legal .legal-toc h2 { margin: 0 0 16px; font: 500 11px/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.legacy-legal .legal-toc ol { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 20px; }
.legacy-legal .legal-toc a { color: var(--ink-2); font-size: 14px; }
.legacy-legal .legal-section { margin-bottom: 48px; }
.legacy-legal .legal-section h2 { margin-bottom: 16px; padding-top: 12px; }
.legacy-legal .legal-section h3 { margin: 20px 0 10px; font-size: 20px; }
.legacy-legal .legal-section p { margin: 0 0 16px; color: var(--ink-2); }
.legacy-legal .legal-section ul { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding-left: 24px; }
.legacy-legal .legal-section li { color: var(--ink-2); }
.legacy-legal .highlight-box,
.legacy-legal .cap-box { margin: 20px 0; padding: 18px 22px; border-left: 3px solid var(--accent); background: rgba(165, 72, 145, 0.06); }
.legacy-legal .cap-box { border-left-color: #f59e0b; background: rgba(251, 191, 36, 0.08); }
.legacy-legal .highlight-box p,
.legacy-legal .cap-box p { margin: 0; color: var(--ink-2); font-size: 14px; }
.legacy-legal .sms-box { margin-bottom: 48px; padding: 26px 30px; border: 1px solid rgba(91, 127, 189, 0.2); background: rgba(91, 127, 189, 0.06); }
.legacy-legal .sms-box h3 { margin: 0 0 12px; font-size: 21px; }
.legacy-legal .sms-box p { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }
.legacy-legal .sms-box p:last-child { margin-bottom: 0; }
.legacy-legal .contact-block { margin-top: 48px; padding: 28px 32px; background: var(--bg-2); }
.legacy-legal .contact-block h3 { margin: 0 0 12px; font-size: 21px; }
.legacy-legal .contact-block p { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }
/* Contrast (V31 pass 2, WP6): the text links and the copyright line on /privacy and /terms meet
   4.5:1 on their grounds. Text links are navy, as on the press page, and keep their underline; the
   contents list keeps its own ink; the copyright line takes the site's muted ink. No text changes. */
.legacy-page.legacy-legal .legal-wrap a { color: var(--ink); }
.legacy-page.legacy-legal .legal-toc a { color: var(--ink-2); }
.legacy-page.legacy-legal .contact-block { --ink-3: var(--ink-mute); }

/* 404 body only. Shared shell remains entirely controlled by site.css. */
.legacy-404 { min-height: 100vh; display: flex; flex-direction: column; }
.legacy-404 .main { display: flex; align-items: center; justify-content: center; flex: 1; }
.legacy-404 .content { max-width: 560px; text-align: center; }
.legacy-404 .icon { margin-bottom: 32px; }
.legacy-404 .code { color: var(--ink); font-size: clamp(80px, 15vw, 120px); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.legacy-404 .title { margin: 18px 0 12px; color: var(--ink); font-size: clamp(28px, 4vw, 42px); }
.legacy-404 .desc { margin-bottom: 36px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legacy-404 .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.legacy-404 .actions .btn { min-height: 48px; padding: 12px 24px; }
.legacy-404 .btn-outline { color: var(--ink); border-color: rgba(0, 53, 98, 0.2); background: transparent; }
.legacy-404 .btn-primary { color: #fff; }

@media (max-width: 768px) {
  .legacy-news .featured { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
}
@media (max-width: 660px) {
  .legacy-page.legacy-press .page-header { padding-inline: 20px; }
}
@media (max-width: 640px) {
  .legacy-news .ni-body { gap: 14px; padding: 18px 20px; }
  .legacy-news .ni-icon { width: 38px; height: 38px; }
  .legacy-news .ni-icon svg { width: 17px; height: 17px; }
  .legacy-news .newsletter-section { padding: 32px 22px; }
  .legacy-news .newsletter-form { flex-direction: column; }
  .legacy-legal .legal-toc,
  .legacy-legal .sms-box,
  .legacy-legal .contact-block { padding: 22px; }
}
