
  /* Sistema de Consentimento LGPD/GDPR - RESPONSIVO */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 10000;
    display: none;
}

.consent-banner.active {
    display: block;
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.consent-text {
    flex: 1;
    min-width: 300px;
}

.consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.consent-text a {
    color: #32B0F0;
    text-decoration: underline;
}

.consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-accept {
    background: #2A874B;
    color: white;
}

.btn-accept:hover {
    background: #219653;
}

.btn-reject {
    background: #e74c3c;
    color: white;
}

.btn-reject:hover {
    background: #c0392b;
}

.btn-settings {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-settings:hover {
    background: rgba(255,255,255,0.1);
}

.consent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.consent-modal.active {
    display: flex;
}

.consent-modal-content {
    background: white;
    color: #333;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.consent-options {
    margin: 20px 0;
}

.consent-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.consent-option:last-child {
    border-bottom: none;
}

.consent-option-info {
    flex: 1;
}

.consent-option-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.consent-option-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #27ae60;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.consent-required {
    color: #e74c3c;
    font-size: 12px;
    margin-left: 5px;
}

/* Botão Alterar Consentimento */
#changeConsentBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: none;
    backdrop-filter: blur(5px);
}

#changeConsentBtn:hover {
    background: rgba(44, 62, 80, 1);
    transform: scale(1.05);
}

/* ========== RESPONSIVIDADE ========== */

/* Tablets (768px para baixo) */
@media (max-width: 768px) {
    .consent-banner {
        padding: 15px;
    }
    
    .consent-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .consent-text {
        min-width: auto;
        width: 100%;
    }
    
    .consent-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .consent-btn {
        padding: 12px 20px;
        font-size: 14px;
        flex: 1;
        min-width: 120px;
    }
    
    .consent-modal {
        padding: 15px;
    }
    
    .consent-modal-content {
        padding: 25px 20px;
        max-height: 95vh;
    }
    
    .consent-option {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        text-align: left;
    }
    
    .consent-option-info h4 {
        font-size: 15px;
    }
    
    .consent-option-info p {
        font-size: 13px;
    }
    
    .switch {
        align-self: flex-start;
    }
    
    #changeConsentBtn {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Celulares (480px para baixo) */
@media (max-width: 480px) {
    .consent-banner {
        padding: 12px;
    }
    
    .consent-text p {
        font-size: 13px;
        text-align: left;
    }
    
 .consent-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
        margin-bottom: 50px;
    }
    
    .consent-btn {
        padding: 12px 10px;
        font-size: 12px;
        flex: 1;
        min-width: calc(33.333% - 6px);
        text-align: center;
    }
    .consent-modal-content {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    .consent-modal-content h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .consent-modal-content p {
        font-size: 14px;
    }
    
    .consent-option {
        padding: 12px 0;
    }
    
    .consent-option-info h4 {
        font-size: 14px;
    }
    
    .consent-option-info p {
        font-size: 12px;
    }
    
    .switch {
        width: 45px;
        height: 22px;
    }
    
    .slider:before {
        height: 14px;
        width: 14px;
    }
    
    input:checked + .slider:before {
        transform: translateX(23px);
    }
    
    #changeConsentBtn {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .consent-required {
        font-size: 10px;
    }
}

/* Celulares muito pequenos (360px para baixo) */
@media (max-width: 360px) {
    .consent-banner {
        padding: 10px;
    }
    
    .consent-text p {
        font-size: 12px;
    }
    
  .consent-buttons {
        margin-bottom: 40px;
    }
    
    .consent-btn {
        padding: 10px 8px;
        font-size: 11px;
        min-width: calc(33.333% - 6px);
    }
    
    .consent-modal-content {
        padding: 15px 12px;
    }
    
    .consent-modal-content h2 {
        font-size: 16px;
    }
    
    .consent-modal-content p {
        font-size: 13px;
    }
    
    #changeConsentBtn {
        padding: 5px 8px;
        font-size: 9px;
    }
}

/* Telas grandes (1200px para cima) */
@media (min-width: 1200px) {
    .consent-content {
        max-width: 1140px;
    }
}

/* Altura muito pequena (útil para mobile landscape) */
@media (max-height: 500px) {
    .consent-modal {
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .consent-modal-content {
        max-height: calc(100vh - 40px);
    }
    
    .consent-banner {
        position: relative;
    }
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .consent-modal-content {
        background: #2c3e50;
        color: white;
    }
    
    .consent-option-info h4 {
        color: white;
    }
    
    .consent-option-info p {
        color: #bdc3c7;
    }
    
    .consent-option {
        border-bottom-color: #34495e;
    }
    
    .btn-settings {
        color: #FFFFFF;
        border-color: #FFFFFF;
     /*   background: #FFFFFF; */
    }
}
  