/* LMS_UNIFIED_LEGAL_PAGE_V1 — même largeur et typographie que le guide. */
html body .lms-legal-summary,
html body .lms-legal-document{width:100%;max-width:var(--lms-site-content-max,1180px);margin-left:auto;margin-right:auto;box-sizing:border-box}
html body .lms-legal-summary{margin-top:24px;margin-bottom:26px;padding:24px 26px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text)}
html body .lms-legal-summary-kicker{margin:0 0 8px;color:var(--accent);font-size:11px;letter-spacing:.1em;font-weight:650}
html body .lms-legal-summary>h2{margin:0 0 18px;font-size:clamp(18px,2.5vw,25px);font-weight:600;line-height:1.3}
html body .lms-legal-summary-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px}
html body .lms-legal-summary-links>a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;min-height:48px;border:1px solid var(--line);border-radius:9px;background:var(--bg);font-size:13px;font-weight:600;color:var(--text);text-decoration:none;transition:border-color .2s}
html body .lms-legal-summary-links>a:hover,
html body .lms-legal-summary-links>a:focus-visible{border-color:var(--accent);outline:1px solid var(--accent)}
html body .lms-legal-summary-links>a>span{color:var(--accent)}
html body .lms-legal-summary>p:last-child{margin:0;font-size:13px;line-height:1.7;color:var(--muted)}
html body .lms-legal-summary a:not(.lms-legal-summary-links>a){color:var(--accent)}
html body .lms-legal-document{display:grid;gap:26px;padding-bottom:24px}
html body .lms-legal-chapter{padding:26px 28px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);scroll-margin-top:85px}
html body .lms-legal-chapter-head{margin:0 0 24px;padding:0 0 18px;border-bottom:1px solid var(--line)}
html body .lms-legal-chapter-head>span{display:block;color:var(--accent);font-size:11px;font-weight:650;letter-spacing:.1em;margin-bottom:8px}
html body .lms-legal-chapter-head>h2{margin:0 0 8px;color:var(--text);font-size:clamp(21px,2.5vw,30px);line-height:1.25;font-weight:650}
html body .lms-legal-chapter-head>p{margin:0;font-size:14px;color:var(--muted);line-height:1.65}
html body .lms-legal-chapter>section{margin:0 0 22px;scroll-margin-top:92px}
html body .lms-legal-chapter>section>h3{margin:0 0 10px;color:var(--text);font-size:17px;font-weight:650;line-height:1.45}
html body .lms-legal-chapter>section>p,
html body .lms-legal-chapter>p{margin:0 0 12px;color:var(--text);font-size:14px;font-weight:400;line-height:1.85;overflow-wrap:anywhere}
html body .lms-legal-chapter>section strong{font-weight:650;color:var(--text)}
html body .lms-legal-chapter a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
html body .lms-legal-back{display:inline-flex;margin-top:6px;font-size:12px;text-decoration:none!important;font-weight:600}
html body .lms-legal-prices{margin:14px 0;border:1px solid var(--line);padding:13px 15px;border-radius:10px}
html body .lms-legal-prices>summary{cursor:pointer;font-weight:600;line-height:1.5}
html body .lms-legal-prices>h4{margin:18px 0 6px;font-size:14px}
html body .lms-legal-prices ul{margin:0;padding-left:20px;font-size:13px;line-height:1.75}
html body .lms-cookie-open-settings{padding:12px 17px;margin-top:3px;border-radius:9px;background:var(--accent);border:1px solid var(--accent);color:#fff;cursor:pointer;font-weight:600;font-size:13px}
html body .lms-cookie-open-settings:focus-visible{outline:2px solid var(--text);outline-offset:3px}
/* Accessible consent panel, no optional script is triggered by display alone. */
html body .lms-cookie-backdrop[hidden],html body .lms-cookie-dialog[hidden]{display:none!important}
html body .lms-cookie-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.44);z-index:20000}
html body .lms-cookie-dialog{position:fixed;z-index:20001;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(620px,calc(100vw - 28px));max-height:min(75vh,700px);overflow:auto;box-sizing:border-box;padding:22px 24px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 24px 70px rgba(0,0,0,.4);color:var(--text)}
html body .lms-cookie-dialog h2{font-size:20px;font-weight:650;margin:0 0 10px}
html body .lms-cookie-dialog p{font-size:13px;line-height:1.65;margin:0 0 14px}
html body .lms-cookie-dialog a{color:var(--accent)}
html body .lms-cookie-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
html body .lms-cookie-controls button{min-height:43px;border-radius:9px;border:1px solid var(--line);background:var(--bg);color:var(--text);font-size:13px;font-weight:600;cursor:pointer;padding:10px}
html body .lms-cookie-controls button[data-cookie-accept]{border-color:var(--accent);background:var(--accent);color:#fff}
html body .lms-cookie-controls button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html body .lms-cookie-choice-list{display:grid;gap:9px}
html body .lms-cookie-choice-list label{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5}
html body .lms-cookie-choice-list input{width:17px;height:17px;flex:none;accent-color:var(--accent)}
html body .lms-cookie-choice-list small{display:block;font-size:12px;color:var(--muted)}
@media(max-width:730px){
 html body .lms-legal-summary{padding:18px;margin-top:14px}
 html body .lms-legal-summary-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html body .lms-legal-chapter{padding:19px 17px}
 html body .lms-legal-document{gap:14px}
 html body .lms-legal-chapter>section>p,html body .lms-legal-chapter>p{font-size:13px;line-height:1.75}
 html body .lms-cookie-dialog{padding:17px 16px;bottom:max(10px,env(safe-area-inset-bottom))}
}
@media(max-width:385px){html body .lms-legal-summary-links{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){html body .lms-legal-summary-links>a{transition:none}}

/* Footer settings action preserves a link-like presentation. */
html body .lms-cookie-footer-button{
  display:inline-flex;align-items:center;padding:0;margin:0;
  color:inherit;background:transparent;border:0;text-decoration:underline;
  text-underline-offset:3px;font:inherit;cursor:pointer;
}
html body .lms-cookie-footer-button:is(:hover,:focus-visible){color:var(--accent);outline-offset:3px}
html body .lms-cookie-controls>a{display:flex;justify-content:center;align-items:center;
  text-decoration:underline;font-size:12px;color:var(--accent);text-align:center}

/* LMS_LEGAL_EDITORIAL_READABILITY_V5 — legal document, not text bricks. */
html body.lms-navigation-v2.page-shell main.legal-page{
  box-sizing:border-box!important;min-width:0!important;padding-left:clamp(16px,3vw,42px)!important;
  padding-right:clamp(16px,3vw,42px)!important;
}
html body.lms-navigation-v2.page-shell main.legal-page>.lms-legal-summary,
html body.lms-navigation-v2.page-shell main.legal-page>.lms-legal-document{
  width:100%!important;max-width:1080px!important;min-width:0!important;
  box-sizing:border-box!important;margin-inline:auto!important;
}
html body.lms-navigation-v2.page-shell main.legal-page>.lms-legal-summary{
  margin-block:26px 34px!important;padding:26px clamp(22px,4vw,44px)!important;
  border:1px solid var(--line)!important;border-radius:14px!important;
}
html body.lms-navigation-v2.page-shell main.legal-page>.lms-legal-document{
  display:block!important;margin-bottom:56px!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-document>.lms-legal-chapter{
  box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;
  margin:0!important;padding:38px clamp(24px,5vw,58px) 44px!important;
  border:0!important;border-top:1px solid var(--line)!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-document>.lms-legal-chapter:first-child{
  border-top:2px solid var(--accent)!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-chapter-head{
  padding:0 0 23px!important;margin:0 0 30px!important;border-bottom:1px solid var(--line)!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-chapter>section{
  display:block!important;box-sizing:border-box!important;max-width:100%!important;
  padding:0!important;margin:0 0 40px!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-chapter>section>h3{
  font-size:clamp(17px,1.6vw,21px)!important;line-height:1.4!important;
  font-weight:650!important;margin:0 0 16px!important;max-width:75ch!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-chapter p,
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-chapter li{
  font-size:15px!important;line-height:1.85!important;font-weight:400!important;
  letter-spacing:normal!important;word-spacing:normal!important;
  color:var(--text)!important;overflow-wrap:break-word!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-chapter p{
  max-width:82ch!important;margin:0 0 16px!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-chapter .lms-legal-subtitle{
  margin:26px 0 12px!important;font-size:15px!important;
  font-weight:650!important;color:var(--text)!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-rules-list{
  list-style:none!important;padding:0!important;margin:16px 0 26px!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px 24px!important;max-width:100%!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-rules-list>li{
  display:block!important;position:relative!important;margin:0!important;
  padding:12px 8px 12px 22px!important;border:0!important;
  border-bottom:1px solid var(--line)!important;border-radius:0!important;
  background:transparent!important;max-width:100%!important;
  font-size:13.5px!important;line-height:1.7!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-rules-list>li::before{
  content:""!important;position:absolute!important;top:23px!important;left:3px!important;
  width:7px!important;height:7px!important;border-radius:50%!important;background:var(--accent)!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-rules-list>li>strong{
  display:inline!important;font-weight:650!important;color:var(--text)!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-back{
  display:inline-flex!important;min-height:34px!important;align-items:center!important;
  font-size:13px!important;text-decoration:underline!important;
  text-underline-offset:4px!important;
}
html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-summary-links>a{
  min-height:51px!important;font-size:13px!important;padding:13px 16px!important;
}
@media(max-width:780px){
 html body.lms-navigation-v2.page-shell main.legal-page{
   padding-inline:16px!important;
 }
 html body.lms-navigation-v2.page-shell main.legal-page>.lms-legal-summary{
   padding:20px!important;margin-top:16px!important;margin-bottom:20px!important;
 }
 html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-document>.lms-legal-chapter{
   padding:28px 8px 34px!important;
 }
 html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-rules-list{
   grid-template-columns:minmax(0,1fr)!important;gap:3px!important;
 }
 html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-chapter>section{margin-bottom:31px!important}
 html body.lms-navigation-v2.page-shell main.legal-page .lms-legal-chapter p{
   font-size:14px!important;line-height:1.75!important;
 }
}
