/* =========================================================
   Alpha 20 — صفحات سياسة الخصوصية والشروط والأحكام
   (الكمبيوتر + الجوال، عربي + إنجليزي)
   ========================================================= */
.lg-page {
  background: #000000;
  color: #FFFFFF;
}

.lg-main {
  width: min(1240px, 100% - 2 * clamp(18px, 5vw, 64px));
  margin-inline: auto;
  padding: clamp(120px, 14vw, 170px) 0 clamp(60px, 8vw, 100px);
}

/* اللغة: نعرض نسخة العربي أو الإنجليزي حسب زر EN/AR */
.lg-lang { display: none; }
html:not([lang^="en"]) .lg-lang[lang="ar"],
html[lang^="en"] .lg-lang[lang="en"] { display: block; }

.lg-lang[lang="ar"] { font-family: 'Tajawal', sans-serif; }
.lg-lang[lang="en"] { font-family: 'Poppins', 'Tajawal', sans-serif; }

/* ---------- رأس الصفحة ---------- */
.lg-hero {
  max-width: 820px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  color: #FC723F;
}
.lg-eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.lg-title {
  margin: 0;
  font-family: 'Free Palestine', 'Tajawal', sans-serif;
  font-weight: normal;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.15;
}
.lg-lang[lang="en"] .lg-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lg-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
}
.lg-updated::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #FC723F;
}
.lg-intro {
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.95;
  color: rgba(255, 255, 255, .8);
}

/* ---------- التوزيع: فهرس على الجنب + المحتوى ---------- */
.lg-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* فهرس المحتويات */
.lg-toc {
  position: sticky;
  top: 110px;
}
.lg-toc__box {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: #0b0b0b;
  padding: 18px 16px;
}
.lg-toc__title {
  list-style: none;
  cursor: default;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
  color: #FFFFFF;
}
.lg-toc__title::-webkit-details-marker { display: none; }
.lg-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.lg-toc__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: .93rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.lg-toc__list a:hover { color: #FFFFFF; background: rgba(255, 255, 255, .05); }
.lg-toc__list a.is-active { color: #FFFFFF; background: rgba(252, 114, 63, .14); }
.lg-toc__n {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  color: #FC723F;
  flex: none;
}

/* ---------- المحتوى ---------- */
.lg-article { max-width: 780px; }

.lg-sec {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  scroll-margin-top: 110px;
}
.lg-sec:first-child { border-top: 0; padding-top: 0; }

.lg-sec__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 14px;
  font-weight: 800;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.35;
  color: #FFFFFF;
}
.lg-sec__n {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: .9em;
  color: #FC723F;
}

.lg-sec p,
.lg-sec li {
  font-size: 1.05rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, .78);
}
.lg-sec p { margin: 0 0 12px; }
.lg-sec strong { color: #FFFFFF; font-weight: 700; }
.lg-sec a { color: #FC723F; text-decoration: underline; text-underline-offset: 4px; }
.lg-sec a:hover { color: #FFFFFF; }

.lg-sec ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.lg-sec ul li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 4px;
}
.lg-sec ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: .85em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #FC723F;
}

/* بيانات التواصل */
.lg-sec .lg-contact {
  margin-top: 6px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, .08);
}
.lg-sec .lg-contact li { padding-inline-start: 0; }
.lg-sec .lg-contact li::before { display: none; }
.lg-sec .lg-contact span { color: rgba(255, 255, 255, .5); }

/* أسفل الصفحة: الرجوع + الصفحة الثانية */
.lg-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.lg-foot__link {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.lg-foot__link:hover { background: #FC723F; border-color: #FC723F; color: #000000; }
.lg-foot__link:last-child { border-color: #FC723F; }

/* ---------- الجوال والتابلت: الفهرس فوق المحتوى وينفتح بالضغط ---------- */
@media (max-width: 900px) {
  .lg-layout { grid-template-columns: 1fr; }
  .lg-toc { position: static; }
  .lg-toc__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
  }
  .lg-toc__title::after {
    content: "";
    width: 10px; height: 10px;
    border-right: 2px solid #FC723F;
    border-bottom: 2px solid #FC723F;
    transform: rotate(45deg) translateY(-3px);
    transition: transform .25s ease;
  }
  .lg-toc__box[open] .lg-toc__title { margin-bottom: 12px; }
  .lg-toc__box[open] .lg-toc__title::after { transform: rotate(-135deg) translateY(-3px); }
  .lg-sec { scroll-margin-top: 90px; }
  .lg-sec p, .lg-sec li { font-size: 1rem; }
  .lg-foot { flex-direction: column; }
  .lg-foot__link { justify-content: center; }
}
