/* =========================================================
   LEGAL PAGE
   ========================================================= */

/* ── Hero ──────────────────────────────────────────────── */

.legal-hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--border-color);
}

.legal-hero .eyebrow {
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.legal-hero h1 {
  font-family: "Degular Display", "PP Neue Montreal", sans-serif;
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text-primary);
}

.legal-updated {
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
  letter-spacing: 0.01em;
}

/* ── Sections — two-column layout ──────────────────────── */

.legal-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-color);
}

.legal-section:last-of-type {
  border-bottom: none;
  padding-bottom: 80px;
}

.legal-section .container {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.legal-section h2 {
  font-family: "PP Neue Montreal", sans-serif;
  flex: 0 0 180px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-top: 4px;
  position: sticky;
  top: 80px;
  line-height: 1.4;
}

/* ── Body ──────────────────────────────────────────────── */

.legal-body {
  font-family: "PP Neue Montreal", sans-serif;
  flex: 1;
  min-width: 0;
  max-width: 600px;
  color: var(--text-secondary);
  line-height: 1.82;
  font-size: 0.91rem;
}

.legal-body p + p {
  margin-top: 14px;
}

.legal-body h3 {
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 10px;
  letter-spacing: 0.005em;
  line-height: 1.4;
}

.legal-body h3:first-child {
  margin-top: 2px;
}

.legal-body ul {
  margin-top: 12px;
  margin-bottom: 12px;
  padding-left: 0;
  list-style: none;
}

.legal-body li {
  margin-bottom: 12px;
  padding-left: 16px;
  position: relative;
}

.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.7;
}

/* ── RTL ───────────────────────────────────────────────── */

/* The policy text is the authoritative English version and has no reviewed
   Arabic translation yet, so it stays LTR while the surrounding chrome flips
   — the same treatment the non-Arabic .lang-phrase gets. When a reviewed
   translation lands, remove this and mirror the li bullets to the right. */
[dir="rtl"] .legal-hero .container,
[dir="rtl"] .legal-section .container {
  direction: ltr;
  text-align: left;
}

.legal-body strong {
  font-weight: 600;
  color: var(--text-primary);
}

.legal-body a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-color);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.legal-body a:hover {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}

.legal-body code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.83em;
  background: var(--bg-sand);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.legal-disclaimer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.74rem;
  letter-spacing: 0.025em;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ── Inline signature (inside Contact section) ─────────── */

.legal-sig {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.legal-sig-img {
  display: block;
  height: 40px;
  width: auto;
  opacity: 0.72;
  mix-blend-mode: multiply;
  margin-top: 14px;
}

.legal-sig-name {
  font-family: "Degular Display", "PP Neue Montreal", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.legal-sig-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Footer notice ─────────────────────────────────────── */

.footer-legal-notice {
  padding-bottom: 20px;
}

.footer-legal-notice p {
  font-size: 0.72rem;
  color: rgba(205, 192, 180, 0.38);
  letter-spacing: 0.01em;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 720px) {
  .legal-hero {
    padding: 64px 0 40px;
  }

  .legal-hero h1 {
    font-size: 2rem;
  }

  .legal-section {
    padding: 40px 0;
  }

  .legal-section .container {
    flex-direction: column;
    gap: 16px;
  }

  .legal-section h2 {
    position: static;
    flex: none;
    font-size: 0.65rem;
  }

  .legal-body {
    max-width: 100%;
  }
}
