/* سياسة خصوصية «غازي» — صفحة مستقلة بهوية غازي البرتقالية */
:root {
  --flame: #EA580C;
  --flame-deep: #C2410C;
  --flame-soft: #FFF1E7;
  --ember: #FDBA74;
  --ink: #1C1410;
  --ink-2: #4A3F38;
  --ink-3: #7A6D64;
  --line: #EFE4DA;
  --page: #FFFBF7;
  --card: #FFFFFF;
  --ok: #15803D;
  --ok-soft: #E9F7EE;
  --no: #B42318;
  --no-soft: #FDEEEC;
  --shadow: 0 1px 2px rgba(60, 30, 10, .05), 0 8px 28px rgba(60, 30, 10, .07);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --flame: #FB7A3C;
    --flame-deep: #F05A1A;
    --flame-soft: #2A1A12;
    --ember: #9A4A1F;
    --ink: #F6EEE8;
    --ink-2: #D4C7BD;
    --ink-3: #A39488;
    --line: #34271F;
    --page: #15100D;
    --card: #1D1612;
    --ok: #4ADE80;
    --ok-soft: #12261A;
    --no: #F87171;
    --no-soft: #2C1514;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --flame: #FB7A3C; --flame-deep: #F05A1A; --flame-soft: #2A1A12; --ember: #9A4A1F;
  --ink: #F6EEE8; --ink-2: #D4C7BD; --ink-3: #A39488; --line: #34271F;
  --page: #15100D; --card: #1D1612; --ok: #4ADE80; --ok-soft: #12261A;
  --no: #F87171; --no-soft: #2C1514; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
}
a { color: var(--flame-deep); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0 0 .9em; }
ul { margin: .2em 0 1em; padding-inline-start: 1.25em; }
li { margin: .3em 0; }
li::marker { color: var(--flame); }
strong { color: var(--ink); }

/* شريط علوي */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar-in { max-width: 1060px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(234, 88, 12, .3); }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); line-height: 1.2; }
.brand span { line-height: 1.2; }
.spacer { flex: 1; }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card);
}
.lang button {
  font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--ink-2);
  padding: 4px 14px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--flame); color: #fff; }

/* الواجهة */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(253, 186, 116, .55), transparent 60%),
    radial-gradient(700px 360px at 0% 110%, rgba(234, 88, 12, .22), transparent 60%),
    linear-gradient(160deg, var(--flame-soft), var(--page) 70%);
  border-bottom: 1px solid var(--line);
}
.hero-in { max-width: 1060px; margin: 0 auto; padding: 56px 16px 44px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.hero-icon {
  width: 112px; height: 112px; border-radius: 28px; display: block;
  box-shadow: 0 18px 40px rgba(234, 88, 12, .35), 0 0 0 6px color-mix(in srgb, var(--card) 70%, transparent);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--flame-deep); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 4px rgba(234, 88, 12, .18); }
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; margin: 14px 0 10px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--flame); }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 62ch; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.meta b { color: var(--ink-2); font-weight: 600; }

/* التخطيط */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; padding: 36px 0 64px; }
.toc { position: sticky; top: 84px; font-size: 14.5px; }
.toc h2 { font-size: 13px; color: var(--ink-3); font-weight: 700; margin-bottom: 8px; letter-spacing: .03em; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-inline-start: 2px solid var(--line); }
.toc li { margin: 0; counter-increment: t; }
.toc a {
  display: block; padding: 5px 14px; color: var(--ink-2); text-decoration: none; margin-inline-start: -2px;
  border-inline-start: 2px solid transparent; line-height: 1.5;
}
.toc a::before { content: counter(t) ". "; color: var(--ink-3); font-variant-numeric: tabular-nums; }
html[lang="ar"] .toc a::before { content: counter(t, arabic-indic) ". "; }
.toc a:hover, .toc a.on { color: var(--flame-deep); border-inline-start-color: var(--flame); }

/* البطاقات المختصرة */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.g {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow);
}
.g .ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px;
  background: var(--flame-soft); color: var(--flame);
}
.g .ic svg { width: 22px; height: 22px; }
.g h3 { font-size: 16px; margin-bottom: 4px; }
.g p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.7; }

/* الأقسام */
section.s { padding-top: 6px; margin-bottom: 38px; }
section.s > h2 {
  font-size: 23px; display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
section.s > h2 .n {
  flex: none; font-size: 14px; font-weight: 700; color: var(--flame); background: var(--flame-soft);
  border-radius: 8px; padding: 1px 9px; font-variant-numeric: tabular-nums; transform: translateY(-2px);
}
section.s h3 { font-size: 17.5px; margin: 18px 0 6px; }
.note {
  border-radius: 14px; padding: 14px 16px; margin: 14px 0; font-size: 15.5px; line-height: 1.8;
  background: var(--flame-soft); border: 1px solid color-mix(in srgb, var(--flame) 22%, transparent);
}
.note b { color: var(--flame-deep); }

/* خط زمني للموقع */
.timeline { list-style: none; padding: 0; margin: 18px 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; inset-inline-start: 19px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--flame), var(--ember), var(--line));
}
.timeline li { position: relative; padding-inline-start: 56px; margin: 0 0 16px; }
.timeline .dot {
  position: absolute; inset-inline-start: 0; top: 2px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); border: 2px solid var(--flame); color: var(--flame);
}
.timeline .dot svg { width: 20px; height: 20px; }
.timeline li.off .dot { border-color: var(--line); color: var(--ink-3); }
.timeline b { display: block; font-size: 16px; }
.timeline span { color: var(--ink-2); font-size: 15px; }

/* الجداول */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; margin: 12px 0 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tbl th, .tbl td { text-align: start; padding: 11px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { background: var(--flame-soft); font-size: 13.5px; color: var(--ink-2); font-weight: 700; }
.tbl td:first-child { font-weight: 600; white-space: nowrap; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; padding: 0 2px; }

/* لا نفعله */
.nolist { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nolist li {
  margin: 0; display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; font-size: 15px; line-height: 1.6;
}
.nolist li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--no-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' stroke='%23B42318' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* التواصل */
.contact {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: linear-gradient(135deg, var(--flame), var(--flame-deep)); color: #fff; border-radius: 22px; padding: 26px 26px;
  box-shadow: 0 16px 40px rgba(234, 88, 12, .3);
}
.contact h2 { font-size: 22px; margin-bottom: 6px; color: #fff; }
.contact p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 15.5px; }
.contact a.btn {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--flame-deep); text-decoration: none;
  font-weight: 700; padding: 11px 18px; border-radius: 12px; white-space: nowrap; direction: ltr;
}

footer.f { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
footer.f .wrap { padding: 22px 16px 34px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.f a { color: var(--ink-2); }

/* اللغة */
[data-lang-block] { display: none; }
html[lang="ar"] [data-lang-block="ar"], html[lang="en"] [data-lang-block="en"] { display: block; }
html[lang="en"] body { font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.75; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 8px; padding-top: 24px; }
  .toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px 10px; margin-bottom: 26px; }
  .toc ol { columns: 2; column-gap: 8px; border: 0; }
  .toc a { border: 0; padding: 4px 8px; }
  .glance { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-in { grid-template-columns: 1fr; padding: 34px 16px 30px; gap: 18px; }
  .hero-icon { width: 84px; height: 84px; border-radius: 22px; }
  .glance { grid-template-columns: 1fr; }
  .nolist { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .contact { grid-template-columns: 1fr; padding: 22px 18px; }
  .brand small { display: none; }
  .tbl td:first-child { white-space: normal; }
}
@media print {
  .bar, .toc, .lang { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  .hero { background: none; }
  .g, .tbl, .contact { box-shadow: none; }
  .contact { background: none; color: var(--ink); border: 1px solid var(--line); }
  .contact h2, .contact p { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
