/* Risha's legal pages (privacy, terms, data deletion): one calm column, black on white, no icons.
   English first, then the same text in Arabic under <section lang="ar" dir="rtl">. No scripts:
   the hosting CSP allows none of these pages to need one. */

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/fonts/noto-sans-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #555555;
  --rule: #dddddd;
  --soft: #f4f4f4;
  --latin: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --arabic: "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0b0b;
    --ink: #f0f0f0;
    --muted: #a8a8a8;
    --rule: #333333;
    --soft: #181818;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--latin);
  font-size: 1rem;
  line-height: 1.65;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.brand { font-weight: 600; }
.brand bdi { font-family: var(--arabic); }

a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 32px 0 8px; font-weight: 700; }
h2 { font-size: 1.1875rem; line-height: 1.35; margin: 36px 0 8px; font-weight: 650; }
h3 { font-size: 1rem; line-height: 1.4; margin: 24px 0 4px; font-weight: 650; }
p, ul, ol, dl { margin: 0 0 12px; }
ul, ol { padding-inline-start: 1.25em; }
li { margin-bottom: 6px; }
li > ul, li > ol { margin-top: 6px; }
strong { font-weight: 650; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875em; background: var(--soft); padding: 0.05em 0.3em; border-radius: 3px; overflow-wrap: anywhere; }

.meta { color: var(--muted); font-size: 0.9375rem; margin-bottom: 20px; }

/* The short summary at the top of each language: a quiet box, no colour. */
.summary {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 16px 4px;
  margin: 20px 0 8px;
}
.summary h2 { margin-top: 0; font-size: 1rem; }

/* Lists of processors and data kinds: a name, then plain lines under it (no table, so no sideways scroll on a phone). */
.entries { list-style: none; padding: 0; margin: 0 0 12px; }
.entries > li { border-top: 1px solid var(--rule); padding: 12px 0 8px; margin: 0; }
.entries > li:last-child { border-bottom: 1px solid var(--rule); }
.entries .name { display: block; font-weight: 650; margin-bottom: 2px; }
.entries p { margin-bottom: 6px; }

.steps { padding-inline-start: 1.5em; }

.note { color: var(--muted); font-size: 0.9375rem; }

/* Between the two languages. */
.divider { border: 0; border-top: 2px solid var(--ink); margin: 56px 0 0; }

section[lang="ar"] {
  font-family: var(--arabic);
  line-height: 1.9;
}
section[lang="ar"] h1, section[lang="ar"] h2, section[lang="ar"] h3 { line-height: 1.5; }
section[lang="ar"] code, section[lang="ar"] bdi[dir="ltr"] { font-family: var(--latin); }

.foot {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.foot p { margin: 0 0 4px; }

@media print {
  .top a, .foot nav { display: none; }
  body { background: #fff; color: #000; }
}
