/* PAGES LÉGALES (mentions légales, CGV, politique de confidentialité) */

.global-legal {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-inline: 75px;
}

.legal {
    width: 100%;
    max-width: 900px;
    background: var(--surface);
    border-radius: 20px;
    padding: 70px 90px;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.legal h1 {
    text-align: center;
}

.legal .update {
    text-align: center;
    margin-top: -20px;
    font-style: italic;
    opacity: 0.8;
}

.legal section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal h2 {
    font-family: "Libre Baskerville", serif;
    font-size: 20px;
    color: var(--title);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal p {
    line-height: 1.7;
}

/* Liens dans le texte */

.legal a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    transition: .3s;
}

.legal a:hover {
    color: var(--secondary);
}

/* Tableau des tarifs */

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 5px;
}

.legal th,
.legal td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal th {
    font-family: "Libre Baskerville", serif;
    font-weight: normal;
    color: var(--background);
    background: var(--primary);
}

.legal th:first-child {
    border-top-left-radius: 10px;
}

.legal th:last-child {
    border-top-right-radius: 10px;
}

.legal td:last-child,
.legal th:last-child {
    text-align: right;
    white-space: nowrap;
}

/* Liens légaux dans le footer */

.legal-links a {
    color: inherit;
}

/* Responsive */

@media (max-width : 780px) {

    .global-legal {
        padding-inline: 0;
        margin-top: 40px;
        margin-bottom: 50px;
    }

    .legal {
        border-radius: 0;
        padding: 40px 20px;
        gap: 25px;
    }

    .legal .update {
        margin-top: -15px;
    }

    .legal h2 {
        font-size: 17px;
    }

    .legal th,
    .legal td {
        padding: 10px;
    }
}
