/* Shared styling for the standalone legal pages.
   These are plain HTML, served straight by nginx — deliberately independent of
   the SPA bundle so they stay reachable to Meta's crawler and to reviewers even
   if the app fails to boot. */

:root {
  --bg: #ffffff;
  --fg: #1c1c1f;
  --muted: #5b5b66;
  --line: #e4e4ea;
  --accent: #0f6d5c;
  --accent-soft: #f0f7f5;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;
    --fg: #ececed;
    --muted: #a1a1ad;
    --line: #2b2b31;
    --accent: #4fbfa5;
    --accent-soft: #17211f;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", system-ui, -apple-system, "Noto Naskh Arabic", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
}

.brand img {
  display: block;
  inline-size: 2rem;
  block-size: 2rem;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.35;
  margin: 1.25rem 0 0.4rem;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  max-width: var(--max);
  margin: 0 auto;
}

section { padding-top: 2.5rem; }

h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
}

p { margin: 0 0 1rem; }

ul { margin: 0 0 1rem; padding-inline-start: 1.4rem; }

li { margin-bottom: 0.5rem; }

a { color: var(--accent); }

strong { font-weight: 600; }

.note {
  background: var(--accent-soft);
  border-inline-start: 3px solid var(--accent);
  border-radius: 0.5rem;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

.note p:last-child { margin-bottom: 0; }

table {
  inline-size: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.94rem;
}

th, td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  text-align: start;
  vertical-align: top;
}

th { background: var(--accent-soft); font-weight: 600; }

/* Wide tables must scroll inside their own box rather than the page. */
.scroll { overflow-x: auto; }

footer {
  max-width: var(--max);
  margin: 4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

/* The English half of each page mirrors the Arabic one; it flips direction
   without needing a second stylesheet. */
[dir="ltr"] { text-align: start; }

.lang-divider {
  max-width: var(--max);
  margin: 4rem auto 0;
  border: 0;
  border-top: 2px dashed var(--line);
}
