.law-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    pointer-events: none; /* Allows navigation behind the overlay */
}

.law-warning-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background-color: #ffffff;
    color: #000;
    padding: 20px;
    z-index: 10004;
    display: none;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border-radius: 8px;
    overflow-y: auto;
    animation: fadeIn 0.5s ease-in-out;
}

.law-warning-popup h3 {
    margin: 0 0 15px 0;
    color: #d32f2f;
    font-size: 18px;
    text-align: center;
}

.law-warning-body {
    line-height: 1.5;
    margin-bottom: 20px;
}

.law-warning-body p {
    margin: 10px 0;
}

.law-warning-body strong {
    color: #1976d2;
}

.law-warning-body a {
    color: #0066cc;
    text-decoration: underline;
}

.law-warning-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.law-warning-close:hover {
    background-color: #f0f0f0;
    color: #d32f2f;
}

.law-warning-continue {
    width: 100%;
    padding: 12px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.law-warning-continue:hover {
    background-color: #1565c0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}