:root {
  --blue-900: #0b2a4a;
  --blue-700: #134a7c;
  --blue-500: #2a7bc0;
  --blue-100: #e8f2fb;
  --text: #1f2933;
  --muted: #5b6875;
  --border: #dbe3ea;
  --bg: #f6f9fc;
  --card: #ffffff;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  font-family: "Assistant", "Heebo", "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-500);
}

a:hover,
a:focus-visible {
  color: var(--blue-700);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--blue-900);
  color: #fff;
  border-radius: 6px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 3rem 1.25rem 4.5rem;
  text-align: center;
}

.brand {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  direction: ltr;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
}

.subtitle {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
  opacity: 0.9;
}

.container {
  max-width: 860px;
  margin: -2.5rem auto 3rem;
  padding: 0 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(11, 42, 74, 0.06);
  padding: clamp(1.25rem, 4vw, 2.75rem);
}

.intro p:first-child {
  margin-top: 0;
}

.toc {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--blue-100);
  border-radius: var(--radius);
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--blue-900);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}

.toc li {
  break-inside: avoid;
  margin-bottom: 0.25rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

section {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  margin-top: 1.75rem;
}

section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--blue-900);
}

.num {
  display: inline-block;
  min-width: 2.25em;
  color: var(--blue-500);
  font-variant-numeric: tabular-nums;
}

.clauses {
  margin: 0.5rem 0;
  padding: 0;
  list-style: none;
}

.clauses li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.clauses li > .num {
  flex: 0 0 auto;
  min-width: 3em;
}

.clauses .clauses {
  margin-top: 0.6rem;
}

.clauses .clauses li > .num {
  min-width: 3.75em;
}

.updated {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 1.25rem 2.5rem;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .toc ol {
    columns: 1;
  }

  .clauses li {
    gap: 0.5rem;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 12pt;
  }

  .site-header {
    background: none;
    color: #000;
    padding: 0 0 1rem;
  }

  .container {
    margin: 0;
    max-width: none;
  }

  .card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .toc,
  .skip-link {
    display: none;
  }

  a {
    color: inherit;
  }
}
