/* ADMA — shared styling for legal/info pages (palette matches the main site) */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --earth: #523b32;
  --forest: #0e4b57;
  --clay-text: #8f5e3a;
  --paper: #fbf8f3;
  --wash: #f2ece5;
  --ink: #2b231f;
  --muted: #6b6159;
  --line: #ded2c6;
  --white: #fffdf8;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Heebo", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 100;
  padding: 12px 22px;
  background: var(--earth);
  color: var(--white);
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--forest);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 5px;
}
:focus:not(:focus-visible) { outline: none; }

.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.legal-header .inner {
  width: calc(100% - 40px);
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-header img { height: 42px; width: auto; }
.legal-header a.back {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.98rem;
}
.legal-header a.back:hover { text-decoration: underline; }

main.legal {
  width: calc(100% - 40px);
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 3rem;
}

.legal h1 {
  margin: 0 0 8px;
  color: var(--earth);
  font-family: "Noto Serif Hebrew", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
}
.legal .updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.95rem;
}
.legal h2 {
  margin: 34px 0 12px;
  color: var(--earth);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
}
.legal h3 {
  margin: 22px 0 8px;
  color: var(--earth);
  font-size: 1.12rem;
  font-weight: 800;
}
.legal p, .legal li { color: var(--ink); font-size: 1.03rem; }
.legal ul, .legal ol { padding-inline-start: 1.4rem; margin: 12px 0; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--clay-text); font-weight: 700; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--earth); }

.legal .fill {
  background: #fff3d6;
  color: #7a5a12;
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95em;
  border: 1px dashed #c9a84a;
}

.legal .note {
  margin: 28px 0 0;
  padding: 16px 18px;
  background: var(--wash);
  border-inline-start: 4px solid var(--forest);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal .contact-box {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.legal .contact-box p { margin: 4px 0; }

.legal-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 22px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.legal-footer a { color: var(--forest); font-weight: 700; text-decoration: none; }
.legal-footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
