﻿.vmlo-legal-dialog {
    width: min(900px, 94vw) !important;
    max-width: 94vw !important;
    max-height: 88vh !important;
    overflow: hidden !important;
    background-color: #f8fafc !important;
    border: 1px solid rgba(188, 156, 34, 0.38) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 70px rgba(0, 20, 32, 0.32) !important;
}

    .vmlo-legal-dialog .rz-dialog-titlebar {
        display: flex;
        align-items: center;
        min-height: 66px;
        padding: 1rem 1.4rem;
        color: #ffffff;
        background: linear-gradient( 135deg, #00273d 0%, #003b58 100% );
        border-bottom: 3px solid #bc9c22;
    }

    .vmlo-legal-dialog .rz-dialog-title {
        color: #ffffff;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(1.25rem, 3vw, 1.55rem);
        font-weight: 700;
        line-height: 1.3;
    }

    .vmlo-legal-dialog .rz-dialog-titlebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        color: rgba(255, 255, 255, 0.72);
        background-color: transparent;
        border-radius: 50%;
        transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    }

        .vmlo-legal-dialog .rz-dialog-titlebar-close:hover {
            color: #ffffff;
            background-color: rgba(255, 255, 255, 0.1);
            transform: rotate(4deg);
        }

    .vmlo-legal-dialog .rz-dialog-content {
        max-height: calc(88vh - 66px);
        padding: 0 !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-color: #94a3b8 #edf1f5;
        scrollbar-width: thin;
        background-color: #f8fafc;
    }

        .vmlo-legal-dialog .rz-dialog-content::-webkit-scrollbar {
            width: 10px;
        }

        .vmlo-legal-dialog .rz-dialog-content::-webkit-scrollbar-track {
            background-color: #edf1f5;
        }

        .vmlo-legal-dialog .rz-dialog-content::-webkit-scrollbar-thumb {
            background-color: #94a3b8;
            border: 2px solid #edf1f5;
            border-radius: 10px;
        }

            .vmlo-legal-dialog .rz-dialog-content::-webkit-scrollbar-thumb:hover {
                background-color: #64748b;
            }

.legal-dialog {
    padding: 1.5rem;
    color: #475569;
    background-color: #f8fafc;
}

.legal-dialog-intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    color: #ffffff;
    background: linear-gradient( 135deg, #00273d 0%, #004566 100% );
    border: 1px solid rgba(188, 156, 34, 0.55);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 39, 61, 0.12);
}

.legal-dialog-header-icon {
    flex: 0 0 auto;
    color: #bc9c22 !important;
    font-size: 2rem !important;
}

.legal-dialog-intro > div {
    min-width: 0;
}

.legal-dialog-eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    color: #d5b94f;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.legal-dialog-document-title {
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.legal-dialog-summary {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
    line-height: 1.7;
}

.legal-dialog-updated {
    display: inline-flex;
    margin-top: 1rem;
    padding: 0.4rem 0.7rem;
    color: #64748b;
    background-color: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 18px;
    font-size: 0.74rem;
    font-weight: 700;
}

.legal-dialog-plain-content {
    margin-top: 0.25rem;
    padding: 1.35rem 1.4rem;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.94rem;
    line-height: 1.9;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: normal;
}

.legal-dialog-section {
    padding: 0.65rem 0;
}

    .legal-dialog-section + .legal-dialog-section {
        margin-top: 1.25rem;
        padding-top: 1.5rem;
        border-top: 1px solid #e2e8f0;
    }

.legal-dialog-section-title {
    margin: 0 0 0.7rem !important;
    color: #00273d !important;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700 !important;
}

.legal-dialog-section p {
    margin: 0.75rem 0 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.8;
}

.legal-dialog-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.legal-dialog-section li {
    position: relative;
    padding-left: 1.35rem;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.7;
}

    .legal-dialog-section li::before {
        position: absolute;
        top: 0.65rem;
        left: 0;
        width: 7px;
        height: 7px;
        content: "";
        background-color: #bc9c22;
        border-radius: 50%;
    }

.legal-dialog-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fffdf5;
    border: 1px solid rgba(188, 156, 34, 0.35);
    border-left: 4px solid #bc9c22;
    border-radius: 10px;
}

.legal-dialog-notice-icon {
    flex: 0 0 auto;
    color: #bc9c22 !important;
    font-size: 1.25rem !important;
}

.legal-dialog-notice p {
    margin: 0;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.65;
}

.legal-dialog-loading {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.85rem;
    color: #64748b;
    font-size: 0.85rem;
}

.legal-dialog-progress {
    width: min(360px, 100%);
}

.legal-dialog-unavailable {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}

.legal-dialog-unavailable-icon {
    color: #bc9c22 !important;
    font-size: 2.7rem !important;
}

.legal-dialog-unavailable h3 {
    margin: 0.8rem 0 0;
    color: #00273d;
    font-family: Georgia, "Times New Roman", serif;
}

.legal-dialog-unavailable p {
    max-width: 480px;
    margin: 0.65rem 0 0;
    color: #64748b;
    line-height: 1.7;
}

.legal-coming-soon {
    display: flex;
    min-height: 340px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.legal-coming-soon-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin-bottom: 1.15rem;
    color: #bc9c22;
    background-color: rgba(188, 156, 34, 0.09);
    border: 1px solid rgba(188, 156, 34, 0.4);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(188, 156, 34, 0.1);
}

.legal-coming-soon-icon {
    color: #bc9c22 !important;
    font-size: 2.4rem !important;
}

.legal-coming-soon-eyebrow {
    color: #bc9c22;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.legal-coming-soon h3 {
    margin: 0.65rem 0 0;
    color: #00273d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.35;
}

.legal-coming-soon p {
    max-width: 620px;
    margin: 0.9rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.8;
}

.legal-coming-soon-divider {
    width: 70px;
    height: 3px;
    margin-top: 1.4rem;
    background-color: #bc9c22;
    border-radius: 10px;
}

.legal-coming-soon-note {
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
}

.legal-dialog-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.4rem;
    padding-top: 1.15rem;
    border-top: 1px solid #dce4eb;
}

.legal-dialog-close-button {
    min-width: 130px;
    color: #00273d !important;
    background-color: #bc9c22 !important;
    border: 1px solid #bc9c22 !important;
    border-radius: 24px !important;
    box-shadow: 0 5px 14px rgba(0, 39, 61, 0.14);
    font-weight: 800 !important;
    transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}

    .legal-dialog-close-button:hover {
        color: #ffffff !important;
        background-color: #00273d !important;
        border-color: #00273d !important;
        box-shadow: 0 9px 20px rgba(0, 39, 61, 0.2);
        transform: translateY(-2px);
    }

    .legal-dialog-close-button:active {
        transform: translateY(0) scale(0.98);
    }

@media (max-width: 575px) {
    .vmlo-legal-dialog {
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
        max-height: 94vh !important;
        border-radius: 12px !important;
    }

        .vmlo-legal-dialog .rz-dialog-titlebar {
            min-height: 58px;
            padding: 0.85rem 1rem;
        }

        .vmlo-legal-dialog .rz-dialog-content {
            max-height: calc(94vh - 58px);
        }

    .legal-dialog {
        padding: 1rem;
    }

    .legal-dialog-intro {
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .legal-dialog-header-icon {
        font-size: 1.55rem !important;
    }

    .legal-dialog-plain-content {
        padding: 1rem;
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .legal-coming-soon {
        min-height: 300px;
        padding: 2rem 0.75rem;
    }

    .legal-coming-soon-icon-container {
        width: 72px;
        height: 72px;
    }

    .legal-dialog-actions {
        justify-content: stretch;
    }

    .legal-dialog-close-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vmlo-legal-dialog .rz-dialog-titlebar-close,
    .legal-dialog-close-button {
        transition: none !important;
    }

        .vmlo-legal-dialog .rz-dialog-titlebar-close:hover,
        .legal-dialog-close-button:hover {
            transform: none !important;
        }
}
