/* Privacy and terms pages: plain static files, so they load fast and read without JavaScript.
   Same tokens as the dashboard (styles.css). */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1b1a17;
  --muted: #5f5b53;
  --line: #e3ded3;
  --accent: #1f5e5b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161513;
    --surface: #1e1d1a;
    --ink: #efede8;
    --muted: #b2ada3;
    --line: #34322d;
    --accent: #7fc4bf;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161513;
  --surface: #1e1d1a;
  --ink: #efede8;
  --muted: #b2ada3;
  --line: #34322d;
  --accent: #7fc4bf;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px / 1.7 "IBM Plex Sans Arabic",
    system-ui,
    -apple-system,
    "Segoe UI",
    Tahoma,
    sans-serif;
  padding-inline: 16px;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.bar {
  max-width: 760px;
  margin: 0 auto;
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.lang {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  min-height: 40px;
  cursor: pointer;
}
.lang:hover {
  border-color: var(--muted);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding-block: 8px 48px;
}
article {
  max-width: 68ch;
}
h1 {
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.2;
  margin: 16px 0 4px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}
.lead {
  font-size: 18px;
}
h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 36px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-wrap: balance;
}
p,
ul {
  margin: 0 0 12px;
}
ul {
  padding-inline-start: 22px;
}
li {
  margin-bottom: 6px;
}
.mail {
  direction: ltr;
  unicode-bidi: isolate;
}

footer {
  max-width: 760px;
  margin: 0 auto;
  padding-block: 20px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer a {
  color: var(--muted);
}

/* Both languages are in the page. With JavaScript one is shown; without it, both are. */
html[data-lang="en"] .t[lang="ar"],
html[data-lang="ar"] .t[lang="en"] {
  display: none;
}
.t[lang="ar"] {
  direction: rtl;
}
.t[lang="en"] {
  direction: ltr;
}
html:not([data-lang]) article[lang="ar"] {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}
