.legal_button {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 20;

    padding: 10px 16px;

    font-family: "Luckiest Guy", sans-serif;
    font-size: 18px;

    color: white;
    background: rgba(0, 40, 80, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    cursor: pointer;
}

.legal_button:hover {
    background: rgba(0, 70, 120, 0.9);
}

.legal_modal {
    display: flex;
    justify-content: center;
    align-items: center;

    position: absolute;
    inset: 0;
    z-index: 100;

    padding: 24px;

    background: rgba(0, 0, 0, 0.72);
}

.legal_modal_content {
    position: relative;
    overflow-y: auto;

    width: min(820px, 92vw);
    max-height: 82vh;
    padding: 32px;

    color: white;
    background:
        linear-gradient(135deg, rgba(0, 50, 90, 0.96), rgba(0, 20, 45, 0.96));
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.legal_modal_content h2 {
    margin: 0 0 16px;
}

.legal_modal_content h3 {
    margin: 24px 0 10px;
}

.legal_modal_content p,
.legal_modal_content li {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

.legal_modal_content a {
    color: #8df5ff;
}

.legal_modal_content ul {
    padding-left: 22px;
}

.legal_close_button {
    position: absolute;
    top: 14px;
    right: 18px;

    width: 38px;
    height: 38px;

    font-size: 28px;
    line-height: 1;

    color: white;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
}

.legal_note {
    margin-top: 24px;
    opacity: 0.8;
}