/* La page « Protection des données » (jalon J19) et la déclaration publique, d'après la maquette
   approuvée. Les couleurs viennent des jetons de la charte (--nsg-*) ; les conditions du passage
   se cochent ✓ ou ✗. */
.nsg-dp { display: grid; gap: var(--nsg-space); min-width: 0; }
.nsg-dp h3 { font-size: 16px; margin: 16px 0 6px; }
.nsg-dp code { font-size: 12px; overflow-wrap: anywhere; }
.nsg-dp .nsg-table-frame { overflow-x: auto; }
.nsg-dp .nsg-table td { vertical-align: top; }
.nsg-dp .nsg-table .nsg-status { white-space: normal; margin: 2px 0; }

/* L'état : quatre faits en grille, puis les conditions du passage. */
.nsg-dp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; }
.nsg-dp-facts p { margin: 2px 0; }
.nsg-dp-label { font-size: 12.5px; font-weight: 700; color: var(--nsg-muted); margin: 0; }
.nsg-dp-conditions { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; font-size: 14px; }
.nsg-dp-conditions li, .nsg-dp-gaps li { padding-left: 26px; position: relative; }
.nsg-dp-conditions li::before, .nsg-dp-gaps li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.nsg-dp-yes::before { content: "✓"; color: var(--nsg-tertiary-ink); }
.nsg-dp-no::before { content: "✗"; color: var(--nsg-error); }
.nsg-dp-gaps { display: inline; margin-left: 6px; }
.nsg-dp-gaps ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: 13px; }
.nsg-dp-gesture { display: grid; gap: 8px; justify-items: start; margin: 8px 0; }

/* Les faits du responsable et les incidents : un bloc chacun, le formulaire replié dessous. */
.nsg-dp-fact, .nsg-dp-incident { border-top: 1px solid var(--nsg-line); padding: 10px 0; }
.nsg-dp-fact:first-of-type, .nsg-dp-incident:first-of-type { border-top: 0; padding-top: 0; }
.nsg-dp-fact p, .nsg-dp-incident p { margin: 2px 0; }
.nsg-dp details > summary { cursor: pointer; color: var(--nsg-link); font-size: 13px; font-weight: 700; margin: 4px 0; }
.nsg-dp details > summary.nsg-btn { color: var(--nsg-text); list-style: none; display: inline-flex; margin-top: 8px; }
.nsg-dp details > summary.nsg-btn::-webkit-details-marker { display: none; }
.nsg-dp-form { margin: 8px 0 4px; padding: 12px; border: 1px solid var(--nsg-line); border-radius: var(--nsg-radius); background: var(--nsg-surface-2); }
.nsg-dp-row { border: 1px solid var(--nsg-line); border-radius: var(--nsg-radius-field); background: var(--nsg-surface); padding: 10px 12px 2px; margin: 0 0 8px; min-width: 0; display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.nsg-dp-row > button { justify-self: start; margin-bottom: 12px; }
.nsg-dp-fields { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.nsg-dp-boxes { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 0; border: 0; font-size: 14px; }
.nsg-dp-boxes legend { font-size: 13px; font-weight: 700; padding: 0; margin-bottom: 6px; width: 100%; }
.nsg-dp-box { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* L'historique, du plus récent au plus ancien. */
.nsg-dp-history { margin: 0 0 8px; padding-left: 28px; font-size: 13.5px; display: grid; gap: 6px; }

/* La déclaration publique : une page de lecture, en langage simple. */
.nsg-dp-declaration { max-width: 860px; width: 100%; justify-self: center; }
.nsg-dp-declaration h1 { font-size: 26px; margin: 4px 0 12px; }
.nsg-dp-declaration h2 { font-size: 18px; margin: 20px 0 6px; }
.nsg-dp-declaration p, .nsg-dp-declaration li { max-width: 72ch; }
.nsg-dp-declaration ul { padding-left: 20px; margin: 4px 0; }
.nsg-dp-foot { border-top: 1px solid var(--nsg-line); margin-top: 22px; padding-top: 10px; font-size: 13px; color: var(--nsg-muted); }
.nsg-dp-foot p { margin: 2px 0; }
.nsg-dp-foot code { font-size: 12px; overflow-wrap: anywhere; }
