/* صفحات المحتوى والسياسات — تُضمَّن بعد style.css و design3-v2.css
   تستعمل نفس متغيّرات الهوية: الكحلي والذهبي وخط Cairo. */

/* ------------------------------------------------- ترويسة الصفحة الداخلية */
.page-head {
  background: #18283c;
  color: #fff;
  padding: 58px 0 50px;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.page-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, #d8b66d14, transparent 60%);
  pointer-events: none;
}

.page-head .eyebrow { color: var(--gold); }

.page-head h1 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 900;
  margin: 6px 0 12px;
  line-height: 1.4;
}

.page-head p {
  color: #d2dce9;
  margin: 0;
  max-width: 760px;
  font-size: 15px;
}

.page-head .updated {
  display: inline-block;
  margin-top: 18px;
  border: 1px solid #d8b66d55;
  background: #d8b66d12;
  color: var(--gold2);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
}

/* ------------------------------------------------------- فتات التنقل */
.crumbs {
  padding: 14px 0;
  font-size: 12px;
  color: #7c8a9d;
  background: #eef2f7;
  border-bottom: 1px solid #e0e7ef;
}

.crumbs a { color: #9a783d; font-weight: 800; }
.crumbs span { margin: 0 6px; }

/* --------------------------------------------------------- نص السياسة */
.doc {
  background: #fff;
  border: 1px solid #e0e7ef;
  border-top: 4px solid #d5b46d;
  border-radius: 20px;
  padding: 38px;
  box-shadow: 0 16px 45px #172c4a0c;
  margin: 34px 0;
}

.doc h2 {
  font-size: 22px;
  font-weight: 900;
  color: #14243b;
  margin: 34px 0 12px;
  padding-right: 14px;
  border-right: 4px solid var(--gold);
}

.doc h2:first-child { margin-top: 0; }

.doc h3 {
  font-size: 17px;
  color: #a87d39;
  margin: 24px 0 8px;
}

.doc p,
.doc li { color: #42546c; line-height: 2.05; font-size: 15px; }
.doc ul, .doc ol { padding-right: 22px; margin: 10px 0; }
.doc li { margin-bottom: 9px; }
.doc strong { color: #14243b; }
.doc a { color: #9a783d; font-weight: 800; border-bottom: 1px solid #d8b66d66; }

/* فهرس المحتويات */
.toc {
  background: #f8fafc;
  border: 1px solid #e2e8f1;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 30px;
}

.toc strong { display: block; color: #14243b; margin-bottom: 10px; font-size: 14px; }
.toc ol { margin: 0; padding-right: 20px; }
.toc li { margin-bottom: 5px; font-size: 14px; }
.toc a { color: #607086; font-weight: 700; border: 0; }
.toc a:hover { color: #9a783d; }

/* ------------------------------------------------- جدول البيانات المجموعة */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.data-table thead th {
  background: #14243a;
  color: #f0d7a0;
  text-align: right;
  padding: 13px 15px;
  font-size: 13px;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #e8edf3;
  color: #42546c;
  vertical-align: top;
  line-height: 1.85;
}

.data-table tbody tr:hover td { background: #f8fafc; }
.data-table td:first-child { font-weight: 800; color: #14243b; white-space: nowrap; }

/* --------------------------------------------------------- صناديق تنبيه */
.callout {
  border-radius: 14px;
  padding: 18px 22px;
  margin: 22px 0;
  border: 1px solid;
  line-height: 1.95;
  font-size: 14.5px;
}

/* عنوان الصندوق وحده يأخذ سطراً — أما الإبراز داخل الجملة فيبقى في سياقه. */
.callout > strong:first-child { display: block; margin-bottom: 5px; font-size: 15px; }
.callout.gold   { background: #fff9e9; border-color: #f0dca3; color: #765b31; }
.callout.navy   { background: #f1f5fa; border-color: #d4dfed; color: #334863; }
.callout.green  { background: #e9f8f0; border-color: #b6e3cb; color: #14684a; }
.callout.red    { background: #fdf0f0; border-color: #f3cccc; color: #9c2d2d; }

/* ------------------------------------------------------ بطاقات التواصل */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.contact-card {
  background: #fff;
  border: 1px solid #e2e7ef;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 35px #11263b0b;
  transition: .3s;
}

.contact-card:hover { transform: translateY(-5px); border-color: #d8b66d; }
.contact-card .ico { font-size: 26px; color: #bd9453; }
.contact-card h3 { margin: 10px 0 6px; font-size: 16px; color: #14243b; }
.contact-card p { margin: 0; font-size: 14px; color: #64748b; line-height: 1.9; }
.contact-card a { color: #9a783d; font-weight: 800; direction: ltr; display: inline-block; }

/* ------------------------------------------------------- صفحة التطبيق */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #101e31;
  color: #fff;
  border: 1px solid #ffffff22;
  border-radius: 13px;
  padding: 12px 22px;
  transition: .3s;
}

.store-badge:hover { border-color: var(--gold); transform: translateY(-3px); }
.store-badge .mark { font-size: 27px; color: var(--gold); line-height: 1; }
.store-badge small { display: block; color: #9daec5; font-size: 10px; }
.store-badge strong { display: block; font-size: 15px; font-weight: 800; }
.store-badge[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.perm-list { display: grid; gap: 12px; margin: 18px 0; }

.perm-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  background: #f8fafc;
  border: 1px solid #e2e8f1;
  border-radius: 13px;
  padding: 16px 18px;
}

.perm-item .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #d8b66d1f;
  color: #a87d39;
  border-radius: 11px;
  font-size: 20px;
}

.perm-item strong { display: block; color: #14243b; font-size: 15px; }
.perm-item p { margin: 3px 0 0; font-size: 13.5px; color: #64748b; line-height: 1.85; }

/* ------------------------------------------- إقرار عدم الصفة الحكومية */
.gov-disclaimer {
  background: #fff9e9;
  border: 1px solid #f0dca3;
  border-right: 5px solid #d8b66d;
  border-radius: 12px;
  padding: 16px 20px;
  color: #6f5529;
  font-size: 13.5px;
  line-height: 1.95;
  margin: 26px 0;
}

.foot-note {
  color: #8595aa;
  font-size: 11.5px;
  line-height: 1.9;
  max-width: 820px;
  margin-top: 14px;
}

@media (max-width: 720px) {
  .doc { padding: 22px 18px; border-radius: 16px; }
  .doc h2 { font-size: 19px; }
  .page-head { padding: 40px 0 36px; }
}

/* شبكة أمان: عناصر [data-reveal] تبدأ شفافة ويُظهرها الجافاسكربت.
   إن لم يعمل الجافاسكربت أصلاً، تظهر فوراً بدل أن تختفي للأبد. */
html:not(.js) [data-reveal] { opacity: 1; transform: none; }
