/* ============================================================
   LGPD — Estilos do Modal de Política de Privacidade
   e da Seção de Consentimento (checkbox)
   ============================================================ */

/* ----- Overlay / fundo escurecido ----- */
.modal-overlay {
    position: fixed;
    inset: 0;                               /* cobre toda a viewport */
    background-color: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

/* ----- Container do modal ----- */
.modal-container {
    background-color: #22303f;
    border-left: 4px solid #3b82f6;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 36rem;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* ----- Botão fechar (X) no topo direito ----- */
.modal-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    line-height: 0;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-close:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ----- Cabeçalho do modal ----- */
.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem; /* garante espaço para o botão fechar */
}

.modal-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
}

.modal-header p {
    color: #9ca3af;
    font-size: 0.775rem;
    margin: 0.125rem 0 0;
}

/* ----- Corpo do modal ----- */
.modal-body {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.7;
}

.modal-body p {
    margin-bottom: 0.75rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body strong {
    color: #ffffff;
}

.modal-body a {
    color: #3b82f6;
    text-decoration: underline;
}

.modal-body a:hover {
    color: #60a5fa;
}

/* Divisor entre resumo e política completa */
.modal-divider {
    border: none;
    border-top: 1px solid #374151;
    margin: 1rem 0;
}

/* ============================================================
   Seção de Consentimento — checkbox LGPD
   ============================================================ */
.consent-section {
    background-color: #1a2332;
    border-left: 4px solid #3b82f6;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.consent-checkbox {
    margin-top: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #22c55e;
}

.consent-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px #22c55e;
}

.consent-label span {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Link "POLÍTICA DE PRIVACIDADE" dentro do texto do checkbox */
.politica-link {
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.2s;
}

.politica-link:hover {
    color: #60a5fa;
}

.politica-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Asterisco de campo obrigatório */
.required {
    color: #f87171;
    margin-left: 0.25rem;
}

/* ----- Botão Enviar desabilitado enquanto checkbox não for marcado ----- */
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit:disabled:hover {
    background-color: #22c55e;
}

/* ============================================================
   Responsividade
   ============================================================ */
@media (max-width: 640px) {
    .modal-container {
        padding: 1.5rem 1rem;
        max-height: 90vh;
    }

    .consent-section {
        padding: 1rem;
    }
}
