/* Legal pages (accessibility statement, privacy policy, terms of use), in
   English and Hebrew. Same tokens and type as the blog post template in
   generate_posts.py; light theme only, like the blog. */
:root {
  --off-white: #F7F6F2;
  --dark-slate: #1C2B3A;
  --near-black: #141414;
  --teal: #226B6B;          /* darker than the site's #2A7F7F: 5.9:1 on off-white for small text */
  --teal-light: #3A9F9F;
  --text-dark: #1A1A1A;
  --text-mid: #3A3F4A;
  --text-light: #E8E6E0;
  --text-muted-light: #B8BCBC;
  --border-light: rgba(0, 0, 0, 0.12);
  --font-head: 'EB Garamond', Garamond, serif;
  --font-body: 'Montserrat', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text-dark);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
html[lang="he"] body { font-family: 'Arial Hebrew', Arial, 'Noto Sans Hebrew', var(--font-body); }

.skip-link {
  position: absolute; top: -100px; inset-inline-start: 16px; z-index: 200;
  background: var(--dark-slate); color: #fff; padding: 10px 16px;
  font-weight: 600; text-decoration: none; border-radius: 2px;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 2px;
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--off-white); border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 24px; padding: 14px 48px;
}
.nav-logo {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-dark); text-decoration: none;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none;
}
.nav-links a:hover { color: var(--teal); text-decoration: underline; }
.lang-switch { font-weight: 700 !important; color: var(--teal) !important; }

/* ── Document ── */
main { display: block; }
.legal {
  max-width: 760px; margin: 0 auto; padding: 64px 24px 80px;
}
.legal .eyebrow {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.legal h1 {
  font-family: var(--font-head); font-size: clamp(30px, 4vw, 44px);
  font-weight: 600; line-height: 1.15; margin-bottom: 12px;
}
html[lang="he"] .legal h1, html[lang="he"] .legal h2, html[lang="he"] .legal h3 { font-family: inherit; font-weight: 700; }
.legal .updated { font-size: 14px; color: var(--text-mid); margin-bottom: 8px; }
.legal .draft-note {
  font-size: 14px; background: #FFF4D6; border: 1px solid #C9A227; color: #3D3000;
  padding: 12px 16px; margin: 20px 0 8px; border-radius: 2px;
}
.legal h2 {
  font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600; line-height: 1.25; margin: 44px 0 12px;
  padding-top: 20px; border-top: 1px solid var(--border-light);
}
.legal h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.legal p { margin-bottom: 16px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-inline-start: 24px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--text-dark); }
.legal code { font-size: 14px; background: rgba(34, 107, 107, 0.08); padding: 1px 5px; border-radius: 2px; }
.legal .toc { background: rgba(34, 107, 107, 0.05); border-inline-start: 3px solid var(--teal); padding: 16px 20px; margin: 28px 0; }
.legal .toc h2 { border: 0; margin: 0 0 8px; padding: 0; font-size: 18px; }
.legal .toc ol { margin: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.legal caption { text-align: start; font-weight: 600; font-size: 14px; color: var(--text-mid); padding-bottom: 8px; }
.legal th, .legal td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border-light); }
.legal th[scope="col"] {
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal); border-bottom: 2px solid var(--teal);
}
html[lang="he"] .legal th[scope="col"] { font-family: inherit; letter-spacing: 0; }
.legal th[scope="row"] { font-weight: 600; }

.btn-consent {
  font: inherit; font-weight: 600; color: #fff; background: var(--teal);
  border: 0; border-radius: 2px; padding: 10px 18px; cursor: pointer;
}
.btn-consent:hover { background: var(--dark-slate); }

/* ── Footer ── */
.site-footer {
  background: var(--near-black); color: var(--text-muted-light);
  padding: 40px 48px; display: flex; flex-wrap: wrap; gap: 20px 32px;
  align-items: center; justify-content: space-between;
}
.site-footer .footer-name { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--text-light); letter-spacing: 0.04em; }

@media (max-width: 768px) {
  .site-header { padding: 12px 16px; }
  .legal { padding: 40px 16px 64px; }
  .site-footer { padding: 32px 16px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
