/* Legal Document Modals - Terms of Service & Privacy Policy */

.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal.show {
    display: flex;
    animation: legalModalFadeIn 0.3s ease-out;
}

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

.legal-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: legalModalSlideIn 0.3s ease-out;
}

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

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

.legal-modal-header-content h2 {
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.legal-modal-header-content .company-info {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.legal-modal-header-content .company-info strong {
    color: #3b82f6;
    font-weight: 600;
}

.legal-modal-close {
    background: #f1f5f9;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.legal-modal-close:hover {
    background: #3b82f6;
    color: #fff;
    transform: rotate(90deg);
}

.legal-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.legal-modal-body h3 {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 12px 0;
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

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

.legal-modal-body li {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-modal-body strong {
    color: #1e293b;
    font-weight: 600;
}

.legal-highlight {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.legal-highlight p {
    margin: 0;
    color: #1e40af;
    font-size: 14px;
}

.legal-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Custom Scrollbar */
.legal-modal-body::-webkit-scrollbar {
    width: 10px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-modal {
        padding: 10px;
    }

    .legal-modal-content {
        max-height: 95vh;
    }

    .legal-modal-header {
        padding: 20px;
    }

    .legal-modal-header-content h2 {
        font-size: 22px;
    }

    .legal-modal-body {
        padding: 20px;
    }

    .legal-modal-body h3 {
        font-size: 18px;
    }

    .legal-modal-body p,
    .legal-modal-body li {
        font-size: 14px;
    }
}
