/* ============================================================================
   legal.css — shared styling for the static legal pages
   (/privacy, /terms, /data-deletion)

   ⚠ DELIBERATELY NOT css/main.css.
   The Claude Design re-export overwrites index.html, css/main.css, js/support.js
   and assets/. This file lives in legal/, which the export never touches, so the
   legal pages keep their styling across every future landing re-export.

   These pages are PURE STATIC HTML: no React, no Babel, no unpkg, no JS at all.
   Meta's crawler and any non-JS client gets the full text on first response.
   Brand tokens mirror the landing page (index.html + css/main.css).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg:        #05070a;
  --surface:   #10151a;
  --surface-2: #161c22;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --text:      #eef1f0;
  --muted:     #9aa5a1;
  --muted-2:   #7a857f;
  --green:     #7ed957;
  --green-dk:  #4fae2a;
  --on-green:  #06210a;
  --teal:      #3ecf8e;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  /* content stays readable if Google Fonts is blocked or slow */
  font-display: swap;
}

::selection { background: rgba(126,217,87,.35); }

a { color: #8fe35a; text-decoration: none; }
a:hover, a:focus-visible { color: #a9ef7f; text-decoration: underline; }

/* visible keyboard focus — Meta reviewers tab through pages */
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── ambient wash, matches the landing's dark gradient feel ───────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 40vh at 15% -5%,  rgba(126,217,87,.10), transparent 70%),
    radial-gradient(50vw 35vh at 90% 10%, rgba(62,207,142,.07), transparent 70%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* ── header ───────────────────────────────────────────────────────────────── */
.site-head {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
  margin-bottom: 48px;
}
.site-head-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  height: 30px; width: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(126,217,87,.25));
}
.brand span { font-weight: 800; font-size: 17px; color: #fff; }
.brand span em { font-style: normal; color: var(--green); }

.back-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-2);
  padding: 9px 18px;
  border-radius: 11px;
  white-space: nowrap;
}
.back-link:hover { background: rgba(255,255,255,.09); text-decoration: none; color: #fff; }

/* ── title block ──────────────────────────────────────────────────────────── */
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(126,217,87,.10);
  border: 1px solid rgba(126,217,87,.30);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 14px;
  color: #fff;
}
.updated { color: var(--muted-2); font-size: 14px; margin: 0 0 8px; }

.lede {
  color: var(--muted);
  font-size: 17px;
  border-left: 3px solid var(--green);
  padding-left: 18px;
  margin: 26px 0 40px;
}
[dir="rtl"] .lede { border-left: none; border-right: 3px solid var(--green); padding-left: 0; padding-right: 18px; }

/* ── body copy ────────────────────────────────────────────────────────────── */
h2 {
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 800;
  color: #fff;
  margin: 44px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 26px 0 8px; }
p  { margin: 0 0 15px; color: var(--muted); }
strong { color: var(--text); font-weight: 700; }

ul, ol { color: var(--muted); padding-left: 22px; margin: 0 0 15px; }
[dir="rtl"] ul, [dir="rtl"] ol { padding-left: 0; padding-right: 22px; }
li { margin-bottom: 9px; }
li::marker { color: var(--green); }

/* ── callout ──────────────────────────────────────────────────────────────── */
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 26px 0;
}
.note.accent { border-color: rgba(126,217,87,.30); background: rgba(126,217,87,.06); }
.note p:last-child, .note ul:last-child, .note ol:last-child { margin-bottom: 0; }
.note h3 { margin-top: 0; }

/* ── table ────────────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
th { color: #fff; font-weight: 700; background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
td { color: var(--muted); }

/* ── contact card ─────────────────────────────────────────────────────────── */
.contact {
  background: linear-gradient(135deg, rgba(126,217,87,.10), rgba(62,207,142,.05));
  border: 1px solid rgba(126,217,87,.30);
  border-radius: 16px;
  padding: 26px;
  margin: 40px 0 0;
}
.contact h2 { border-top: none; padding-top: 0; margin-top: 0; }

/* ── language divider ─────────────────────────────────────────────────────── */
.lang-split {
  margin: 72px 0 0;
  padding-top: 10px;
  border-top: 2px dashed var(--line-2);
}

/* ── footer ───────────────────────────────────────────────────────────────── */
.site-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 30px 24px 46px;
  text-align: center;
}
.site-foot nav { margin-bottom: 12px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.site-foot nav a { font-size: 13.5px; color: var(--muted); }
.site-foot nav a:hover { color: var(--green); }
.site-foot nav .sep { color: #39423d; font-size: 13.5px; }
.site-foot .rights { font-size: 12.5px; color: var(--muted-2); margin: 0; }

@media (max-width: 640px) {
  .site-head { padding: 16px; margin-bottom: 34px; }
  .wrap { padding: 0 18px 68px; }
  h2 { margin-top: 34px; }
  .contact, .note { padding: 18px; }
}

@media print {
  body::before { display: none; }
  body { background: #fff; color: #000; }
  .site-head, .site-foot, .back-link { display: none; }
  h1, h2, h3, strong { color: #000; }
  p, li, td { color: #222; }
  a { color: #000; text-decoration: underline; }
}
