/* Pages de texte (confidentialité, conditions, aide) : lecture confortable sur téléphone et ordinateur, impression propre. */
main.doc { max-width: 780px; margin: 0 auto; padding: 32px 22px 72px; line-height: 1.6; }
.doc h1 { font-size: 1.7rem; margin: 10px 0 6px; }
.doc h2 { font-size: 1.15rem; margin: 30px 0 10px; }
.doc h3 { font-size: 1rem; margin: 22px 0 8px; }
.doc p, .doc li { font-size: 1rem; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin: 5px 0; }
.doc a { color: inherit; text-underline-offset: 3px; }
.doc-nav { font-size: 0.9rem; color: var(--muted); }
.doc .note { padding: 10px 14px; border-radius: 10px; background: #fff4d6; color: #5a4300; font-size: 0.92rem; }
.doc-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.doc-table th, .doc-table td { white-space: normal; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.doc-table td:first-child { font-weight: 600; min-width: 140px; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; padding: 0; list-style: none; }
.doc .toc a { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--sunken); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.doc section.role { margin-top: 26px; padding-top: 6px; border-top: 2px solid var(--text); }
.doc .tip { padding: 10px 14px; border-left: 3px solid var(--text); background: var(--sunken); border-radius: 0 8px 8px 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .doc .note { background: #3a2f0e; color: #ffe39a; }
}
@media (max-width: 640px) {
  main.doc { padding: 22px 16px 56px; }
  .doc h1 { font-size: 1.4rem; }
  .doc-table td:first-child { min-width: 0; }
}
@media print {
  main.doc { padding: 0; max-width: none; }
  .doc-nav, .doc .toc { display: none; }
  .doc section.role { break-before: page; border-top: none; }
  .doc section.role:first-of-type { break-before: auto; }
  .doc a { text-decoration: none; }
}
