/* Terms and privacy: the landing page's look, set for long reading. */
:root {
  --bg: #0B0E13;
  --panel: #10141B;
  --line: #1E2631;
  --text: #E9ECF1;
  --muted: #8B94A3;
  --amber: #E08A4E;
  --mono: "JetBrains Mono", "IBM Plex Sans Arabic", ui-monospace, monospace;
  --sans: "Archivo", "IBM Plex Sans Arabic", "Helvetica Neue", sans-serif;
  --ar: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--amber); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; }
.brand img { border-radius: 8px; }
.brand i { font-style: normal; color: var(--amber); }
.switch { display: flex; gap: .3rem; }
.switch button {
  font: 500 .85rem var(--mono); color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 6px; padding: .35rem .7rem;
}
.switch button[lang="ar"] { font-family: var(--ar); }
.switch button[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); }

main { max-width: 760px; margin: 0 auto; padding: 2.5rem 1rem 3rem; }
article + article { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
/* With the script running, one language at a time; without it, both. */
body[data-show="en"] article#ar, body[data-show="ar"] article#en { display: none; }
body[data-show="en"] article + article, body[data-show="ar"] article + article { margin-top: 0; padding-top: 0; border-top: 0; }
article[dir="rtl"] { font-family: var(--ar); line-height: 1.9; }

.kicker { font: 400 .85rem var(--mono); color: var(--amber); margin-bottom: .4rem; }
article[dir="rtl"] .kicker { font-family: var(--ar); }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
article[dir="rtl"] h1 { letter-spacing: 0; }
.meta { color: var(--muted); font-size: .9rem; margin: .5rem 0 1.8rem; }
.lead { font-size: 1.1rem; padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
h2 { font-size: 1.15rem; font-weight: 700; margin: 2.2rem 0 .6rem; }
p + p { margin-top: .8rem; }
ul { padding-inline-start: 1.3rem; display: grid; gap: .5rem; }
li::marker { color: var(--amber); }
strong { font-weight: 600; }

.foot {
  max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--muted); font: 400 .85rem var(--mono);
}
.foot a { color: var(--muted); text-decoration: none; font-family: var(--sans); }
.foot a:hover { color: var(--amber); }

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