/* ==========================================================================
   Eternal Primal — legal.css : informations légales et accord aux conditions (js/pages/legal.js, js/bienvenue.js)
   Classes préfixées « lgl- ». Sommaire : 1 pages légales · 2 accord (étape de bienvenue et fenêtre) · 3 bandeau · 4 pied de page
   ========================================================================== */

/* ------------------------------------------------------------ 1. pages légales (#/legal/…) */
.lgl-doc { max-width: 880px; }
.lgl-doc > .pi { padding: 32px 36px 26px; }
.lgl-intro { max-width: 720px; margin-bottom: 8px; font-size: 16px; line-height: 1.6; color: #D4D4D8; }
.lgl-sec { padding: 22px 0 4px; border-top: 1px solid rgba(255, 255, 255, .06); }
.lgl-intro + .lgl-sec, .lgl-export + .lgl-sec { border-top: 0; }
.lgl-sec h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.lgl-sec h3 .display { flex: none; font-size: 22px; letter-spacing: .04em; color: var(--red); }
.lgl-sec p, .lgl-sec li { font-size: 15px; line-height: 1.62; color: #C4C4CC; }
.lgl-sec p + p, .lgl-sec p + ul, .lgl-sec ul + p { margin-top: 10px; }
.lgl-sec ul { display: grid; gap: 7px; }
.lgl-sec li { position: relative; padding-left: 18px; }
.lgl-sec li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.lgl-doc b { color: #fff; font-weight: 700; }
.lgl-doc a { color: #F87171; text-decoration: underline; text-decoration-color: rgba(248, 113, 113, .4); text-underline-offset: 3px; transition: color .15s; }
.lgl-doc a:hover { color: #fff; text-decoration-color: var(--red); }
.lgl-doc a.btn { color: #fff; text-decoration: none; }
.lgl-dl { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); margin-top: 4px; border: 1px solid rgba(255, 255, 255, .07); }
.lgl-dl dt, .lgl-dl dd { padding: 9px 14px; font-size: 14.5px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.lgl-dl dt { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); background: rgba(255, 255, 255, .025); display: flex; align-items: center; }
.lgl-dl dd { color: #E4E4E7; overflow-wrap: anywhere; }
.lgl-dl dt:nth-last-of-type(1), .lgl-dl dd:last-child { border-bottom: 0; }
.lgl-sec p + .lgl-dl { margin-top: 12px; }
.lgl-dim { font-size: 14px; color: var(--dim); }
.lgl-ver { display: flex; align-items: center; gap: 8px; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.lgl-ver .ic { width: 14px; height: 14px; }
.lgl-note { display: flex; align-items: center; gap: 10px; max-width: 880px; margin-bottom: 14px; padding: 10px 14px; font-size: 14px; color: #FCD34D; border-left: 3px solid var(--amber); background: rgba(245, 158, 11, .08); }
.lgl-note .ic { flex: none; width: 17px; height: 17px; }
/* Tableau des cookies : défile en largeur sur petit écran */
.lgl-table { margin: 18px 0 6px; overflow-x: auto; border: 1px solid rgba(255, 255, 255, .08); }
.lgl-table:focus-visible { outline-offset: 0; }
.lgl-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.lgl-table th { padding: 10px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-align: left; text-transform: uppercase; color: var(--mute); background: rgba(255, 255, 255, .035); border-bottom: 1px solid var(--line); }
.lgl-table td { padding: 10px 12px; vertical-align: top; line-height: 1.5; color: #C4C4CC; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.lgl-table tr:last-child td { border-bottom: 0; }
.lgl-table td:first-child { white-space: nowrap; }
.lgl-table code { padding: 2px 6px; font: 600 12.5px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; color: #FCA5A5; background: rgba(220, 38, 38, .1); }
.lgl-table td:nth-child(2), .lgl-table td:nth-child(4) { white-space: nowrap; font-size: 13px; color: var(--mute); }
/* Télécharger mes données */
.lgl-export { display: flex; align-items: center; gap: 16px; margin: 18px 0 6px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); }
.lgl-export.on { border-color: rgba(220, 38, 38, .35); background: linear-gradient(90deg, rgba(220, 38, 38, .1), transparent 70%); }
.lgl-export > span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: var(--red); border: 1px solid rgba(220, 38, 38, .4); }
.lgl-export > span .ic { width: 19px; height: 19px; }
.lgl-export > div { flex: 1; min-width: 0; }
.lgl-export b { display: block; font-size: 15px; color: #fff; }
.lgl-export p { margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--mute); }
.lgl-down { transform: rotate(90deg); }
@media (max-width: 639px) {
  .lgl-doc > .pi { padding: 22px 16px 18px; }
  .lgl-dl { grid-template-columns: minmax(0, 1fr); }
  .lgl-dl dt { padding-bottom: 2px; border-bottom: 0; }
  .lgl-dl dd { padding-top: 2px; }
  .lgl-export { flex-wrap: wrap; }
  .lgl-export .btn { width: 100%; }
}

/* ------------------------------------------------------------ 2. accord aux conditions
   Dans la cinématique de bienvenue (.wl-text.lgl-wl) et dans la fenêtre bloquante (.lgl-gate) */
.lgl-points { display: grid; gap: 6px; margin-top: 18px; }
.lgl-points li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 14px; border-left: 3px solid var(--red); background: rgba(0, 0, 0, .46); }
.lgl-points li > .ic { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--red); }
.lgl-points b { display: block; font-size: 15px; color: #fff; }
.lgl-points span { display: block; margin-top: 1px; font-size: 14px; line-height: 1.45; color: #C4C4CC; }
.lgl-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--mute); }
.lgl-links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F87171; border-bottom: 1px solid rgba(248, 113, 113, .35); }
.lgl-links a:hover { color: #fff; border-color: #fff; }
.lgl-links .ic { width: 13px; height: 13px; }
.lgl-check { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 12px 14px; font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; cursor: pointer; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .5); transition: border-color .15s, background .15s; }
.lgl-check:hover { border-color: rgba(220, 38, 38, .6); }
.lgl-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lgl-box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: -1px; border: 2px solid rgba(255, 255, 255, .45); transition: .15s; }
.lgl-box .ic { width: 14px; height: 14px; opacity: 0; color: #fff; stroke-width: 3; }
.lgl-check input:checked + .lgl-box { border-color: var(--red); background: var(--red); }
.lgl-check input:checked + .lgl-box .ic { opacity: 1; }
.lgl-check:has(input:checked) { border-color: rgba(220, 38, 38, .7); background: rgba(220, 38, 38, .1); }
.lgl-check input:focus-visible + .lgl-box { outline: 2px solid var(--amber); outline-offset: 2px; }
.lgl-age { margin-top: 8px; font-size: 13px; color: var(--mute); }
.lgl-err { min-height: 20px; margin: 6px 0 4px; font-size: 14px; font-weight: 600; color: #F87171; }
.lgl-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.lgl-acts .btn:disabled { opacity: .5; }
.wl-text.lgl-wl { grid-column: 1 / -1; max-width: 1040px; }
.lgl-wl .lgl-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lgl-wl .lgl-points li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lgl-wl .lgl-check { max-width: 640px; }
@media (max-width: 899px), (max-height: 640px) { .lgl-wl .lgl-points { grid-template-columns: minmax(0, 1fr); } }
.wl-text.in .lgl-points li, .wl-text.in .lgl-links, .wl-text.in .lgl-check, .wl-text.in .lgl-acts { animation: wl-in .6s ease both; animation-delay: .45s; }
/* Fenêtre bloquante : joueur déjà inscrit qui n'a pas accepté la version en vigueur */
.lgl-gate { position: fixed; inset: 0; z-index: 72; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(5, 5, 6, .9); backdrop-filter: blur(3px); animation: fade .25s; }
.lgl-gate-box { width: 100%; max-width: 620px; margin: auto; animation: lgl-up .35s ease both; }
.lgl-gate-box .pi.pad { padding: 28px 28px 24px; }
.lgl-gate .kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.lgl-gate .kicker .ic { width: 15px; height: 15px; }
.lgl-gate h2 { margin-top: 10px; font-size: clamp(34px, 5vw, 50px); }
.lgl-lead { margin-top: 8px; font-size: 15px; line-height: 1.5; color: #D4D4D8; }
.lgl-gate .lgl-points li { background: rgba(255, 255, 255, .03); }
@keyframes lgl-up { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 639px) { .lgl-gate { padding: 10px; place-items: start center; } .lgl-gate-box .pi.pad { padding: 20px 16px 18px; } .lgl-acts .btn { flex: 1 1 100%; } }

/* ------------------------------------------------------------ 3. bandeau d'information (visiteur non connecté) */
.lgl-banner { position: fixed; left: 20px; bottom: 20px; z-index: 61; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; max-width: 720px; padding: 14px 16px; background: rgba(17, 12, 14, .97); border: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid var(--red); box-shadow: 0 20px 44px -12px #000; animation: lgl-up .4s ease both; transition: opacity .25s, transform .25s; }
.lgl-banner.out { opacity: 0; transform: translateY(12px); }
.lgl-banner p { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 380px; font-size: 13.5px; line-height: 1.45; color: #D4D4D8; }
.lgl-banner p .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--red); }
.lgl-banner > div { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lgl-more { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid rgba(161, 161, 170, .4); }
.lgl-more:hover { color: #fff; border-color: #fff; }
.lgl-banner .btn.sm { height: 32px; padding: 0 14px; font-size: 11px; }
@media (max-width: 1279px) { .lgl-banner { left: 10px; right: 10px; bottom: 70px; max-width: none; } }

/* ------------------------------------------------------------ 4. pied de page */
.lgl-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; max-width: 1280px; margin: 0 auto; padding: 0 20px 26px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lgl-foot a { color: var(--mute); transition: color .15s; }
.lgl-foot a:hover, .lgl-foot a[aria-current] { color: #fff; }
.lgl-foot a[aria-current] { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.lgl-foot i { font-style: normal; color: var(--dim); }
@media (max-width: 1279px) { .lgl-foot { padding-bottom: 80px; } }
