/* ===================================
   LEGAL MODALS - Info, Impressum, Datenschutz
   =================================== */

.legal-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.legal-modal-overlay.active {
    display: flex;
}

.legal-modal {
    background: var(--bg-card, #ffffff);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.legal-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border, #D1CEC6);
}

.legal-modal-icon {
    font-size: 1.5rem;
}

.legal-modal-title {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary, #3F5F63);
    margin: 0;
}

.legal-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light, #E6E4DE);
    color: var(--text-muted, #6B8FA3);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.legal-modal-close:hover {
    background: var(--border, #D1CEC6);
    color: var(--text, #3F5F63);
}

.legal-modal-content {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

.legal-modal-content .legal-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text, #3F5F63);
    margin-bottom: 24px;
}

.legal-modal-content h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary, #3F5F63);
    margin: 20px 0 8px 0;
}

.legal-modal-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted, #6B8FA3);
    margin: 0 0 12px 0;
}

.legal-modal-content a {
    color: var(--primary, #9B4A4A);
    text-decoration: none;
}

.legal-modal-content a:hover {
    text-decoration: underline;
}

.legal-warning,
.legal-highlight {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
}

.legal-warning {
    background: #fff8e6;
    border-left: 4px solid #B36A2E;
}

.legal-highlight {
    background: #E8F0EC;
    border-left: 4px solid var(--success, #5F7A6E);
}

.legal-warning span,
.legal-highlight span {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.legal-warning p,
.legal-highlight p {
    margin: 0;
    font-size: 0.9rem;
}

.legal-footer {
    text-align: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border, #D1CEC6);
    font-size: 0.85rem;
    color: var(--text-muted, #6B8FA3);
}

/* Dark Mode */
[data-theme="dark"] .legal-modal {
    background: var(--bg-card, #2A3F44);
}

[data-theme="dark"] .legal-modal-title,
[data-theme="dark"] .legal-modal-content h3 {
    color: var(--text, #E6E4DE);
}

[data-theme="dark"] .legal-modal-content .legal-intro {
    color: var(--text, #E6E4DE);
}

[data-theme="dark"] .legal-warning {
    background: rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .legal-highlight {
    background: rgba(34, 128, 74, 0.15);
}

/* Mobile */
@media (max-width: 600px) {
    .legal-modal {
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }
    
    .legal-modal-content {
        max-height: calc(90vh - 80px);
    }
}
