/* Popup de Termos de Uso */
.terms-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.terms-overlay.active {
    opacity: 1;
    visibility: visible;
}

.terms-popup {
    background: linear-gradient(135deg, #0F0F0F 0%, #1a1a1a 100%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.terms-overlay.active .terms-popup {
    transform: translateY(0);
}

.terms-header {
    background: linear-gradient(90deg, #FF6B35 0%, #6E44FF 100%);
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.terms-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.terms-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.terms-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

.terms-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: 60vh;
}

.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 4px;
}

.terms-content h3 {
    color: #FF6B35;
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.terms-content ul {
    color: #e0e0e0;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.terms-footer {
    padding: 1.5rem 2rem;
    background: rgba(255, 107, 53, 0.05);
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.terms-agreement {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terms-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #FF6B35;
    cursor: pointer;
}

.terms-checkbox-label {
    color: #e0e0e0;
    font-size: 0.95rem;
    cursor: pointer;
}

.terms-checkbox-label a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
}

.terms-checkbox-label a:hover {
    text-decoration: underline;
}

.terms-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.terms-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.terms-btn-decline {
    background: #333;
    color: #e0e0e0;
}

.terms-btn-decline:hover {
    background: #444;
    transform: translateY(-2px);
}

.terms-btn-accept {
    background: linear-gradient(90deg, #FF6B35 0%, #6E44FF 100%);
    color: white;
}

.terms-btn-accept:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.terms-btn-accept:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsivo */
@media (max-width: 768px) {
    .terms-popup {
        width: 95%;
    }
    
    .terms-content {
        padding: 1.5rem;
        max-height: 50vh;
    }
    
    .terms-buttons {
        flex-direction: column;
    }
    
    .terms-btn {
        width: 100%;
        text-align: center;
    }
}