/* Modales légales */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal:target {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--black-color) 80%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-box {
    position: relative;
    z-index: 1;
    width: 640px;
    max-width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--black-color);
    border: 1px solid color-mix(in srgb, var(--main-color) 30%, transparent);
    border-radius: 8px;
    box-shadow: 0 0 88px color-mix(in srgb, var(--black-color) 90%, transparent);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid color-mix(in srgb, var(--white-color) 15%, transparent);
}

.modal-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white-color);
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--main-color);
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: .3s;
}

.modal-close:hover {
    background-color: color-mix(in srgb, var(--main-color) 15%, transparent);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    text-align: left;
    color: var(--white-color);
    scrollbar-color: var(--main-color) transparent;
}

.modal-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--main-color);
    margin: 20px 0 4px;
}

.modal-body p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--light-grey-color);
}

.modal-body .legal-updated {
    font-size: 12px;
    color: var(--grey-color);
}
