/* Shared styles for the policy pages (privacy, terms, accessibility) and the 404 page.
   Absolute URLs: the 404 page is served at whatever path was asked for. */
@font-face {
  font-family: "Rubik"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/rubik-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/rubik-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #f6f1e7;
  --ink: #111018;
  --blue: #3240ff;
  --pink: #ff4d9d;
  --lime: #d6ff3f;
  --white: #ffffff;
  --muted: #5d5a66;
  --line: #ddd5c6;
  --b: 3px solid var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.75 "Rubik", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.skip {
  position: fixed; top: 10px; right: 10px; z-index: 100; transform: translateY(-200%);
  background: var(--ink); color: var(--white); font-weight: 800; padding: 12px 18px; border-radius: 12px; text-decoration: none;
}
.skip:focus { transform: none; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--cream); border-bottom: var(--b); }
.top-in { max-width: 880px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.logo { font-weight: 900; font-size: 16px; letter-spacing: .08em; direction: ltr; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo s { text-decoration-color: var(--pink); text-decoration-thickness: 4px; }
.back {
  font-weight: 800; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 999px; padding: 6px 16px;
}
.back:hover { background: var(--lime); }

/* ---------- Page ---------- */
main { max-width: 880px; margin: 0 auto; padding: 44px 20px 80px; }
.kicker { display: inline-block; background: var(--lime); border: 2.5px solid var(--ink); border-radius: 999px; padding: 2px 14px; font-weight: 800; font-size: 14px; }
h1 { font-size: clamp(38px, 7vw, 60px); line-height: 1.05; margin: 14px 0 10px; }
.updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
h2 { font-size: clamp(24px, 4vw, 31px); line-height: 1.2; margin: 50px 0 12px; scroll-margin-top: 90px; }
h3 { font-size: 20px; line-height: 1.3; margin: 28px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-inline-start: 24px; }
li { margin: 0 0 8px; }
li::marker { color: var(--pink); font-weight: 800; }
strong, b { font-weight: 800; }

.tldr {
  background: var(--white); border: var(--b); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 24px 10px; margin: 0 0 34px;
}
.tldr h2 { font-size: 21px; margin: 0 0 10px; }
.toc { border-inline-start: 4px solid var(--ink); padding: 4px 18px 4px 0; margin: 0 0 10px; }
.toc h2 { font-size: 18px; margin: 0 0 6px; }
.toc ol { margin: 0; columns: 2 220px; column-gap: 28px; }
.toc li { margin: 0 0 4px; break-inside: avoid; }

.biz { margin: 0 0 16px; padding: 16px 20px; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; display: grid; gap: 4px; }
.biz div { display: flex; flex-wrap: wrap; gap: 0 10px; }
.biz dt { font-weight: 800; min-width: 7.5em; }
.biz dd { margin: 0; }

.table { overflow-x: auto; margin: 0 0 18px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; line-height: 1.55; }
th, td { text-align: start; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--lime); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
code { font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: #ece5d6; border-radius: 6px; padding: 1px 6px; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.note { background: #fff8d6; border: 2px dashed var(--ink); border-radius: 14px; padding: 12px 16px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--cream); text-align: center; padding: 36px 20px 44px; font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; max-width: 760px; margin: 0 auto 16px; }
footer a { color: var(--cream); font-weight: 600; }
footer a[aria-current="page"] { color: var(--lime); text-decoration: none; font-weight: 800; }
footer p { margin: 0 0 6px; }
footer .mail a { color: var(--lime); font-weight: 700; }
footer :focus-visible { outline-color: var(--lime); }

/* ---------- 404 ---------- */
.lost { min-height: 72vh; display: grid; place-items: center; text-align: center; padding-top: 30px; }
.lost .big { font-size: clamp(110px, 26vw, 220px); font-weight: 900; line-height: .9; color: var(--white); -webkit-text-stroke: 4px var(--ink); text-shadow: 8px 8px 0 var(--pink); margin: 0; }
.lost h1 { margin-top: 18px; }
.lost p { font-size: 19px; max-width: 34ch; margin: 0 auto 26px; }
.lost .faces { display: flex; justify-content: center; margin: 0 0 18px; }
.lost .faces img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); margin-inline-start: -14px; background: var(--white); }
.lost .faces img:first-child { margin-inline-start: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 18px; line-height: 1; padding: 17px 28px;
  background: var(--pink); border: var(--b); border-radius: 999px; box-shadow: 5px 5px 0 var(--ink);
}
.btn-lime { background: var(--lime); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  /* Tables become one card per row, each cell labelled, so nothing scrolls sideways */
  .table { overflow: visible; border: 0; background: none; }
  table { min-width: 0; }
  table, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 6px 0; margin-bottom: 12px; }
  td { border: 0; padding: 6px 14px; }
  td::before { content: attr(data-label); display: block; font-weight: 800; font-size: 13px; color: var(--muted); }
  main { padding: 30px 18px 64px; }
  .top-in { padding: 10px 16px; }
  .logo { font-size: 14px; }
  .tldr { padding: 18px 18px 8px; }
  .btn { width: 100%; justify-content: center; }
}
@media print {
  .top, .skip, footer nav { display: none; }
  body { background: #fff; }
}
