/**
 * HIPAA Website Security Checker - Terms & Conditions Popup
 * Responsive bottom-left notification popup
 */

/* Popup Container */
.terms-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 380px;
    width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e5e9;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Show state */
.terms-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Header */
.terms-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 20px 12px 20px;
    border-bottom: 1px solid #f0f2f5;
}

.terms-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    padding-right: 15px;
}

/* Close button */
.terms-popup-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-popup-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Content */
.terms-popup-content {
    padding: 12px 20px 20px 20px;
}

.terms-popup-text {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0 0 16px 0;
}

/* Action buttons */
.terms-popup-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.terms-popup-button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

/* Primary button */
.terms-popup-button.primary {
    background-color: #2563eb;
    color: white;
}

.terms-popup-button.primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Secondary button */
.terms-popup-button.secondary {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.terms-popup-button.secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 480px) {
    .terms-popup {
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        border-radius: 8px;
    }
    
    .terms-popup-header {
        padding: 16px 16px 10px 16px;
    }
    
    .terms-popup-content {
        padding: 10px 16px 16px 16px;
    }
    
    .terms-popup-title {
        font-size: 15px;
        padding-right: 10px;
    }
    
    .terms-popup-text {
        font-size: 13px;
        margin-bottom: 14px;
    }
    
    .terms-popup-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .terms-popup-button {
        width: 100%;
        padding: 10px 16px;
    }
}