/* الصفحات القانونية (resources/views/legal/): الخاص بيها فقط. المشترك في public/css/sections.css */

.legal-doc { max-width: 52rem; }
.legal-doc section { scroll-margin-top: 6rem; }
.legal-doc ul { padding-inline-start: 1.25rem; }
.legal-doc li { margin-bottom: 0.4rem; }

/* الفهرس: ثابت على الشاشات الكبيرة ويتحول لقائمة عادية على الموبايل */
.legal-toc { counter-reset: toc; }
.legal-toc a { display: block; padding: 0.3rem 0; color: var(--bs-body-color); text-decoration: none; font-size: 0.95rem; }
.legal-toc a:hover { color: var(--primary-500); text-decoration: underline; }
.legal-toc li::before { counter-increment: toc; content: counter(toc) ". "; color: var(--bs-secondary-color); }
.legal-toc li { display: flex; gap: 0.25rem; }

/* فهرس بدون ترقيم تلقائي (عناوين المقال فيها أرقامها بنفسها) */
.legal-toc--plain li::before { content: none; }
