/* ============================================================
   BlockPulseNews Halal : pages légales (includes/legal-page.php)
   ============================================================ */

.lg-page { position: relative; z-index: 1; flex: 1 0 auto; padding: 2.2rem 0 4.5rem; }
.lg-shell { width: min(calc(100% - 2rem), 1120px); margin: 0 auto; display: flex; flex-direction: column; gap: 1.3rem; }
.lg-kicker { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.lg-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: var(--muted); }
.lg-crumbs a { color: var(--muted); text-decoration: none; }
.lg-crumbs a:hover { color: var(--accent-3); }
.lg-crumbs [aria-current] { color: var(--text); font-weight: 600; }

/* En-tête */
.lg-hero {
  display: flex; align-items: center; gap: 1.3rem; padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--bp-border); border-radius: var(--bp-radius-xl);
  background: radial-gradient(600px 240px at 0% 0%, rgba(16,185,129,.13), transparent 65%), linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: var(--bp-shadow), inset 0 1px 0 rgba(255,255,255,.05);
}
.lg-hero__icon { display: grid; place-items: center; flex: 0 0 64px; height: 64px; border-radius: 18px; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.3); font-size: 1.9rem; }
.lg-hero > div { flex: 1; min-width: 0; }
.lg-hero h1 { margin: 0 0 .35rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; line-height: 1.1; color: #fff; }
.lg-hero p { margin: 0 0 .5rem; color: var(--text); font-size: 1rem; line-height: 1.55; }
.lg-hero small { font-size: .8rem; color: var(--muted); }

.lg-admin { margin: 0; padding: .85rem 1rem; border-radius: 12px; border: 1px dashed rgba(245,158,11,.55); background: rgba(245,158,11,.08); color: #fde68a; font-size: .86rem; line-height: 1.5; }
.lg-admin code { padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.25); }

/* Onglets des pages légales */
.lg-tabs { display: flex; gap: .35rem; padding: .35rem; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--bp-border); border-radius: 14px; background: rgba(255,255,255,.02); }
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tabs a { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; padding: .55rem .9rem; border-radius: 10px; color: var(--muted); font-size: .86rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lg-tabs a:hover { color: #fff; background: rgba(255,255,255,.05); }
.lg-tabs a.is-active { color: #fff; background: rgba(16,185,129,.16); box-shadow: inset 0 -2px 0 var(--accent); }

/* Mise en page */
.lg-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.lg-toc { position: sticky; top: calc(var(--bp-header-h, 64px) + 16px); padding: 1rem; border: 1px solid var(--bp-border); border-radius: 18px; background: rgba(255,255,255,.02); }
.lg-toc ol { margin: .6rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.lg-toc a { display: block; padding: .45rem .6rem; border-radius: 9px; color: var(--muted); font-size: .84rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.lg-toc a:hover { color: #fff; background: rgba(255,255,255,.05); }
.lg-toc a.is-active { color: #fff; background: rgba(16,185,129,.14); box-shadow: inset 3px 0 0 var(--accent); }

.lg-content {
  min-width: 0; padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid var(--bp-border); border-radius: var(--bp-radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: var(--bp-shadow), inset 0 1px 0 rgba(255,255,255,.05);
  color: var(--text); font-size: .95rem; line-height: 1.7;
}
.lg-essentials { margin-bottom: 1.8rem; padding: 1.1rem 1.3rem; border-radius: 16px; border: 1px solid rgba(16,185,129,.3); background: rgba(16,185,129,.06); }
.lg-essentials h2 { margin: 0 0 .6rem; font-size: 1rem; font-weight: 800; color: #6ee7b7; }
.lg-essentials ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.lg-essentials li { position: relative; padding-left: 1.6rem; }
.lg-essentials li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--halal); font-weight: 900; }

.lg-section { padding-top: 1.4rem; margin-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.07); scroll-margin-top: calc(var(--bp-header-h, 64px) + 20px); }
.lg-essentials + .lg-section { margin-top: 0; border-top: 0; padding-top: 0; }
.lg-section h2 { margin: 0 0 .8rem; font-size: 1.18rem; font-weight: 800; color: #fff; }
.lg-section p { margin: 0 0 .85rem; }
.lg-section p:last-child { margin-bottom: 0; }
.lg-section ul { margin: 0 0 .85rem; padding-left: 1.2rem; }
.lg-section li { margin-bottom: .35rem; }
.lg-section a, .lg-contact a { color: var(--accent-3); font-weight: 600; }
.lg-section strong { color: #fff; }
.lg-section code { padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.07); font-size: .85em; }
.lg-note { padding: .75rem .9rem; border-radius: 11px; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.3); color: #fde68a; font-size: .88rem; }

/* Champ à compléter dans includes/legal.php */
.lg-todo { padding: .05rem .45rem; border-radius: 6px; background: rgba(245,158,11,.18); border: 1px dashed rgba(245,158,11,.6); color: #fde68a; font-size: .85em; font-weight: 700; }

/* Listes de définitions (identité, hébergeur) */
.lg-dl { margin: 0 0 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.lg-dl > div { padding: .65rem .85rem; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.lg-dl dt { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lg-dl dd { margin: .15rem 0 0; color: #fff; font-weight: 700; word-break: break-word; }

/* Tableaux */
.lg-table { margin: 0 0 1rem; overflow-x: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.lg-table table { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.55; }
.lg-table th { padding: .65rem .9rem; text-align: left; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.03); }
.lg-table td { padding: .7rem .9rem; vertical-align: top; border-top: 1px solid rgba(255,255,255,.06); }
.lg-table td small { color: var(--muted); }


.lg-contact { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.07); color: var(--muted); font-size: .88rem; }

@media (max-width: 900px) {
  .lg-layout { grid-template-columns: 1fr; }
  .lg-toc { position: static; }
  .lg-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .lg-page { padding: 14px 0 2rem; margin-top: calc(56px + env(safe-area-inset-top)); }
  .lg-hero { flex-wrap: wrap; align-items: flex-start; }
  .lg-hero__icon { flex-basis: 52px; height: 52px; font-size: 1.5rem; }
  .lg-toc { display: none; }   /* sur téléphone, le texte suit directement les onglets */
  .lg-dl { grid-template-columns: 1fr; }
  .lg-content { font-size: .92rem; }
}

/* Impression : texte seul, en noir sur blanc */
@media print {
  .bp-header, .m-topbar, .m-bottomnav, .m-bottombar-spacer, .site-footer, .lg-tabs, .lg-toc, .lg-admin, .lg-crumbs { display: none !important; }
  body { background: #fff !important; color: #000 !important; padding: 0 !important; }
  .lg-page { padding: 0; margin: 0; }
  .lg-hero, .lg-content, .lg-essentials, .lg-dl > div, .lg-table { background: none !important; border-color: #ccc !important; box-shadow: none !important; }
  .lg-layout { display: block; }
  .lg-hero h1, .lg-section h2, .lg-section strong, .lg-dl dd, .lg-essentials h2 { color: #000 !important; }
  .lg-content, .lg-hero p, .lg-table td, .lg-section a { color: #000 !important; }
}
.lg-content > .lg-section:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
