/* ============================================
   DISCLAIMER MODAL - POPUP DE AVISO
   ============================================ */

.disclaimer-modal {
    display: none; /* Inicialmente oculto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in;
}

.disclaimer-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-content {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    margin: 20px;
    padding: 0;
    border: 2px solid #5c9ead;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(92, 158, 173, 0.3);
    animation: slideDown 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

.disclaimer-header {
    background: linear-gradient(135deg, #5c9ead 0%, #4a8293 100%);
    padding: 20px 25px;
    border-bottom: 2px solid #4a8293;
    text-align: center;
}

.warning-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
    animation: pulse 2s infinite;
}

.disclaimer-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.disclaimer-body {
    padding: 25px;
    max-height: none;
    overflow-y: auto;
    color: #333333;
    line-height: 1.6;
    font-size: 14px;
    flex: 1;
}

.disclaimer-body::-webkit-scrollbar {
    width: 8px;
}

.disclaimer-body::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 4px;
}

.disclaimer-body::-webkit-scrollbar-thumb {
    background: #5c9ead;
    border-radius: 4px;
}

.disclaimer-body::-webkit-scrollbar-thumb:hover {
    background: #4a8293;
}

.intro-text {
    font-size: 14px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(92, 158, 173, 0.1);
    border-left: 4px solid #5c9ead;
    border-radius: 4px;
    color: #333;
}

/* Botão para expandir/colapsar termos */
.btn-toggle-terms {
    width: 100%;
    padding: 12px 20px;
    margin: 15px 0;
    background: linear-gradient(135deg, #5c9ead 0%, #4a8293 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-toggle-terms:hover {
    background: linear-gradient(135deg, #4a8293 0%, #3a6f7d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 158, 173, 0.3);
}

/* Conteúdo dos termos (oculto inicialmente) */
.terms-content {
    margin-top: 20px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.disclaimer-body h3 {
    color: #5c9ead;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.risk-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.risk-list li {
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(92, 158, 173, 0.05);
    border-left: 3px solid #5c9ead;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.risk-list li:hover {
    background: rgba(92, 158, 173, 0.1);
    transform: translateX(3px);
}

.risk-list li strong {
    color: #4a8293;
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.important-box {
    background: linear-gradient(135deg, rgba(92, 158, 173, 0.08) 0%, rgba(74, 130, 147, 0.05) 100%);
    border: 2px solid #5c9ead;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.important-box h3 {
    margin-top: 0;
    color: #4a8293;
}

.important-box p {
    margin: 8px 0;
    font-size: 13px;
    color: #444;
}

.declaration-box {
    background: rgba(92, 158, 173, 0.05);
    border: 1px solid #5c9ead;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0 0 0;
}

.declaration-box h3 {
    margin-top: 0;
    color: #4a8293;
}

.declaration-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.declaration-list li {
    padding: 6px 0 6px 25px;
    position: relative;
    margin-bottom: 6px;
    font-size: 13px;
    color: #444;
}

.declaration-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #5c9ead;
    font-weight: bold;
    font-size: 16px;
}

.disclaimer-footer {
    padding: 20px 25px;
    background: #f9f9f9;
    border-top: 2px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-accept,
.btn-decline {
    padding: 12px 35px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 180px;
}

.btn-accept {
    background: linear-gradient(135deg, #5c9ead 0%, #4a8293 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(92, 158, 173, 0.3);
}

.btn-accept:hover {
    background: linear-gradient(135deg, #4a8293 0%, #3a6f7d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(92, 158, 173, 0.4);
}

.btn-decline {
    background: linear-gradient(135deg, #999 0%, #777 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.btn-decline:hover {
    background: linear-gradient(135deg, #777 0%, #666 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
}

.footer-disclaimer {
    margin-top: 8px;
    color: #5c9ead;
    font-weight: 500;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .disclaimer-content {
        margin: 15px;
        width: 92%;
        max-height: 85vh;
    }

    .disclaimer-header h2 {
        font-size: 17px;
    }

    .warning-icon {
        font-size: 32px;
    }

    .disclaimer-body {
        padding: 18px;
        font-size: 13px;
    }

    .intro-text {
        font-size: 13px;
    }

    .disclaimer-body h3 {
        font-size: 15px;
    }

    .risk-list li {
        font-size: 12px;
    }

    .btn-accept,
    .btn-decline {
        min-width: 140px;
        padding: 10px 20px;
        font-size: 13px;
    }

    .disclaimer-footer {
        padding: 15px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .disclaimer-content {
        margin: 10px;
        width: 95%;
        max-height: 90vh;
    }

    .disclaimer-header {
        padding: 15px 12px;
    }

    .disclaimer-body {
        padding: 15px;
    }

    .disclaimer-footer {
        flex-direction: column;
    }

    .btn-accept,
    .btn-decline {
        width: 100%;
        min-width: auto;
    }
}