/* Shared styling for the Omaraty legal pages (/privacy, /account-deletion).
 *
 * These moved here from omaraty-prod.web.app so that every Omaraty URL lives on
 * one host — see SEO_PLAN §4 C2. Deliberately self-contained: no webfont request,
 * no JS. A privacy policy should render instantly on a bad connection and must
 * never depend on anything that can fail.
 *
 * terms.html still carries its own inline styles. Worth unifying onto this file
 * at some point, but not while touching legal copy for an unrelated reason.
 *
 * Each page is one bilingual document: Arabic first at the document level,
 * English inside <section lang="en" dir="ltr">. That is why there is no hreflang
 * here — hreflang describes separate documents per language, which these aren't.
 */

:root {
  --navy: #0F2240;
  --navy-soft: #1E3A5F;
  --gold: #C5A059;
  --ink: #1F2733;
  --ink-soft: #55606E;
  --rule: #E3E7EC;
  --ground: #F7F8FA;
  --surface: #FFFFFF;
}

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

body {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--ground);
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

/* ---- Header ---- */
.legal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 20px;
}
.brand img { width: 34px; height: auto; }
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}
.legal-nav a { color: var(--navy-soft); }
.legal-nav a[aria-current="page"] {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

/* ---- Content ---- */
main { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 32px 28px; }

h1 {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-soft);
  margin: 34px 0 10px;
  padding-inline-start: 12px;
  border-inline-start: 4px solid var(--gold);
}
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px; padding-inline-start: 22px; }
li { margin-bottom: 8px; }
strong { color: var(--navy); }

a { color: var(--navy-soft); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.updated {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 24px;
}

/* The English half of a bilingual document. `dir` is set on the element itself
   so the direction survives even if this stylesheet fails to load. */
section[lang="en"] {
  border-top: 2px solid var(--rule);
  margin-top: 48px;
  padding-top: 28px;
}

/* ---- Footer ---- */
.legal-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  direction: ltr;
}
.legal-foot img { width: 44px; height: auto; opacity: .85; }
.legal-foot p { margin: 10px 0 0; }

@media (max-width: 560px) {
  main { padding: 24px 20px; border-radius: 8px; }
  h1 { font-size: 24px; }
}
