/* The static legal pages (/privacy and /terms), R-045.
   Plain HTML on purpose: Google's verification crawler cannot read Flutter's canvas, and the text is edited often.
   Same black-and-white tokens as AppColorTokens (Design §1), light and dark. */

/* The app's font, from the Flutter build (lynqo_core assets); the system font until it loads, or if it is missing */
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap;
  src: url("/assets/packages/lynqo_core/assets/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap;
  src: url("/assets/packages/lynqo_core/assets/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); }

:root {
  color-scheme: light;
  --bg: #FFFFFF; --surface: #F7F7F8; --border: #E4E4E7; --text: #0A0A0A; --muted: #6B6B72;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000; --surface: #111111; --border: #27272A; --text: #FAFAFA; --muted: #A1A1AA;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --surface: #111111; --border: #27272A; --text: #FAFAFA; --muted: #A1A1AA;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.8 "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }

header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  padding: 8px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 20px; }
.brand svg { width: 26px; height: 26px; }
nav { display: flex; gap: 4px; }
nav button { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 1px solid transparent;
  border-radius: 8px; padding: 4px 12px; cursor: pointer; }
nav button[aria-pressed="true"] { color: var(--text); border-color: var(--border); background: var(--surface); }

h1 { font-size: 28px; line-height: 1.3; margin: 0 0 4px; }
h2 { font-size: 19px; margin: 32px 0 8px; }
p, li { margin: 0 0 8px; }
ul { padding-inline-start: 24px; margin: 0 0 8px; }
a { color: var(--text); text-underline-offset: 3px; }
.muted { color: var(--muted); font-size: 14px; }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
article[lang="en"] { font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap;
  gap: 8px 16px; font-size: 14px; }
footer a { color: var(--muted); }
