/* ============================================================================
 * Privacy Policy — Scoped & Header-Safe
 * يعتمد على tokens العامة في style.css:
 *  --yg-bg | --yg-primary | --yg-key | --yg-text | --yg-muted | --yg-ring
 * ========================================================================== */
.yg-privacy{
  background: var(--yg-bg);
  color: var(--yg-text);
  direction: rtl;
}

/* Container خاص بالصفحة (بديل .container العام) */
.yg-privacy__container{
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px;
}

/* Typography */
.yg-privacy .yg-title{
  font-size: 24px;
  margin: 20px 0 8px;
  font-weight: 800;
  color: var(--yg-text);
  text-align: center;
}

.yg-privacy .yg-divider{
  width: 64px;
  height: 4px;
  border-radius: 6px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, var(--yg-key), var(--yg-primary));
}

.yg-privacy .lead{
  font-size: 16px;
  line-height: 1.9;
}

/* Sections */
.yg-privacy .yg-section-surface{
  background: var(--yg-surface, #fff);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 18px;
}

.yg-privacy .yg-section-alt{
  background: rgba(75,26,177,.04);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 18px;
}

/* Lists */
.yg-privacy ul.lead{
  margin: 0;
  padding-inline-start: 20px;
}
.yg-privacy ul.lead li{
  margin: 8px 0;
}

/* Links داخل النص */
.yg-privacy a{
  color: var(--yg-key);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(75,26,177,.25);
}
.yg-privacy a:hover{
  border-bottom-color: var(--yg-primary);
}

/* تحسين النصوص المتمركزة */
.yg-privacy .text-center{
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 480px){
  .yg-privacy__container{ margin: 16px auto; }
  .yg-privacy .yg-title{ font-size: 20px; }
  .yg-privacy .lead{ font-size: 15px; }
  .yg-privacy .yg-section-surface,
  .yg-privacy .yg-section-alt{ padding: 18px; }
}

/* Focus */
.yg-privacy a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(75,26,177,.22);
  border-radius: 6px;
}

/* Accordion (details/summary) */
.yg-privacy .yg-accordion{
  display: grid;
  gap: 12px;
}

.yg-privacy .yg-acc{
  background: var(--yg-surface, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  overflow: hidden;
}

.yg-privacy .yg-acc__btn{
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content:space-between;
  user-select: none;
}

.yg-privacy .yg-acc__btn::-webkit-details-marker{ display:none; }

/* سهم بسيط */
.yg-privacy .yg-acc__btn::after{
  content: "▾";
  font-size: 18px;
  line-height: 1;
  opacity: .8;
  transform: rotate(0deg);
  transition: transform .2s ease;
}

.yg-privacy .yg-acc[open] .yg-acc__btn::after{
  transform: rotate(180deg);
}

.yg-privacy .yg-acc__panel{
  padding: 0 16px 16px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.yg-privacy .yg-subtitle{
  font-size: 18px;
  margin: 16px 0 8px;
  font-weight: 900;
  text-align: start;
}
