/* Shared styles for nilidesk legal pages (Terms, Privacy, Accessibility). */

:root {
  --bg-deep: #07091a;
  --bg: #0c1024;
  --surface: #161c33;
  --border: #2a3155;
  --text: #eef0f8;
  --muted: #8d94b2;
  --accent: #4f8cff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body {
  font-family: "Heebo", "Assistant", "Segoe UI", -apple-system, sans-serif;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

header {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(7,9,26,0.7);
  backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 10;
}
.nav {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
}
.logo .dot { color: var(--accent); }
.nav-right { display: flex; gap: 16px; align-items: center; }
.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.back-link:hover { color: var(--text); }
.lang-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-width: 44px;
  transition: all 120ms;
}
.lang-btn:hover { color: var(--text); border-color: var(--accent); }

main.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}
main.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
main.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}
main.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}
main.legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}
main.legal p, main.legal li {
  font-size: 15px;
  color: #c4c8dc;
  margin-bottom: 14px;
}
main.legal ul, main.legal ol {
  padding-inline-start: 24px;
  margin-bottom: 14px;
}
main.legal li { margin-bottom: 6px; }
main.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
main.legal a:hover { color: #6aa1ff; }
main.legal strong { color: var(--text); }
main.legal hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
main.legal blockquote {
  border-inline-start: 3px solid var(--accent);
  padding: 8px 18px;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
}
html[dir="rtl"] main.legal blockquote { border-radius: 8px 0 0 8px; }

footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 12px;
}
footer a:hover { color: var(--text); }

/* Language switching: pages have <div class="lang-en"> and <div class="lang-he">.
   i18n.js sets html[lang] which CSS uses to hide the inactive one. */
html[lang="en"] .lang-he { display: none; }
html[lang="he"] .lang-en { display: none; }
