/* Legal Modal Styles */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.legal-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.legal-modal-header {
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 24px;
}

.legal-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.legal-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.legal-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: #374151;
    line-height: 1.6;
}

.legal-modal-body h3 {
    color: #1f2937;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 16px;
}

.legal-modal-body h4 {
    color: #1f2937;
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-modal-body h5 {
    color: #374151;
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.legal-modal-body p {
    margin-bottom: 12px;
    color: #4b5563;
}

.legal-modal-body ul {
    margin: 12px 0;
    padding-left: 24px;
}

.legal-modal-body li {
    margin: 8px 0;
    color: #4b5563;
}

.legal-modal-footer {
    padding: 16px 24px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.legal-modal-footer .btn-secondary {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.legal-modal-footer .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.legal-modal-footer .btn {
    width: auto;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4caac9 0%, #3d98b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.legal-modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Hamburger Menu Footer Links */
.hamburger-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.75rem;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #4caac9;
    text-decoration: underline;
}

.footer-link-separator {
    color: #9ca3af;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .legal-modal-content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .legal-modal-header h2 {
        font-size: 20px;
    }
    
    .legal-modal-body {
        padding: 16px;
    }
    
    .legal-modal-footer {
        flex-direction: column;
    }
    
    .legal-modal-footer .btn,
    .legal-modal-footer .btn-secondary {
        width: 100%;
    }
}