/* Shared by the two policy pages (/privacy/ and /terms/): the site's paper, ink and type,
   one narrow column of plain text. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #F7F3EE;
  --white-warm: #FCFAF7;
  --ink: #2B241E;
  --ink-soft: #4A3F36;
  --muted: #7A6C60;
  --accent: #9F846A;
  --accent-dark: #866D55;
  --hair: #DDD2C5;
  --font: 'IBM Plex Sans Hebrew', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

html {
  color-scheme: only light;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: #E6DACC; color: var(--ink); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.ltr { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Top bar: the logo leads home */
.bar { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bar-logo img { height: 64px; width: auto; }
.bar-back { padding: 10px 0; font-size: 0.98rem; color: var(--ink-soft); }
.bar-back span { border-bottom: 1px solid var(--hair); padding-bottom: 2px; }

/* The text */
.legal { max-width: 760px; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.label { display: block; font-size: 0.95rem; font-weight: 500; color: var(--accent); margin-bottom: 0.8rem; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 300; line-height: 1.2; }
.updated { margin-top: 0.7rem; font-size: 0.95rem; color: var(--muted); }
.intro { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--ink-soft); }
h2 {
  margin-top: 2.2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
  font-size: 1.2rem; font-weight: 500; line-height: 1.35;
}
.legal p { color: var(--ink-soft); text-wrap: pretty; }
.legal h2 + p, .legal h2 + ul { margin-top: 0.6rem; }
.legal p + p { margin-top: 0.8rem; }
.legal li { position: relative; padding-inline-start: 1.2rem; color: var(--ink-soft); text-wrap: pretty; }
.legal li + li { margin-top: 0.7rem; }
.legal li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.legal b { font-weight: 500; color: var(--ink); }
.legal p a, .legal li a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.contact-lines { display: grid; gap: 0.15rem; }
.contact-lines b { font-weight: 500; }

/* Footer */
.footer { border-top: 1px solid var(--hair); padding: 1.6rem 0 calc(1.6rem + env(safe-area-inset-bottom)); font-size: 0.92rem; color: var(--muted); }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
.footer nav a { padding: 6px 0; }
.footer nav a:hover, .footer nav a[aria-current] { color: var(--ink); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .bar { padding: 10px 0; }
  .bar-logo img { height: 48px; }
}
