/* Documents juridiques : lecture continue et sommaire accessible. */
.ms-legal { color:#3F424B; }
.ms-legal-breadcrumb { padding-bottom:24px !important; }
.ms-legal-hero { background:#F8F5E7; padding:64px 44px 56px; }
.ms-legal-hero-inner { max-width:1192px; margin:auto; }
.ms-legal-eyebrow { margin:0 0 24px; font-size:11px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; }
.ms-legal h1 { margin:0; font-family:'Outfit',sans-serif; font-size:clamp(38px,5.2vw,68px); font-weight:300; line-height:1.08; letter-spacing:-.035em; }
.ms-legal-meta { display:flex; flex-wrap:wrap; gap:12px 32px; margin-top:28px; font-size:13px; line-height:1.6; color:#63656c; }
.ms-legal-other { display:inline-flex; align-items:center; gap:22px; border-bottom:1px solid #3f424b50; padding:8px 0; margin-top:24px; font-size:14px; }
.ms-legal-other:hover { border-color:#3F424B; }
.ms-legal-layout { max-width:1280px; margin:0 auto; padding:64px 44px 88px; display:grid; grid-template-columns:240px minmax(0,760px); gap:clamp(40px,6vw,100px); justify-content:space-between; align-items:start; }
.ms-legal-sidebar { position:sticky; top:112px; }
.ms-legal-nav-label { margin:0 0 20px; font-size:11px; letter-spacing:.16em; text-transform:uppercase; font-weight:500; }
.ms-legal-nav { display:flex; flex-direction:column; gap:2px; max-height:calc(100dvh - 180px); overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#3f424b35 transparent; }
.ms-legal-nav a { display:grid; grid-template-columns:23px 1fr; gap:10px; align-items:baseline; padding:7px 4px; font-size:12.5px; line-height:1.45; color:#62646c; border-radius:4px; transition:background .2s,color .2s; }
.ms-legal-nav a span { font-size:10px; color:#83858a; font-variant-numeric:tabular-nums; }
.ms-legal-nav a:hover { background:#FEF6A6; color:#3F424B; }
.ms-legal a:focus-visible { outline:2px solid #4574BA; outline-offset:4px; }
.ms-legal-section { scroll-margin-top:112px; padding:0 0 36px; margin:0 0 36px; border-bottom:1px solid #3f424b22; }
.ms-legal-section h2 { display:flex; gap:16px; align-items:baseline; margin:0 0 20px; font-family:'Outfit',sans-serif; font-size:25px; font-weight:400; line-height:1.25; letter-spacing:-.015em; }
.ms-legal-number { flex:none; font-size:12px; font-weight:400; letter-spacing:.03em; color:#4574BA; }
.ms-legal-section p { margin:0 0 16px; font-size:16px; line-height:1.8; font-weight:300; overflow-wrap:anywhere; }
.ms-legal-section p:last-child { margin-bottom:0; }
.ms-legal-top { display:flex; justify-content:space-between; align-items:center; font-size:13px; padding:4px 0; }
.ms-legal-mobile-toc { display:none; }
@media(max-width:900px) {
  .ms-legal-layout { grid-template-columns:190px minmax(0,1fr); gap:32px; padding-left:28px; padding-right:28px; }
  .ms-legal-section h2 { font-size:23px; }
}
@media(max-width:760px) {
  .ms-legal-breadcrumb { padding:22px 20px !important; }
  .ms-legal-hero { padding:42px 20px 36px; }
  .ms-legal-eyebrow { font-size:10px; letter-spacing:.13em; margin-bottom:20px; }
  .ms-legal-meta { flex-direction:column; gap:6px; margin-top:22px; font-size:12px; }
  .ms-legal-layout { display:block; padding:28px 20px 56px; }
  .ms-legal-sidebar { display:none; }
  .ms-legal-mobile-toc { display:block; margin-bottom:36px; border-top:1px solid #3f424b30; border-bottom:1px solid #3f424b30; }
  .ms-legal-mobile-toc summary { display:flex; align-items:center; justify-content:space-between; cursor:pointer; list-style:none; padding:17px 0; font-size:14px; }
  .ms-legal-mobile-toc summary::-webkit-details-marker { display:none; }
  .ms-legal-mobile-toc[open] summary span { transform:rotate(45deg); }
  .ms-legal-mobile-toc nav { max-height:none; overflow:visible; padding-bottom:16px; }
  .ms-legal-mobile-toc nav a { font-size:13px; padding:9px 0; }
  .ms-legal-section { padding:0 0 28px !important; margin-bottom:28px; scroll-margin-top:84px; }
  .ms-legal-section h2 { font-size:22px; gap:12px; margin-bottom:16px; }
  .ms-legal-section p { font-size:15px; line-height:1.75; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .ms-legal-nav a { transition:none; } }
@media print {
  header,footer,.ms-legal-breadcrumb,.ms-legal-sidebar,.ms-legal-mobile-toc,.ms-legal-other,.ms-legal-top { display:none !important; }
  .ms-legal-hero { background:none; padding:0 0 24px; }
  .ms-legal-layout { display:block; padding:0; }
  .ms-legal-section { break-inside:auto; margin-bottom:20px; padding-bottom:20px; }
  .ms-legal-section h2 { break-after:avoid; }
  .ms-legal-section p { font-size:11pt; }
  body { padding:0 !important; }
}
.ms-legal-section ul { margin:0 0 20px; padding-left:21px; }
.ms-legal-section li { padding-left:5px; margin-bottom:9px; font-size:16px; line-height:1.8; font-weight:300; }
.ms-legal-section li::marker { color:#4574BA; font-size:.7em; }
@media(max-width:760px) { .ms-legal-section li { font-size:15px; line-height:1.75; } }
@media print { .ms-legal-section li { font-size:11pt; } }
