/* Legal pages: contained, readable typography; existing brand styles are preserved. */
.legal-page .page-hero { padding-top: 42px; padding-bottom: 36px; }
.legal-page .page-hero h1 { font-size: clamp(2.3rem, 4.7vw, 4rem); font-weight: 400; line-height: 1.08; max-width: 960px; margin-bottom: 22px; }
.legal-page .page-hero .lead { font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 750px; line-height: 1.7; }
.legal-page .byline { font-size: .8rem; }
.legal-page .article-layout { padding-top: 22px; padding-bottom: 52px; gap: 6%; grid-template-columns: minmax(185px, 230px) minmax(0, 800px); }
.legal-page .article-content { min-width: 0; font-size: 1rem; line-height: 1.78; }
.legal-page .article-content section { margin-bottom: 46px; scroll-margin-top: 125px; }
.legal-page .article-content h2 { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 400; line-height: 1.28; letter-spacing: -.015em; margin-bottom: 18px; }
.legal-page .article-content p { margin: 0 0 16px; color: var(--ink); }
.legal-page .article-content li { margin-bottom: 12px; }
.legal-page .article-content ul { padding-left: 22px; }
.legal-page .article-content a:not(.btn), .contact-privacy a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #81978b; overflow-wrap: anywhere; }
.legal-page .article-content strong { font-weight: 600; }
.legal-placeholder { background: #eef3eb; color: #304d40; padding: 1px 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; overflow-wrap: anywhere; }
.legal-notice { max-width: 800px; margin-top: 22px; padding: 16px 19px; border-left: 2px solid #91ac97; background: #f6f8f5; font-size: .85rem; line-height: 1.65; color: #455d50; }
.legal-page .article-nav { max-height: calc(100dvh - 160px); overflow-y: auto; top: 120px; }
.legal-page .article-nav summary { cursor: pointer; padding: 12px 0; font-size: .85rem; color: var(--ink); }
.legal-page .article-nav a { padding: 10px 0; font-size: .81rem; line-height: 1.5; min-height: 44px; }
.legal-details { margin: 24px 0; }
.legal-details dt { font-size: .81rem; color: var(--muted); margin-top: 18px; }
.legal-details dd { margin: 3px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.legal-table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .87rem; line-height: 1.65; text-align: left; table-layout: fixed; }
.legal-table caption { text-align: left; padding: 14px 16px; color: var(--muted); font-size: .78rem; }
.legal-table th, .legal-table td { vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.legal-table thead th { background: #f1f5ef; font-weight: 600; }
.legal-table tbody th { font-weight: 500; width: 26%; }
.legal-page :focus-visible { outline: 2px solid #426951; outline-offset: 4px; }
.cookie-panel { width: min(550px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 26px; box-sizing: border-box; }
.cookie-panel h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); line-height: 1.2; margin-bottom: 18px; }
.cookie-panel p { font-size: .92rem; }
.cookie-panel .actions { flex-wrap: wrap; gap: 15px; }
.cookie-panel .btn { max-width: 100%; min-width: 0; white-space: normal; font-size: .8rem; }
.cookie-panel a { text-decoration: underline; text-underline-offset: 4px; }
.contact-privacy { max-width: 750px; }
@media (max-width: 850px) {
  .legal-page .article-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .legal-page .article-nav { position: static; max-height: none; border-block: 1px solid var(--line); }
  .legal-page .article-nav summary { padding-block: 15px; }
  .legal-page .article-nav nav { padding-bottom: 15px; }
  .legal-page .page-hero { padding-top: 30px; padding-bottom: 18px; }
}
@media (max-width: 560px) {
  .legal-page .article-content { font-size: .96rem; }
  .legal-page .article-content section { scroll-margin-top: 105px; }
  .legal-table { min-width: 520px; font-size: .85rem; }
  .legal-table-wrap::before { content: 'Faites glisser le tableau pour le lire →'; display: block; padding: 10px 14px; font-size: .73rem; color: var(--muted); background: #fafbf8; }
  .legal-notice { padding: 14px; }
  .cookie-panel { padding: 20px; }
}
@media print {
  header, .footer, .legal-page .breadcrumb, .legal-page .article-nav, dialog { display: none !important; }
  .legal-page .wrap { max-width: none; padding: 0; }
  .legal-page .article-layout { display: block; }
  .legal-page .page-hero h1 { font-size: 25pt; }
  .legal-page .article-content { font-size: 10pt; line-height: 1.5; }
  .legal-page .article-content h2 { font-size: 15pt; break-after: avoid; }
  .legal-table-wrap { overflow: visible; }
  .legal-table { min-width: 0; font-size: 9pt; }
  .legal-table tr, .legal-details dt { break-inside: avoid; }
}
