/* ==========================================================
   Fenêtre « Informations légales » (zerwyx.fr + doc.zerwyx.fr)
   Sombre par défaut, s'adapte au thème clair de la doc.
   ========================================================== */
.lg-backdrop {
  --lg-bg: #120f27; --lg-bar: #1a1636; --lg-side: #151230; --lg-line: #2b2550; --lg-text: #ece9f7; --lg-muted: #a39dc4; --lg-dim: #6f6893; --lg-acc: #ff2e93; --lg-link: #36c9f5;
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 4vh 16px;
  background: rgba(6, 5, 16, .62); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .18s;
  font-family: "Inter", "Manrope", system-ui, sans-serif;
}
[data-theme="light"] .lg-backdrop {
  --lg-bg: #ffffff; --lg-bar: #f6f6f9; --lg-side: #f9f9fb; --lg-line: #e7e7ec; --lg-text: #0e0f14; --lg-muted: #4b4d57; --lg-dim: #8a8c97; --lg-acc: #6a4cff; --lg-link: #5a3df0;
  background: rgba(15, 16, 20, .35);
}
.lg-backdrop.open { opacity: 1; pointer-events: auto; }
html.lg-lock { overflow: hidden; }
.lg-win { width: 100%; max-width: 920px; height: min(680px, 92vh); display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--lg-bg); border: 1px solid var(--lg-line); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .6); color: var(--lg-text); transform: translateY(10px) scale(.985); transition: transform .18s; }
.lg-backdrop.open .lg-win { transform: none; }
.lg-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 8px 0 14px; background: var(--lg-bar); border-bottom: 1px solid var(--lg-line); font-size: 13px; font-weight: 600; color: var(--lg-muted); }
.lg-dots { display: flex; gap: 7px; }
.lg-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lg-dots i:nth-child(2) { background: #febc2e; } .lg-dots i:nth-child(3) { background: #28c840; }
.lg-x { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--lg-muted); font-size: 14px; cursor: pointer; }
.lg-x:hover { background: var(--lg-line); color: var(--lg-text); }
.lg-main { flex: 1; display: grid; grid-template-columns: 210px 1fr; min-height: 0; }
.lg-tabs { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--lg-side); border-right: 1px solid var(--lg-line); }
.lg-tabs button { text-align: left; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--lg-muted); font-family: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer; }
.lg-tabs button:hover { color: var(--lg-text); background: var(--lg-line); }
.lg-tabs button.on { color: var(--lg-text); background: var(--lg-line); box-shadow: inset 2px 0 0 var(--lg-acc); }
.lg-page { display: flex; flex-direction: column; min-height: 0; }
.lg-head { padding: 22px 30px 6px; }
.lg-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.lg-content { flex: 1; overflow-y: auto; padding: 6px 30px 24px; font-size: 14.5px; line-height: 1.7; color: var(--lg-muted); scrollbar-width: thin; scrollbar-color: var(--lg-line) transparent; }
.lg-content h3 { font-size: 15px; font-weight: 650; color: var(--lg-text); margin: 22px 0 6px; }
.lg-content p, .lg-content ul { margin: 0 0 12px; }
.lg-content ul { padding-left: 20px; }
.lg-content li { margin: 5px 0; }
.lg-content b { color: var(--lg-text); font-weight: 600; }
.lg-content a { color: var(--lg-link); text-decoration: underline; text-underline-offset: 3px; }
.lg-content code { font: 12.5px "JetBrains Mono", ui-monospace, monospace; padding: 1px 6px; border-radius: 5px; background: var(--lg-line); color: var(--lg-text); }
.lg-lead { margin-top: 10px !important; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--lg-line); background: var(--lg-side); color: var(--lg-text); }
.lg-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.lg-table th { text-align: left; color: var(--lg-text); font-weight: 600; background: var(--lg-side); }
.lg-table th, .lg-table td { padding: 9px 10px; border: 1px solid var(--lg-line); vertical-align: top; }
.lg-foot { padding: 10px 30px; border-top: 1px solid var(--lg-line); font-size: 12px; color: var(--lg-dim); }
.lg-links { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
@media (max-width: 720px) {
  .lg-main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .lg-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--lg-line); padding: 8px; scrollbar-width: none; }
  .lg-tabs button { white-space: nowrap; }
  .lg-tabs button.on { box-shadow: inset 0 -2px 0 var(--lg-acc); }
  .lg-head, .lg-content, .lg-foot { padding-left: 18px; padding-right: 18px; }
  .lg-table { display: block; overflow-x: auto; }
}
