/* ===== מדיניות הפרטיות ותנאי השימוש =====
 *
 * הגרסה הקודמת של הדפים האלה נראתה כמו דף אינטרנט שנוצר: תג ירוק
 * מעוגל עם מספר גרסה, תוכן עניינים בתוך כרטיס לבן עם צל, כרטיס כהה
 * ליצירת קשר, וכותרות בגופן מעוגל וידידותי. כל אחד מהם קישוט, וביחד
 * הם הופכים חוזה למסך.
 *
 * **זה מסמך, והוא צריך להיראות מודפס.** מה שנושא אותו הוא טיפוגרפיה:
 * גופן סריף עברי לכותרות ולכותרת המסמך (Frank Ruhl Libre — הפנים
 * שספרי חוק ועיתונות בעברית נראים בהן), מספור סעיפים בשוליים, קווי
 * שיער, ורוחב שורה שנוח לקרוא בו פסקה ארוכה. אין כרטיסים, אין צללים,
 * ואין צבע מותג — חוץ מקישור.
 *
 * גיליון אחד לשני הדפים, כדי שלא יתפצלו.
 */

:root {
  --ink: #1A1A1A;
  --ink-2: #3D3D3D;
  --muted: #6B6B6B;
  --rule: #DCDCD6;
  --rule-strong: #B8B8B0;
  --paper: #FBFAF7;
  --accent: #0B5E45;
  --note: #F3F1EC;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Rubik', system-ui, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  direction: rtl;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ===== ראש הדף =====
   שורת זיהוי דקה, לא סרגל צף. במסמך שמדפיסים או קוראים ברצף, סרגל
   דביק הוא רק פחות טקסט על המסך. */
.topbar {
  border-bottom: 1px solid var(--rule);
  padding: 15px 22px;
  display: flex; align-items: baseline; gap: 9px;
}
.topbar-logo {
  font-size: 15px; font-weight: 600; color: var(--ink);
  letter-spacing: 0.01em;
}
.topbar h1 { font-size: 14px; font-weight: 400; color: var(--muted); }

.container { max-width: var(--measure); margin: 0 auto; padding: 54px 22px 80px; }

/* ===== כותרת המסמך ===== */
.page-header { margin-bottom: 40px; }
.page-header h2 {
  font-family: 'Frank Ruhl Libre', Georgia, serif;
  font-size: clamp(31px, 8vw, 42px);
  font-weight: 500; line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
/* גרסה ותאריך הם מטא-נתונים של המסמך, לא תג. */
.page-header .meta { font-size: 14px; color: var(--muted); }
.page-header .meta span {
  font-weight: 400;
  color: var(--muted);
}
.page-header .meta span::after { content: ' · '; }

/* ===== תוכן עניינים =====
   רשימה, לא כרטיס. המספר יושב בשוליים כמו בתוכן עניינים של ספר. */
.toc { margin-bottom: 46px; padding-bottom: 8px; }
.toc-title {
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding-bottom: 8px; margin-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 4px 0;
  color: var(--ink-2); text-decoration: none;
  font-size: 15.5px; line-height: 1.55;
}
.toc a::before {
  content: counter(toc) '.';
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 1.7em; text-align: start;
}
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.toc a:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ===== סעיף =====
   ממוספר אוטומטית. המספר בשוליים הוא מה שמאפשר להפנות לסעיף בשיחה
   עם עורך דין — "סעיף 6" — וזה בדיוק מה שחסר בלעדיו. */
.container { counter-reset: sec; }
.section { padding: 34px 0 4px; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.section h3 {
  counter-increment: sec;
  font-family: 'Frank Ruhl Libre', Georgia, serif;
  font-size: 23px; font-weight: 500; line-height: 1.35;
  margin-bottom: 16px;
  display: flex; align-items: baseline; gap: 12px;
}
.section h3::before {
  content: counter(sec) '.';
  color: var(--muted);
  font-family: 'Rubik', sans-serif;
  font-size: 15px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 1.7em;
}

.section p { margin-bottom: 15px; color: var(--ink-2); }
.section p:last-child { margin-bottom: 0; }
.section strong { font-weight: 600; color: var(--ink); }

.section ul { list-style: none; margin: 6px 0 17px; }
.section ul:last-child { margin-bottom: 0; }
.section li {
  position: relative;
  padding-inline-start: 18px;
  margin-bottom: 8px;
  color: var(--ink-2);
}
.section li::before {
  content: '—';
  position: absolute; inset-inline-start: 0; top: 0;
  color: var(--rule-strong);
}

/* ===== הערות בגוף המסמך =====
   בלי צבעי אזהרה. בחוזה, מה שחשוב מסומן בהיסט ובקו — לא בצהוב ואדום.
   הצבע היה גורם לעין לדלג על השאר. */
.highlight-box, .warning-box, .danger-box, .power-box {
  margin: 18px 0;
  padding: 2px 16px;
  border-inline-start: 1px solid var(--rule-strong);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}
.highlight-box p:last-child, .warning-box p:last-child,
.danger-box p:last-child, .power-box p:last-child { margin-bottom: 0; }

/* ===== יצירת קשר ===== */
.contact-card {
  margin-top: 46px; padding-top: 26px;
  border-top: 2px solid var(--ink);
}
.contact-card h3 {
  font-family: 'Frank Ruhl Libre', Georgia, serif;
  font-size: 20px; font-weight: 500; margin-bottom: 10px;
}
.contact-card p { font-size: 16px; margin-bottom: 3px; color: var(--ink-2); }
.contact-card a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}
.contact-card a:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.footer-note { font-size: 13px; color: var(--muted); margin-top: 26px; }

@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .container { padding: 36px 20px 60px; }
  .section h3 { font-size: 21px; }
}

/* ===== הדפסה =====
   עירייה מדפיסה חוזה ומתייקת אותו. */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.55; }
  .topbar, .toc { display: none; }
  .container { max-width: none; padding: 0; }
  .section { break-inside: avoid; }
  .section p, .section li { color: #000; }
  .contact-card a { color: #000; }
}
