/*
 * Prose styles for the migrated pages. The winner's spine sets the brand; this
 * sets long-form reading, which the arrival page never needed.
 *
 * Measure is capped at 68ch: a privacy policy is 14,000 characters of Hebrew and
 * an uncapped line on a 1280 screen is unreadable. Everything else here is the
 * same token set as the arrival page — no new colours, no new radii, no new
 * shadows, so the pages read as one site.
 */
.wrap { max-width: 860px; margin: 0 auto; padding-inline: var(--s5); }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding-block: var(--s5) var(--s4);
  border-bottom: 1px solid var(--line);
}
.lang { display: flex; gap: var(--s1); font-size: 14px; }
.lang button {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; font: inherit; cursor: pointer;
  color: var(--muted); border-radius: var(--r-control);
}
.lang button[aria-current='true'] { color: var(--ink); font-weight: 700; }
.lang button:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }

.legal { padding-block: var(--s7) var(--s8); max-width: 68ch; }
.legal h1 {
  margin: 0 0 var(--s3);
  font-size: clamp(30px, 7vw, 42px); font-weight: 800;
  line-height: 1.18; letter-spacing: -0.015em;
}
.legal h2 {
  margin: var(--s7) 0 var(--s3);
  font-size: clamp(19px, 4.4vw, 23px); font-weight: 800; line-height: 1.3;
}
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: #2c3448; }
.legal p { margin: 0 0 var(--s4); }
.legal ul, .legal ol { margin: 0 0 var(--s4); padding-inline-start: var(--s5); }
.legal li { margin-bottom: var(--s2); }
.legal a { color: var(--deep); font-weight: 600; }
/* Inline links in prose are exempt from the 44px target rule (WCAG 2.5.8), but
   exempt is not the same as usable — padding grows the target without a negative
   margin, which would overlap neighbouring lines and steal their taps. */
.legal a { padding-block: var(--s2); }
.legal strong { color: var(--ink); }
.legal hr { display: none; } /* the language separator is the switcher now */

.legal-meta, .legal-lede { color: var(--muted); }
.legal-meta { font-size: 15px; margin: 0 0 var(--s5); }
.legal-lede { font-size: 19px; line-height: 1.6; margin: 0 0 var(--s6); }

footer { border-top: 1px solid var(--line); padding-block: var(--s4) var(--s7); }

[data-lang]:not(.active) { display: none !important; }
[data-lang].active { display: block; }
.foot-links a[data-lang].active, a.sr[data-lang].active { display: inline-flex; }

/* ---- 404 action links ----
   The migrated 404 carries `.button` / `.button-primary` from the old stylesheet,
   which this candidate does not load, so they rendered as bare 38px-tall links.
   They are the only way out of a dead end, so they get the real control treatment
   from the spine rather than a bare underline. */
.legal .actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-block: var(--s6); }
.legal .actions .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 var(--s6);
  border-radius: var(--r-control);
  font-size: 18px; font-weight: 700; text-decoration: none;
}
.legal .actions .button-primary {
  background: var(--deep); color: #fff; box-shadow: var(--sh-2);
}
.legal .actions .button-primary:hover { background: #05405f; }
.legal .actions .button-secondary {
  background: var(--ground); color: var(--deep); border: 1px solid var(--line);
}
.legal .actions .button:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
