/* Privacy Policy — elegant, modern, well-organized.
 *
 * Tajawal across the entire page (forced via the
 * `body[data-page="privacy"]` selector below — beats the
 * global `[lang="en"]` rule that would otherwise pull Inter
 * in for English users).
 *
 * Layout:
 *   - Centered hero with eyebrow chip, large display title,
 *     editorial intro.
 *   - Two-column body: numbered TOC (sticky on desktop,
 *     collapsed card on tablet/mobile) + reading column of
 *     numbered clause cards.
 *   - Contact block lives inside the last clause.
 */

/* ─── Force Tajawal across the whole page ──────────────── */
body[data-page="privacy"],
body[data-page="privacy"] *:not(svg):not(path):not(rect):not(circle):not(line):not(polygon):not(defs):not(clipPath):not(g) {
  font-family: var(--font-ar);
}

/* ─── Hero ─────────────────────────────────────────────── */
.privacy-hero {
  padding-block: clamp(130px, 15vw, 170px) clamp(56px, 8vw, 88px);
  text-align: center;
  position: relative;
  border-block-end: 1px solid var(--line);
}
.privacy-hero::after {
  content: "";
  position: absolute;
  inset-block-end: -1px;
  inset-inline-start: 50%;
  width: 60px;
  height: 1px;
  background: var(--brand);
  transform: translateX(-50%);
}
.privacy-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 7px 16px;
  background: var(--brand-soft);
  border: 1px solid rgba(19, 181, 243, 0.30);
  border-radius: var(--r-pill);
  margin-block-end: var(--sp-5);
}
[lang="ar"] .privacy-hero__eyebrow {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.92rem;
}
.privacy-hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.privacy-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text-1);
  max-width: 18ch;
  margin-inline: auto;
  margin-block-end: var(--sp-5);
}
[lang="ar"] .privacy-hero__title { letter-spacing: -0.005em; line-height: 1.2; }
.privacy-hero__intro {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-2);
  line-height: 1.8;
  max-width: 66ch;
  margin-inline: auto;
}

/* ─── Body grid: TOC + reading column ──────────────────── */
.privacy-body {
  padding-block: clamp(56px, 7vw, 88px) clamp(80px, 11vw, 140px);
}
.privacy-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* ─── Table of contents ────────────────────────────────── */
.privacy-toc {
  position: sticky;
  top: 108px;
}
.privacy-toc__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-4);
  padding-inline-start: 18px;
  margin-block-end: var(--sp-4);
}
[lang="ar"] .privacy-toc__label {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.88rem;
}
.privacy-toc__list { list-style: none; padding: 0; margin: 0; }
.privacy-toc__list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  font-size: 0.91rem;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  border-inline-start: 1px solid var(--line);
  margin-inline-start: -1px;
  line-height: 1.4;
  transition: color 220ms var(--ease-out),
              border-color 220ms var(--ease-out),
              background 220ms var(--ease-out);
}
[dir="rtl"] .privacy-toc__list a {
  border-inline-start: 0;
  border-inline-end: 1px solid var(--line);
  margin-inline-start: 0;
  margin-inline-end: -1px;
}
.privacy-toc__list a:hover {
  color: var(--text-1);
}
.privacy-toc__list a.is-active {
  color: var(--brand);
  font-weight: 700;
  border-color: var(--brand);
  background: linear-gradient(90deg, var(--brand-soft), transparent 80%);
}
[dir="rtl"] .privacy-toc__list a.is-active {
  background: linear-gradient(-90deg, var(--brand-soft), transparent 80%);
}
.privacy-toc__num {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-4);
  flex-shrink: 0;
  min-width: 22px;
  transition: color 220ms var(--ease-out);
}
.privacy-toc__list a.is-active .privacy-toc__num,
.privacy-toc__list a:hover .privacy-toc__num { color: var(--brand); }

/* ─── Clauses (reading column) ─────────────────────────── */
.privacy-clauses { max-width: 72ch; }
.privacy-clause {
  padding-block-end: clamp(36px, 5vw, 56px);
  margin-block-end: clamp(36px, 5vw, 56px);
  border-block-end: 1px solid var(--line);
  scroll-margin-block-start: 110px;
}
.privacy-clause:last-of-type {
  border-block-end: 0;
  margin-block-end: 0;
  padding-block-end: 0;
}
.privacy-clause__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-block-end: var(--sp-5);
}
.privacy-clause__num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  padding-block-start: 4px;
}
.privacy-clause__title {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--text-1);
}
[lang="ar"] .privacy-clause__title {
  letter-spacing: -0.003em;
  line-height: 1.3;
}
.privacy-clause__body {
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.85;
}
.privacy-clause__body p { margin-block-end: var(--sp-3); }
.privacy-clause__body p:last-child { margin-block-end: 0; }
.privacy-clause__body strong { color: var(--text-1); font-weight: 700; }

/* Custom bullet — small cyan dash before each list item. */
.privacy-clause__body ul {
  list-style: none;
  padding: 0;
  margin-block: var(--sp-3) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.privacy-clause__body li {
  position: relative;
  padding-inline-start: 24px;
  line-height: 1.7;
}
.privacy-clause__body li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 13px;
  width: 12px;
  height: 1.5px;
  background: var(--brand);
  border-radius: 2px;
}
[dir="rtl"] .privacy-clause__body li {
  padding-inline-start: 0;
  padding-inline-end: 24px;
}
[dir="rtl"] .privacy-clause__body li::before {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

/* ─── Contact card inside the final clause ─────────────── */
.privacy-contact {
  margin-block-start: var(--sp-5);
  padding: clamp(18px, 2.4vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.privacy-contact__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid rgba(19, 181, 243, 0.32);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.privacy-contact__icon svg { width: 22px; height: 22px; }
.privacy-contact__body {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.privacy-contact__label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
[lang="ar"] .privacy-contact__label {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.86rem;
}
.privacy-contact__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  direction: ltr;
  unicode-bidi: isolate;
}
.privacy-contact__value a {
  color: var(--brand);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}
.privacy-contact__value a:hover { color: #58d4ff; }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  .privacy-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .privacy-toc {
    position: static;
    padding: var(--sp-4) var(--sp-4) var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
  }
  .privacy-toc__label { padding-inline-start: 0; }
  .privacy-toc__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .privacy-toc__list a {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    margin: 0;
    font-size: 0.86rem;
  }
  [dir="rtl"] .privacy-toc__list a {
    border-inline-end: 1px solid transparent;
  }
  .privacy-toc__list a.is-active {
    background: var(--brand-soft);
    border-color: rgba(19, 181, 243, 0.3);
  }
}
@media (max-width: 560px) {
  .privacy-toc__list { grid-template-columns: 1fr; }
}
