/* ═══════════════════════════════════════════════════════════
   FOOTER LEGAL MODAL SYSTEM
   Aufklappbare rechtliche Inhalte direkt im Footer
   ═══════════════════════════════════════════════════════════ */

/* Legal Buttons Container - ganz unten im Footer */
.footer-legal-buttons {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(214, 158, 46, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-legal-button {
    background: linear-gradient(135deg, #D69E2E 0%, #CFAE70 100%);
    color: #1A365D;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.footer-legal-button:hover {
    background: linear-gradient(135deg, #CFAE70 0%, #D69E2E 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.footer-legal-button .icon {
    font-size: 1.5rem;
}

.footer-legal-button .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.footer-legal-button:hover .arrow {
    transform: translateX(5px);
}

/* Legal Modal */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.legal-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.legal-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-modal-header {
    background: linear-gradient(135deg, #1A365D 0%, #2D3748 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.legal-modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.legal-modal-close {
    background: rgba(214, 158, 46, 0.2);
    border: 2px solid #D69E2E;
    color: #D69E2E;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.legal-modal-close:hover {
    background: #D69E2E;
    color: white;
    transform: rotate(90deg);
}

.legal-modal-body {
    padding: 2rem;
    color: #333;
    line-height: 1.8;
}

.legal-modal-body h1,
.legal-modal-body h2,
.legal-modal-body h3,
.legal-modal-body h4 {
    color: #1A365D;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-modal-body h1 {
    font-size: 2rem;
    border-bottom: 3px solid #D69E2E;
    padding-bottom: 0.5rem;
}

.legal-modal-body h2 {
    font-size: 1.5rem;
}

.legal-modal-body h3 {
    font-size: 1.25rem;
}

.legal-modal-body p {
    margin-bottom: 1rem;
}

.legal-modal-body ul,
.legal-modal-body ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-modal-body li {
    margin-bottom: 0.5rem;
}

.legal-modal-body a {
    color: #D69E2E;
    text-decoration: none;
}

.legal-modal-body a:hover {
    color: #1A365D;
    text-decoration: underline;
}

.legal-modal-body strong {
    color: #1A365D;
    font-weight: 600;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .legal-modal.active {
        padding: 0;
    }

    .legal-modal-content {
        max-height: 100vh;
        border-radius: 0;
    }

    .legal-modal-header {
        border-radius: 0;
        padding: 1rem 1.5rem;
    }

    .legal-modal-header h2 {
        font-size: 1.25rem;
    }

    .legal-modal-body {
        padding: 1.5rem;
    }

    .footer-legal-buttons {
        padding: 1rem;
    }

    .footer-legal-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Scrollbar Styling für Modal */
.legal-modal-content::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.legal-modal-content::-webkit-scrollbar-thumb {
    background: #D69E2E;
    border-radius: 4px;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover {
    background: #1A365D;
}
