/* CIRCUL legal and support site. Self-contained: system fonts, no external requests. */
:root {
  --bg: #0b0b0c;
  --surface: #151517;
  --line: #2a2a2e;
  --text: #f2efe8;
  --muted: #a8a39a;
  --gold: #d4af37;
  --gold-soft: #e9cf7a;
  --warn-bg: #3a2a00;
  --warn-text: #ffe08a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Arabic", "Geeza Pro", Tahoma, Roboto, "Noto Sans Arabic", Arial, sans-serif;
}
a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Draft banner. To remove: delete the <div class="draft-banner"> element in each page. */
.draft-banner {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-bottom: 1px solid var(--gold);
  padding: 10px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

header.site { border-bottom: 1px solid var(--line); padding: 16px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { color: var(--gold); font-weight: 800; letter-spacing: .08em; text-decoration: none; font-size: 20px; }
.brand span { color: var(--text); letter-spacing: 0; font-weight: 700; margin-inline-start: 8px; }
nav.top { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--gold); }

main { padding: 24px 0 48px; }
h1 { color: var(--gold); font-size: 28px; line-height: 1.3; margin: 0 0 8px; }
h2 { color: var(--gold-soft); font-size: 20px; line-height: 1.4; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
.meta { color: var(--muted); font-size: 14px; }
ul, ol { padding-inline-start: 22px; }
.lang-switch { display: inline-flex; gap: 10px; margin: 6px 0 18px; font-size: 14px; }
.lang-switch a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; }

section.lang { padding-top: 8px; }
section.lang + section.lang { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 32px; }
[dir="rtl"] { text-align: right; }
[dir="ltr"] { text-align: left; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 16px 0; }
.card.gold { border-color: var(--gold); }
/* Placeholder the owner must fill. Search the HTML for class="ph". */
.ph { background: rgba(212, 175, 55, .16); color: var(--gold-soft); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
th { background: var(--surface); color: var(--gold-soft); }

.hero { text-align: center; padding: 32px 0 8px; }
.hero .logo { font-size: 44px; font-weight: 800; color: var(--gold); letter-spacing: .1em; margin: 0; line-height: 1.2; }
.hero .logo-ar { font-size: 34px; font-weight: 800; color: var(--text); margin: 0 0 12px; }
.hero p { color: var(--muted); max-width: 540px; margin: 6px auto; }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.links a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--text); text-align: center; }
.links a:hover { border-color: var(--gold); }
.links a strong { display: block; color: var(--gold); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
details[open] { border-color: var(--gold); }
summary { cursor: pointer; font-weight: 600; }
details p, details ul, details ol { margin: 10px 0 0; }

footer.site { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--muted); font-size: 13px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  body { font-size: 15.5px; }
}
@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --muted: #333; --gold: #000; --gold-soft: #000; --line: #999; }
  nav.top, .lang-switch { display: none; }
}
