/* Overrides minimaux pour les modales legales (mentions / confidentialite).
   Repose sur modal.css + modal-card.css pour tout le reste. */

/* Largeur plus large que le modal-card par defaut (480px) */
.modal--content:has(.legal-body) {
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100vh - 60px);
}

/* Body scrollable */
.legal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 28px 28px;
}

/* Contrer le p { font-size: 30px } de modal.css */
.legal-body p,
.legal-body address {
    font-size: 14px;
    font-style: normal;
    color: #334155;
    line-height: 1.65;
    margin: 0 0 10px;
    letter-spacing: normal;
    text-align: left;
}

.legal-body h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 22px 0 8px;
    line-height: 1.3;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body ul {
    margin: 0 0 10px;
    padding-left: 22px;
}

.legal-body li {
    font-size: 14px;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 3px;
}

.legal-body a {
    color: #00a4c0;
    text-decoration: underline;
}

.legal-body a:hover {
    color: #0a2e3c;
}
