/* Pages légales (widget « Page légale ») : pleine largeur du site (.pad), valeurs reprises du thème. Aucune animation. */
.m500-legal{counter-reset:lg-sec;padding-block:48px 88px;color:var(--ink);overflow-wrap:break-word}
.m500-legal .lg-k{font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--acc-2)}
.m500-legal .lg-title{margin-top:10px;font:800 clamp(34px,5vw,60px)/1.02 var(--m500-display);letter-spacing:-.03em;color:var(--ink)}
.m500-legal .lg-lead{margin-top:14px;max-width:60ch;font-size:clamp(16px,1.4vw,19px);line-height:1.55;color:var(--muted)}

/* Sections */
.m500-legal .lg-main{margin-top:40px}
.m500-legal .lg-sec{padding:28px 0;border-top:1px solid var(--line);scroll-margin-top:96px}
.m500-legal .lg-sec h2{display:flex;align-items:baseline;gap:12px;margin-bottom:14px;font:800 clamp(22px,2.2vw,28px)/1.15 var(--m500-display);letter-spacing:-.02em;color:var(--ink)}
.m500-legal.lg-num .lg-sec h2{counter-increment:lg-sec}
.m500-legal.lg-num .lg-sec h2::before{content:counter(lg-sec,decimal-leading-zero);font-size:.62em;font-weight:800;letter-spacing:.06em;color:var(--acc-2)}
.m500-legal .lg-txt h3{margin:22px 0 8px;font-size:17px;font-weight:700;color:var(--ink)}
.m500-legal .lg-txt h3:first-child{margin-top:0}
.m500-legal .lg-txt p,.m500-legal .lg-txt li{font-size:16px;line-height:1.7;color:color-mix(in srgb,var(--ink) 80%,transparent)}
.m500-legal .lg-txt>*+*{margin-top:12px}
.m500-legal .lg-txt ul li,.m500-legal .lg-txt ol li{position:relative;padding-left:20px}
.m500-legal .lg-txt li+li{margin-top:6px}
.m500-legal .lg-txt ul li::before{content:"";position:absolute;left:2px;top:.8em;width:8px;height:2px;background:var(--acc)}
.m500-legal .lg-txt ol{counter-reset:lg-ol}
.m500-legal .lg-txt ol li{counter-increment:lg-ol}
.m500-legal .lg-txt ol li::before{content:counter(lg-ol) ".";position:absolute;left:0;font-weight:700;color:var(--acc-2)}
.m500-legal .lg-txt strong{color:var(--ink)}
.m500-legal .lg-txt em{color:var(--muted)}
.m500-legal .lg-txt a{color:var(--acc-2);text-underline-offset:3px}

/* Tableaux : style du tableau comparatif */
.m500-legal .lg-txt table{width:100%;border-collapse:collapse;font-size:15px}
.m500-legal .lg-txt th{padding:10px 12px;border-bottom:2px solid var(--line);text-align:left;font-size:13px;font-weight:800;letter-spacing:.04em;color:var(--muted)}
.m500-legal .lg-txt td{padding:12px;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.5;color:color-mix(in srgb,var(--ink) 82%,transparent)}
.m500-legal .lg-txt td:first-child{font-weight:600;color:var(--ink)}

/* Liens vers les pages légales : pastilles des épisodes, tout en bas */
.m500-legal .lg-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:40px;padding-top:28px;border-top:1px solid var(--line)}
.m500-legal .lg-tabs a{display:inline-flex;align-items:center;min-height:38px;padding:0 16px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:14px;font-weight:600;text-decoration:none;transition:background-color .2s,color .2s}
.m500-legal .lg-tabs a:hover{background:var(--line);color:var(--ink)}
.m500-legal .lg-tabs a.on{background:var(--ink);color:var(--bg)}
.m500-legal a:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* Encadré final : panneau rouge « Avec moi » */
.m500-legal .lg-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;margin-top:20px;padding:26px 28px;border-radius:16px;background:linear-gradient(140deg,var(--acc),#8a0610);color:#fff}
.m500-legal .lg-cta-t{font:800 clamp(20px,2vw,26px)/1.15 var(--m500-display);color:#fff}
.m500-legal .lg-cta p+p{margin-top:6px;color:rgba(255,255,255,.9);font-size:15px}
html[data-mode=light] .m500-legal .lg-cta .btn-play{background:#fff;color:#000}

@media (max-width:640px){
  .m500-legal{padding-block:32px 64px}
  .m500-legal .lg-txt table,.m500-legal .lg-txt tbody,.m500-legal .lg-txt tr,.m500-legal .lg-txt td{display:block}
  .m500-legal .lg-txt thead{display:none}
  .m500-legal .lg-txt tr{padding:12px 0;border-bottom:1px solid var(--line)}
  .m500-legal .lg-txt td{padding:2px 0;border:0}
  .m500-legal .lg-cta{padding:22px}
  .m500-legal .lg-cta .btn{width:100%}
}
