/* ===========================================================================
   ASK JHONNY — legal microsite shared styles
   Brand font: Birzia (self-hosted woff2). Light "document" on a warm page,
   dark wordmark header, terracotta accent. RTL-first (Hebrew authoritative).
   =========================================================================== */

@font-face {
  font-family: "Birzia";
  src: url("/fonts/Birzia-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Birzia";
  src: url("/fonts/Birzia-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Birzia";
  src: url("/fonts/Birzia-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Birzia";
  src: url("/fonts/Birzia-Black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #ecebe7;
  --paper: #ffffff;
  --ink: #1b1917;
  --muted: #726c66;
  --faint: #9a948d;
  --accent: #c96a3e;
  --accent-soft: #f6e9e1;
  --line: #e9e5e0;
  --dark: #0b0b0b;
  --font: "Birzia", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.78;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.1px;
}

/* ----------------------------- header bar ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--dark);
  color: #f4f4f4;
  border-bottom: 1px solid #1c1c1c;
}
.site-header .bar {
  max-width: 920px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  font-weight: 400; font-size: 1.05rem; letter-spacing: 0.42em;
  color: #fff; text-decoration: none; padding-inline-start: 0.42em;
}
.nav { display: flex; gap: 20px; align-items: center; }
.nav a {
  color: #b9b4ae; text-decoration: none; font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.02em; transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }

/* ------------------------------ document ------------------------------- */
main {
  max-width: 820px; margin: 34px auto 80px; padding: 0 20px;
}
.paper {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(26px, 5vw, 60px);
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 18px 50px -28px rgba(40,30,20,.28);
}

.doc-title { font-weight: 900; font-size: clamp(1.7rem, 4.4vw, 2.35rem); line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
.doc-sub { color: var(--muted); margin: 0 0 2px; font-size: 1.02rem; }
.doc-updated { color: var(--faint); font-size: 0.88rem; margin: 0; }
.accent-rule { height: 3px; width: 64px; background: var(--accent); border: 0; border-radius: 3px; margin: 20px 0 0; }

/* identity card (operator details — Meta + Israeli §11 requirement) */
.identity {
  margin: 26px 0 8px; padding: 18px 20px;
  background: #faf8f6; border: 1px solid var(--line); border-radius: 12px;
  font-size: 0.96rem; color: #38332e;
}
.identity strong { font-weight: 700; }
.identity .label { color: var(--faint); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; display: block; margin-bottom: 3px; }

/* language switch */
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; background: #f1eeea; border-radius: 999px; margin: 22px 0 4px; border: 1px solid var(--line); }
.lang-switch a {
  text-decoration: none; font-size: 0.85rem; font-weight: 600; color: var(--muted);
  padding: 5px 16px; border-radius: 999px; transition: all .15s ease;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { background: var(--paper); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* sections */
section.policy { margin-top: 14px; }
h2 {
  font-weight: 700; font-size: 1.18rem; margin: 34px 0 8px; line-height: 1.35;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 10px;
}
h2 .num { color: var(--accent); font-weight: 900; font-size: 0.95rem; min-width: 1.4em; }
h3 { font-weight: 700; font-size: 1.02rem; margin: 18px 0 4px; }
p { margin: 8px 0; }
ul { margin: 8px 0; padding-inline-start: 1.3em; }
li { margin: 5px 0; }
strong { font-weight: 700; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease; }
a:hover { border-bottom-color: var(--accent); }
code { background: #f3f0ec; padding: 1px 7px; border-radius: 6px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.86em; }

/* callout */
.note { margin: 14px 0; padding: 12px 16px; background: var(--accent-soft); border-inline-start: 3px solid var(--accent); border-radius: 8px; font-size: 0.95rem; color: #5a3826; }

/* language blocks + divider */
.he { direction: rtl; text-align: right; }
.en { direction: ltr; text-align: left; }
.lang-divider { margin: 52px 0; border: 0; border-top: 2px dashed var(--line); }

/* footer */
.site-footer { color: var(--faint); text-align: center; font-size: 0.84rem; padding: 0 20px 60px; }
.site-footer a { color: var(--muted); }
.site-footer .sep { margin: 0 8px; opacity: .5; }

/* anchor offset so sticky header doesn't cover jump targets */
[id] { scroll-margin-top: 84px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.85rem; }
  .wordmark { font-size: 0.95rem; letter-spacing: 0.32em; }
}
