/* DPA et sous-traitants (inc/legal-docs.php) */

.legal-gate { max-width: 640px; margin: 0 auto; padding: 2rem; border: 1px solid rgba(15,23,42,.08); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -24px rgba(15,23,42,.18); }
.legal-gate-intro { margin: 0 0 1.5rem; font-size: 1.0625rem; line-height: 1.65; color: #0F172A; }
.legal-gate-form label { display: block; margin-bottom: .5rem; font-weight: 600; color: #0F172A; }
.legal-gate-row { display: flex; gap: .75rem; }
.legal-gate-row input { flex: 1 1 auto; min-width: 0; padding: .8rem 1rem; border: 1.5px solid rgba(15,23,42,.18); border-radius: 12px; font: inherit; font-size: 1rem; }
.legal-gate-row input:focus { outline: none; border-color: #2B9FE8; box-shadow: 0 0 0 3px rgba(43,159,232,.18); }
.legal-gate-row input.is-invalid { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.legal-gate-row button { flex: none; border: 0; cursor: pointer; }
.legal-gate-row button:disabled { opacity: .6; cursor: default; }
.legal-gate-msg { margin: .75rem 0 0; color: #B91C1C; font-weight: 600; }
.legal-gate-msg:empty { display: none; }
.legal-gate-personal { margin: .75rem 0 0; font-size: .9375rem; color: #334155; }
.legal-gate-personal.is-on { padding: .75rem 1rem; border-radius: 12px; background: #FEF2F2; color: #7F1D1D; }
.legal-gate-notice { margin: 1.25rem 0 0; font-size: .875rem; line-height: 1.55; color: #64748B; }
.legal-gate a, .legal-history a { color: #2B7DE9; }

.legal-pdf { margin: 2.5rem 0 0; }
.legal-history { margin-top: 3rem; }
.legal-history table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal-history th, .legal-history td { padding: .65rem .75rem; border-bottom: 1px solid rgba(15,23,42,.08); text-align: left; vertical-align: top; }
.legal-history th { font-weight: 600; color: #0F172A; }

@media (max-width: 600px) {
    .legal-gate { padding: 1.25rem; }
    .legal-gate-row { flex-direction: column; }
    .legal-gate-row button { width: 100%; justify-content: center; }
}

/* Tableaux du DPA et de la liste : défilement horizontal sur petit écran plutôt qu'un débordement de page */
.simple-article .legal-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.simple-article .legal-table table { margin: 0; min-width: 560px; }
