/* ============ الخصوصية وحماية البيانات ============ */
.priv-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.priv-note .ic { width: 16px; height: 16px; color: var(--primary); }
.priv-card .card-head { flex-wrap: wrap; }
.priv-card .seg button { white-space: nowrap; }
.priv-card .li-title { white-space: normal; }
.priv-card .li > .switch, .priv-card .li > select, .priv-card .li > .pill { flex: none; }
.priv-type .ic { width: 15px; height: 15px; color: var(--primary); }
.priv-type b { font-size: 13px; font-weight: 600; }

/* خطوات الاستجابة */
.priv-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: flex; flex-direction: column; gap: 8px; }
.priv-steps li { counter-increment: st; position: relative; display: flex; flex-direction: column; gap: 1px; padding-inline-start: 38px; min-height: 28px; font-size: 13px; }
.priv-steps li::before { content: counter(st); position: absolute; inset-inline-start: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: 12px; }
.priv-steps li span { color: var(--muted); font-size: 12.5px; }
.priv-sub { margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.priv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.priv-src { margin: 12px 0 0; font-size: 11.5px; color: var(--faint); line-height: 1.6; }

/* ملخص سجل الوصول */
.priv-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.priv-mini > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.priv-mini b { font-size: 18px; }
.priv-mini span { font-size: 12px; color: var(--muted); }

/* الإطار التنظيمي */
.priv-law { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.priv-law > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-inline-start: 3px solid var(--primary); background: var(--surface-2); border-radius: 8px; font-size: 13px; min-width: 0; }
.priv-law span { color: var(--muted); font-size: 12.5px; }

/* نافذة التصدير */
.priv-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.priv-counts > div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; min-width: 0; }
.priv-counts b { min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 12px; }
.priv-counts .zero { color: var(--faint); }
.priv-counts .zero b { background: var(--surface-2); color: var(--faint); }

@media (max-width: 640px) {
  .priv-law { grid-template-columns: minmax(0, 1fr); }
  .priv-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .priv-mini b { font-size: 16px; }
}
