/* تنسيق الصفحات القانونيّة — مشترك بين terms و privacy و payment-policy
   و editorial-policy. كان منسوخاً في الأربع، فرُفع إلى ملفّ واحد يُحمَّل
   عبر componentCss. 2026-09-14 */

.lg-hero { background: var(--cream); padding-block: calc(var(--nav-h) + clamp(40px, 5vw, 64px)) clamp(32px, 4vw, 48px); }
.lg-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.lg-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1.2; margin-block-end: 14px; }
.lg-hero p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; color: var(--text-soft); margin-block-end: 20px; }
.lg-meta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--text-soft); padding-block-start: 16px; border-block-start: 1px solid var(--border); margin-block-start: 8px; }
.lg-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lg-meta strong { color: var(--text); font-weight: 600; }
.lg-meta svg { width: 14px; height: 14px; color: var(--olive-dark); }
.lg-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--olive-tint); border: 1px solid var(--olive); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--olive-dark); margin-block-end: 24px; }
.lg-badge svg { width: 14px; height: 14px; }
.lg-body { background: var(--white); }
.lg-layout { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 48px); max-width: 1080px; margin: 0 auto; }
@media (min-width: 1024px) { .lg-layout { grid-template-columns: 240px 1fr; } }
.lg-toc { font-size: 14px; }
.lg-toc-title { font-size: 13px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; margin-block-end: 12px; padding-block-end: 8px; border-block-end: 1px solid var(--border); }
.lg-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.lg-toc a { display: block; padding: 8px 12px; color: var(--text-soft); text-decoration: none; border-radius: 8px; font-size: 13.5px; line-height: 1.5; transition: background 160ms var(--ease-out-quart), color 160ms var(--ease-out-quart); }
.lg-toc a:hover { background: var(--bg-section); color: var(--olive-dark); }
@media (min-width: 1024px) { .lg-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; } }
.lg-content { max-width: 720px; }
.lg-content h2 { font-size: clamp(23px, 2.8vw, 32px); font-weight: 600; line-height: 1.3; margin-block: 40px 14px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.lg-content h2:first-child { margin-block-start: 0; }
.lg-content h3 { font-size: clamp(18px, 1.9vw, 20px); font-weight: 600; line-height: 1.4; margin-block: 24px 10px; color: var(--text); }
.lg-content p { font-size: 16px; line-height: 1.85; color: var(--text); margin-block-end: 14px; }
.lg-content ul, .lg-content ol { padding-inline-start: 24px; margin-block-end: 16px; }
.lg-content li { font-size: 16px; line-height: 1.85; color: var(--text); margin-block-end: 8px; }
.lg-content a { color: var(--olive-dark); font-weight: 600; text-decoration: none; border-block-end: 1px solid transparent; transition: border-color 120ms var(--ease-out-quart); }
.lg-content a:hover { border-block-end-color: var(--olive-dark); }
.lg-content strong { color: var(--text); font-weight: 600; }
.lg-callout { background: var(--bg-soft); border-block-start: 3px solid var(--olive); border-radius: 12px; padding: 20px 22px; margin-block: 20px; }
.lg-callout h4 { font-size: 14px; font-weight: 600; color: var(--olive-dark); text-transform: uppercase; letter-spacing: 0.04em; margin-block-end: 8px; }
.lg-callout p { font-size: 14px; margin: 0; line-height: 1.75; }
.lg-callout.warn { background: #FFF8E7; border-block-start-color: var(--warning); }
.lg-callout.warn h4 { color: #8A6018; }
.lg-contact { background: var(--bg-section); }
.lg-contact-card { max-width: 720px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: clamp(28px, 4vw, 40px); text-align: center; }
.lg-contact-card h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; margin-block-end: 14px; }
.lg-contact-card p { font-size: 15px; color: var(--text-soft); margin-block-end: 24px; line-height: 1.7; }
.lg-contact-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* صفّ التواصل — يستعمله privacy و editorial-policy فقط، وأُبقي هنا
   لأن الملف يُحمَّل على الأربع ولا ضرر من قواعد بلا عناصر. */
.lg-contact-rows { display: flex; flex-direction: column; gap: 14px; }
.lg-contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--bg-soft); border-radius: 12px; }
.lg-contact-row svg { width: 18px; height: 18px; color: var(--olive-dark); flex-shrink: 0; }
.lg-contact-row .lbl { font-size: 13px; color: var(--text-soft); display: block; }
.lg-contact-row .val { font-size: 14px; font-weight: 500; color: var(--text); font-feature-settings: "tnum"; }
.lg-contact-row a { color: var(--text); text-decoration: none; }
.lg-contact-row a:hover { color: var(--olive-dark); }
