/*
 * Pages juridiques (mentions légales, confidentialité et cookies, CGU, CGV) : mise en page de lecture sobre.
 * Utilise les jetons de pyl-modern.css (--pyl-*, --section-rgb) pour rester lisible sur le thème sombre.
 */
.pyl-legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 12px 0; }
.pyl-legal-nav a {
    padding: 8px 14px;
    border: 1px solid var(--pyl-line);
    border-radius: 999px;
    background: var(--pyl-surface);
    color: var(--pyl-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}
.pyl-legal-nav a:hover { color: #fff; background: rgba(var(--section-rgb), 0.14); }
.pyl-legal-nav a[aria-current="page"] { background: rgb(var(--section-rgb)); border-color: rgb(var(--section-rgb)); color: #0b0b0d; }

.pyl-legal { max-width: 920px; margin: 14px auto 24px; padding: 28px 32px; line-height: 1.7; color: var(--pyl-text); }
.pyl-legal h2 { margin: 32px 0 12px; padding-top: 8px; font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--pyl-line); }
.pyl-legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pyl-legal h3 { margin: 20px 0 8px; font-size: 1rem; font-weight: 700; color: rgb(var(--section-rgb)); }
.pyl-legal p, .pyl-legal li { color: var(--pyl-text); }
.pyl-legal ul, .pyl-legal ol { padding-left: 1.4rem; }
.pyl-legal a { color: rgb(var(--section-rgb)); text-decoration: underline; }
.pyl-legal .legal-note { margin: 14px 0; padding: 12px 16px; border-left: 3px solid rgb(var(--section-rgb)); border-radius: 0 10px 10px 0; background: var(--pyl-surface-2); }
.pyl-legal .legal-toc { margin: 0 0 8px; padding: 14px 18px; border: 1px solid var(--pyl-line); border-radius: 12px; background: var(--pyl-surface); columns: 2; column-gap: 28px; list-style: none; }
.pyl-legal .legal-toc li { break-inside: avoid; padding: 2px 0; }
.pyl-legal .legal-table-wrap { overflow-x: auto; margin: 12px 0; }
.pyl-legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pyl-legal th, .pyl-legal td { padding: 9px 12px; border: 1px solid var(--pyl-line); vertical-align: top; text-align: left; }
.pyl-legal th { background: var(--pyl-surface-2); font-weight: 700; white-space: nowrap; }
.pyl-legal dl.legal-identity { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 12px 0; }
.pyl-legal dl.legal-identity dt { color: var(--pyl-muted); font-weight: 600; }
.pyl-legal dl.legal-identity dd { margin: 0; overflow-wrap: anywhere; }
.pyl-legal .legal-missing { padding: 1px 6px; border-radius: 6px; background: rgba(255, 193, 7, 0.22); color: #ffc107; font-weight: 700; }
.pyl-legal .legal-form { padding: 14px 16px; border: 1px dashed var(--pyl-line); border-radius: 12px; background: var(--pyl-surface); }

@media (max-width: 767.98px) {
    .pyl-legal { margin: 12px; padding: 20px 16px; }
    .pyl-legal .legal-toc { columns: 1; }
    .pyl-legal dl.legal-identity { grid-template-columns: 1fr; gap: 0; }
    .pyl-legal dl.legal-identity dd { margin-bottom: 8px; }
}

/* Fragments invisibles des coordonnées protégées (legal.shield) */
.pyl-legal .legal-x { display: none; }
