/* ==========================================================================
   legal.css — shared styles for /privacy, /terms, /data-deletion
   Tokens, nav and footer are copied verbatim from index.html so the legal
   pages cannot drift visually from the landing page.
   ========================================================================== */

/* === Design tokens — from Instagram Posts design system === */
:root {
  --ink: #0E1B14;
  --ink-soft: #2A3A31;
  --off: #F4F1EA;
  --paper: #FBFAF6;
  --green: #1F8A5B;
  --green-deep: #0E5436;
  --green-soft: #D8EBDC;
  --mint: #7FE0B0;
  --line: rgba(14, 27, 20, 0.12);
  --muted: #6B7A71;
  --white: #FFFFFF;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Heebo', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 32px;
}

@media (max-width: 720px) {
  .wrap {
    padding-inline: 20px;
  }
}

/* === NAV ===
   No dark hero sits behind the bar on these pages, so the scrolled
   treatment from index.html is applied permanently. */
nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(14, 27, 20, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  direction: ltr;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.2px;
  color: #fff;
}

.logo-name span {
  color: var(--mint);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .18s, background .18s, color .18s;
}

.nav-cta:hover {
  border-color: var(--mint);
  color: var(--mint);
}

/* === LEGAL PROSE ===
   The document shell stays RTL so nav and footer match index.html exactly;
   the article itself is dir="ltr" because the copy is English. */
.legal-main {
  padding-block: 140px 88px;
}

/* The document shell is RTL, which would anchor the English prose block to the
   right edge and leave a void on the left. Flip just this container to LTR. */
.legal-main .wrap {
  direction: ltr;
}

.legal-prose {
  max-width: 72ch;
}

.legal-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 14px;
}

.legal-prose h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-prose h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.2px;
  margin-top: 36px;
  margin-bottom: 10px;
}

.legal-prose p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.legal-prose ul {
  list-style: none;
  margin-bottom: 16px;
}

.legal-prose li {
  position: relative;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  padding-inline-start: 20px;
  margin-bottom: 12px;
}

.legal-prose li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.legal-prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-prose a:hover {
  color: var(--green-deep);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.legal-back:hover {
  color: var(--green-deep);
}

/* === FOOTER === */
footer {
  padding-block: 48px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ink);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 720px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.foot-grid h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(251, 250, 246, 0.35);
  margin-bottom: 14px;
  font-weight: 600;
}

.foot-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-grid a {
  text-decoration: none;
  font-size: 14px;
  color: rgba(251, 250, 246, 0.55);
  transition: color .15s;
}

.foot-grid a:hover {
  color: var(--mint);
}

.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(251, 250, 246, 0.3);
  font-family: 'JetBrains Mono', monospace;
}

/* JetBrains Mono אין בו גליפים בעברית — משתמשים ב-Heebo כדי שהשורה לא תישבר לשני גופנים */
.foot-copy {
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: 13px;
}
