/* Pages légales publiques (politique de confidentialité). Complète domaines/domain-page.css et shared/public-header.css. */
.legal-body { background: var(--canvas, #f5f7fa); }

.legal-hero { background: linear-gradient(125deg, #061b31, #0e3455); color: #fff; }
.legal-hero-inner { width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 clamp(34px, 5vw, 56px); }
.legal-eyebrow { margin: 0 0 12px; color: #4edbce; font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.legal-hero h1 { margin: 0; font-family: Montserrat, Inter, system-ui, sans-serif; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; text-transform: none; }
.legal-lead { max-width: 820px; margin: 18px 0 0; color: #c9dceb; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.7; }
.legal-updated { display: inline-block; margin: 20px 0 0; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; font-size: .85rem; font-weight: 600; }

.legal-layout { width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 72px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }

.legal-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 18px 14px; border: 1px solid var(--line, #dbe4ed); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm, 0 8px 24px rgba(6, 23, 42, .07)); }
.legal-toc h2 { margin: 0 0 10px; color: #061b31; font-family: Montserrat, Inter, sans-serif; font-size: 1rem; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; border-bottom: 1px solid var(--line-soft, #eaf0f5); }
.legal-toc li:last-child { border-bottom: 0; }
.legal-toc a { display: flex; gap: 8px; padding: 8px 0; color: #4a5d72; font-size: .88rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.legal-toc a::before { content: counter(toc) "."; flex: 0 0 1.7em; color: #0871d5; font-weight: 800; }
.legal-toc a:hover { color: #0871d5; }

.legal-content { min-width: 0; max-width: 940px; padding: clamp(20px, 3.4vw, 40px); border: 1px solid var(--line, #dbe4ed); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm, 0 8px 24px rgba(6, 23, 42, .07)); line-height: 1.75; }
.legal-content p, .legal-content li { color: #26384c; font-size: 1rem; }
.legal-content p { margin: .7em 0; }
.legal-content ul { margin: .7em 0; padding-left: 1.3em; }
.legal-content li { margin: .4em 0; }
.legal-content a { color: #0764c0; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal-content a:hover { color: #061b31; }
.legal-content strong { color: #10243b; }

.legal-summary { margin: 0 0 8px; padding: 18px 20px; border: 1px solid #bfe9e4; border-left: 5px solid #14b8a6; border-radius: 14px; background: #effcfa; }
.legal-summary h2 { margin: 0 0 6px; color: #061b31; font-family: Montserrat, Inter, sans-serif; font-size: 1.1rem; }
.legal-summary ul { margin: .4em 0 0; }

.legal-section { padding: 28px 0 6px; border-bottom: 1px solid var(--line-soft, #eaf0f5); scroll-margin-top: 20px; }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; color: #061b31; font-family: Montserrat, Inter, sans-serif; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.25; }
.legal-number { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: #0b1e36; color: #fff; font-size: .9rem; }
.legal-section h3 { margin: 22px 0 4px; color: #10243b; font-size: 1.04rem; }

.legal-callout { margin: 14px 0; padding: 16px 18px; border: 1px solid #cfe0f1; border-left: 5px solid #0871d5; border-radius: 12px; background: #f3f8fe; }
.legal-callout strong { display: block; margin-bottom: 2px; }
.legal-callout p { margin: .3em 0 0; }

.legal-cards, .legal-providers { display: grid; gap: 14px; margin: 14px 0; }
.legal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legal-providers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.legal-card { padding: 16px 18px; border: 1px solid var(--line, #dbe4ed); border-radius: 14px; background: #f9fbfd; }
.legal-card h3 { margin: 0 0 6px; color: #061b31; font-size: 1rem; }
.legal-card p { margin: 0; font-size: .93rem; line-height: 1.6; }

.legal-contact { padding-bottom: 8px; }
.legal-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-top: 8px; padding: 0 22px; border-radius: 12px; background: #0871d5; color: #fff !important; font-weight: 800; text-decoration: none !important; }
.legal-button:hover { background: #075db5; }

@media (max-width: 1024px) {
  .legal-providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
}
@media (max-width: 640px) {
  .legal-hero-inner, .legal-layout { width: calc(100% - 32px); }
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-cards, .legal-providers { grid-template-columns: 1fr; }
  .legal-content { border-radius: 14px; padding: 18px 16px; }
  .legal-section h2 { align-items: flex-start; }
  .legal-button { width: 100%; }
}
@media print {
  .ima-site-header, .site-footer, .legal-toc { display: none; }
  .legal-hero { background: none; color: #000; }
  .legal-hero-inner { width: 100%; padding: 0 0 12px; }
  .legal-lead, .legal-eyebrow, .legal-updated { color: #000; border-color: #000; }
  .legal-content { border: 0; box-shadow: none; padding: 0; }
}
