/*
 * Le dégradé allait de la primaire à la secondaire. Depuis que la secondaire
 * est dérivée de la primaire, les deux teintes sont voisines et le dégradé
 * s'aplatissait. Il descend maintenant vers une version assombrie de la
 * primaire : de la profondeur quelle que soit la couleur du site, et un fond
 * toujours assez sombre pour le texte blanc de l'en-tête.
 */
.legal_body {
    background: var(--primary-color);
    background: linear-gradient(
        160deg,
        var(--primary-color),
        color-mix(in srgb, var(--primary-color) 45%, #000)
    );
    min-height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Sans cela le pied de page flottait au milieu du fond de 100vh. */
    display: flex;
    flex-direction: column;
}

.legal_body main {
    flex: 1;
}

/*
 * Le bouton d'appel est posé sur le fond teinté du site : en couleur primaire
 * il s'y confondait. Sur cette page il s'inverse.
 */
.legal_body .btn-success {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--primary-color);
    font-weight: 600;
}

.legal_body .btn-success:hover,
.legal_body .btn-success:focus-visible {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--secondary-color);
}

.legal-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
}

.legal-card h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333333;
}

.legal-card h2 {
    font-size: 1.75rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #555555;
}

.legal-card p,
.legal-card ul {
    font-size: 1rem;
    color: #666666;
    line-height: 1.6;
}

.legal-card a {
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-card {
        padding: 20px;
    }

    .legal-card h1 {
        font-size: 2rem;
    }

    .legal-card h2 {
        font-size: 1.5rem;
    }
}


/* Plan du site */

.legal-card h1 + p {
    color: #666666;
    margin-bottom: 25px;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.sitemap-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #e6e6e6;
    border-left: 4px solid var(--secondary-color);
    border-radius: 6px;
    color: #222222;
    font-weight: 500;
    background: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sitemap-list a i {
    color: var(--secondary-color);
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.sitemap-list a:hover,
.sitemap-list a:focus-visible {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
}

.sitemap-list a:hover i,
.sitemap-list a:focus-visible i {
    color: #ffffff;
}

@media (min-width: 768px) {
    .sitemap-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
