.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 8, 12, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-surface);
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
}

.legal-modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background-color: rgba(15, 42, 74, 0.4);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--ms-visio-accent);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.close-btn {
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff6b6b;
}

.modal-body {
    padding: 20px;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-body ul {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.modal-body li {
    margin-bottom: 8px;
}

.audit-stats {
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-value.highlight {
    color: var(--ms-visio-accent);
}

.stat-value.safe {
    color: #4caf50;
}

.modal-footer {
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.modal-footer .action-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}