/* Sadd — Legal & Support pages */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&family=Newsreader:ital,wght@0,400;0,500;1,400;1,500&family=Reem+Kufi:wght@400;500;600;700&family=Amiri:ital,wght@0,400;0,700&display=swap');

:root {
  --ink: #11141A;
  --ink-2: #1B1F26;
  --ink-3: #262B33;
  --parchment: #F4EFE6;
  --parchment-2: #ECE5D6;
  --parchment-3: #E2D9C4;
  --sage: #5C7A6A;
  --sage-2: #4A6557;
  --sage-tint: #A8C0B4;
  --clay: #B05D3B;
  --hairline: rgba(17,20,26,0.10);
  --hairline-d: rgba(244,239,230,0.10);
  --muted: rgba(17,20,26,0.55);
  --muted-d: rgba(244,239,230,0.55);

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ar: 'IBM Plex Sans Arabic', sans-serif;
  --ar-kufi: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
  --ar-naskh: 'Amiri', 'Newsreader', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-tight { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

.serif { font-family: var(--serif); letter-spacing: -0.025em; font-weight: 500; }
.mono  { font-family: var(--mono); letter-spacing: 0.06em; }
.ar    { font-family: var(--ar); direction: rtl; }
.kufi  { font-family: var(--ar-kufi); direction: rtl; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-d { color: rgba(244,239,230,0.6); }

.hairline { height: 0.5px; background: var(--hairline); }
.hairline-d { height: 0.5px; background: var(--hairline-d); }

/* ─── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .12s ease, background .15s ease, opacity .15s;
  cursor: pointer; border: 0;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--ink); color: var(--parchment); }
.btn-primary:hover { background: #000; }
.btn-primary-on-dark { background: var(--parchment); color: var(--ink); }
.btn-primary-on-dark:hover { background: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border: 0.5px solid rgba(17,20,26,0.22); }
.btn-secondary:hover { background: rgba(17,20,26,0.04); }
.btn-secondary-d { background: transparent; color: var(--parchment); border: 0.5px solid rgba(244,239,230,0.30); }
.btn-secondary-d:hover { background: rgba(244,239,230,0.06); }

/* ─── NAV ───────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,230,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 0.5px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  max-width: 1280px; margin: 0 auto;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand .mark {
  font-family: var(--ar-kufi);
  font-size: 30px; font-weight: 600;
  color: var(--ink); line-height: 1;
  direction: rtl;
  position: relative; top: 2px;
}
.brand .word { font-family: var(--serif); font-size: 24px; letter-spacing: -0.025em; font-weight: 500; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[data-on="1"] { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ─── PAGE HEADER ───────────────────────────── */
.page-head {
  background: radial-gradient(130% 100% at 18% 0%, #232019 0%, #15130F 70%);
  color: var(--parchment);
  position: relative; overflow: hidden;
  padding: 84px 0 72px;
}
.page-head .watermark {
  position: absolute; top: -120px; right: -60px;
  font-family: var(--ar-kufi); font-size: 560px; line-height: 1;
  color: var(--sage-tint); opacity: 0.06;
  pointer-events: none; user-select: none; direction: rtl;
}
.page-head .inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.page-head .eyebrow { color: rgba(244,239,230,0.6); margin-bottom: 22px; }
.page-head h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(48px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.03em;
  color: var(--parchment); margin: 0; max-width: 16ch;
}
.page-head .lede {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 2vw, 24px); line-height: 1.5;
  color: rgba(244,239,230,0.68); max-width: 560px; margin-top: 28px;
}
.page-head .meta {
  margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(244,239,230,0.5);
}
.page-head .meta b { color: var(--sage-tint); font-weight: 500; }

/* ─── LEGAL LAYOUT ──────────────────────────── */
.legal-wrap {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 72px;
  padding: 88px 0 120px;
  align-items: start;
}
.toc {
  position: sticky; top: 96px;
  font-family: var(--mono);
}
.toc .toc-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 0;
  font-family: var(--sans); font-size: 14px; letter-spacing: -0.01em;
  color: var(--muted); line-height: 1.35;
  border-bottom: 0.5px solid transparent;
  transition: color .15s;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: rgba(17,20,26,0.3); flex: 0 0 auto;
}
.toc a:hover { color: var(--ink); }
.toc a[data-on="1"] { color: var(--sage-2); }
.toc a[data-on="1"]::before { color: var(--sage); }

.prose { max-width: 720px; }
.prose section { padding-top: 8px; margin-bottom: 56px; scroll-margin-top: 96px; }
.prose .sec-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 14px;
}
.prose h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.prose h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: -0.02em; line-height: 1.25;
  margin: 34px 0 12px;
}
.prose p { font-size: 17px; line-height: 1.7; color: rgba(17,20,26,0.78); margin: 0 0 16px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose a.link { color: var(--sage-2); border-bottom: 0.5px solid rgba(92,122,106,0.4); }
.prose a.link:hover { border-bottom-color: var(--sage-2); }
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.prose ul li {
  position: relative; padding-left: 26px;
  font-size: 17px; line-height: 1.6; color: rgba(17,20,26,0.78);
}
.prose ul li::before {
  content: "◇"; position: absolute; left: 0; top: 1px;
  font-family: var(--mono); font-size: 13px; color: var(--sage); opacity: 0.7;
}
.prose .em-ar { font-family: var(--ar); direction: rtl; font-size: 1.05em; }

/* callout */
.callout {
  border: 0.5px solid var(--hairline);
  background: #fff;
  border-radius: 18px;
  padding: 28px 30px;
  margin: 0 0 28px;
  position: relative;
}
.callout.sage { background: rgba(92,122,106,0.07); border-color: rgba(92,122,106,0.22); }
.callout .c-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage-2); margin-bottom: 10px;
}
.callout p { margin: 0; font-size: 16px; line-height: 1.6; }
.callout .serif-line { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ink); }

/* definition / data table */
.deftable { border-top: 0.5px solid var(--hairline); margin: 8px 0 24px; }
.deftable .row {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 18px 0; border-bottom: 0.5px solid var(--hairline);
}
.deftable .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink); text-transform: uppercase; }
.deftable .v { font-size: 16px; line-height: 1.55; color: rgba(17,20,26,0.72); }
@media (max-width: 560px) { .deftable .row { grid-template-columns: 1fr; gap: 6px; } }

@media (max-width: 920px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 80px; }
  .toc { position: static; border-left: 2px solid var(--hairline); padding-left: 18px; }
  .toc ol { gap: 0; }
}

/* ─── SUPPORT ───────────────────────────────── */
.support-body { padding: 80px 0 40px; }
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cat {
  background: #fff; border: 0.5px solid var(--hairline);
  border-radius: 20px; padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px; min-height: 196px;
  transition: transform .14s ease, border-color .15s;
}
.cat:hover { transform: translateY(-3px); border-color: rgba(92,122,106,0.4); }
.cat .ic {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--parchment-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-2);
}
.cat h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; margin: auto 0 0; }
.cat p { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; }
.cat .count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--sage); text-transform: uppercase; }
@media (max-width: 920px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

.support-section { padding: 56px 0; }
.support-section .sh {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; gap: 24px;
}
.support-section h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.05; margin: 0;
}

.faq { max-width: 860px; }
.faq details { border-bottom: 0.5px solid var(--hairline); padding: 24px 0; cursor: pointer; }
.faq details[open] summary { color: var(--sage-2); }
.faq summary {
  list-style: none;
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 25px);
  letter-spacing: -0.02em; line-height: 1.3;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color .15s;
}
.faq summary::after {
  content: '+'; font-family: var(--mono); font-size: 26px; font-weight: 300; opacity: 0.5;
  transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; opacity: 0.9; }
.faq summary::-webkit-details-marker { display: none; }
.faq .answer { font-size: 16px; line-height: 1.7; color: rgba(17,20,26,0.72); padding-top: 16px; max-width: 680px; }
.faq .answer p { margin: 0 0 14px; }
.faq .answer a { color: var(--sage-2); border-bottom: 0.5px solid rgba(92,122,106,0.4); }

.contact-card {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline); border: 0.5px solid var(--hairline);
  border-radius: 20px; overflow: hidden; margin-top: 16px;
}
.contact-card .cc { background: var(--parchment); padding: 30px 28px; display: flex; flex-direction: column; gap: 8px; }
.contact-card .cc .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-card .cc .big { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; }
.contact-card .cc .sub { font-size: 14px; color: var(--muted); line-height: 1.5; }
.contact-card .cc a { color: var(--sage-2); border-bottom: 0.5px solid rgba(92,122,106,0.4); }
@media (max-width: 720px) { .contact-card { grid-template-columns: 1fr; } }

/* ─── FOOTER ────────────────────────────────── */
footer { background: var(--ink); color: var(--parchment); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-col h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244,239,230,0.55); margin: 0 0 18px; font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col li a { color: rgba(244,239,230,0.85); font-size: 15px; transition: color .15s; }
.footer-col li a:hover { color: var(--parchment); }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand .word-row { display: flex; align-items: baseline; gap: 14px; }
.footer-brand .word-row .mark { font-family: var(--ar-kufi); font-size: 40px; font-weight: 600; color: var(--parchment); direction: rtl; }
.footer-brand .word-row .word { font-family: var(--serif); font-size: 40px; letter-spacing: -0.025em; }
.footer-brand p { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.55; color: rgba(244,239,230,0.6); max-width: 320px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 0.5px solid var(--hairline-d);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(244,239,230,0.45);
  flex-wrap: wrap; gap: 16px;
}
@media (max-width: 868px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: span 1; } }
