@charset "UTF-8";
/* ===== LGPD COMPLIANCE STYLES ===== */

/* Banner de Cookies */
.lgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--white) 100%);
    border-top: 3px solid var(--primary-blue);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: var(--z-popup);
    padding: 1.5rem;
    display: none;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lgpd-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 
        "icon text actions"
        "links links links";
    gap: 1rem;
    align-items: center;
}

.lgpd-icon {
    grid-area: icon;
    font-size: 2rem;
    margin-right: 1rem;
}

.lgpd-text {
    grid-area: text;
}

.lgpd-text h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lgpd-text p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.lgpd-actions {
    grid-area: actions;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lgpd-links {
    grid-area: links;
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.lgpd-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    min-height: 48px;
}

.lgpd-links a:hover,
.lgpd-links a:focus {
    color: var(--secondary-gray);
    text-decoration: underline;
}

.lgpd-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-gray);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lgpd-close:hover,
.lgpd-close:focus {
    background: var(--white);
    color: var(--primary-blue);
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Modal de Preferências */
.lgpd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: calc(var(--z-popup) + 100);
    display: none;
}

.lgpd-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.lgpd-modal-content {
    position: relative;
    background: white;
    margin: 2rem auto;
    max-width: 600px;
    max-height: 90vh;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lgpd-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a5a8a 100%);
    color: white;
}

.lgpd-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.lgpd-modal-header .lgpd-close {
    color: white;
    position: static;
}

.lgpd-modal-header .lgpd-close:hover,
.lgpd-modal-header .lgpd-close:focus {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.lgpd-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.lgpd-intro {
    color: var(--secondary-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cookie-category:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(32, 108, 161, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.category-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.category-description {
    color: var(--secondary-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

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

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

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .slider {
    background-color: var(--primary-blue);
}

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

.toggle-switch input:disabled + .slider {
    background-color: var(--success);
    opacity: 0.7;
    cursor: not-allowed;
}

.toggle-switch input:focus + .slider {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.lgpd-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--secondary-gray);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: var(--white);
}

/* Botões */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 48px;
}

.btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a5a8a 100%);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #1a5a8a 0%, var(--primary-blue) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 108, 161, 0.3);
}

.btn-secondary {
    background: var(--secondary-gray);
    color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--secondary-gray);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--primary-blue);
    color: white;
}

/* Notificações */
.lgpd-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-blue);
    z-index: calc(var(--z-popup) + 200);
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-out;
}

.lgpd-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.lgpd-notification-success {
    border-left-color: var(--success);
}

.lgpd-notification-info {
    border-left-color: var(--primary-blue);
}

.lgpd-notification-warning {
    border-left-color: var(--warning);
}

.lgpd-notification-error {
    border-left-color: var(--danger);
}

/* Responsividade */
@media (max-width: 768px) {
    .lgpd-banner {
        padding: 1rem;
    }
    
    .lgpd-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "text"
            "actions"
            "links";
        text-align: center;
        gap: 1rem;
    }
    
    .lgpd-icon {
        display: none;
    }
    
    .lgpd-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .lgpd-modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .lgpd-modal-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .lgpd-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .lgpd-text h3 {
        font-size: 1.1rem;
    }
    
    .lgpd-text p {
        font-size: 0.9rem;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .toggle-switch {
        align-self: flex-end;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .lgpd-banner {
        border-top-width: 5px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .toggle-switch input:checked + .slider {
        background-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .lgpd-banner,
    .lgpd-modal-content,
    .lgpd-notification {
        animation: none;
    }
    
    .btn,
    .cookie-category,
    .slider,
    .slider:before {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .lgpd-banner {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        color: #e2e8f0;
        border-top-color: #4299e1;
    }
    
    .lgpd-text h3 {
        color: #4299e1;
    }
    
    .lgpd-text p {
        color: #cbd5e0;
    }
    
    .lgpd-modal-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .cookie-category {
        border-color: #4a5568;
        background: #1a202c;
    }
    
    .category-description {
        color: #a0aec0;
    }
    
    .lgpd-modal-footer {
        background: #1a202c;
        border-top-color: #4a5568;
    }
}

/* ===== ESTILOS PARA PÁGINAS LEGAIS ===== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.legal-header h1 {
    color: var(--primary-color, #2c5aa0);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.legal-updated {
    color: var(--text-secondary, #666);
    font-style: italic;
    margin: 0;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: var(--primary-color, #2c5aa0);
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    color: var(--secondary-color, #1a365d);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-section h4 {
    color: var(--text-primary, #333);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background: var(--background-light, #f8f9fa);
    padding: 1.5rem;
    border-radius: var(--border-radius, 8px);
    border-left: 4px solid var(--primary-color, #2c5aa0);
    margin: 1.5rem 0;
}

.contact-info address {
    font-style: normal;
    line-height: 1.6;
}

.cookie-controls {
    text-align: center;
    margin: 2rem 0;
}

.cookie-controls .btn {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: var(--border-radius, 8px);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-controls .btn-primary {
    background: var(--primary-color, #2c5aa0);
    color: white;
}

.cookie-controls .btn-primary:hover,
.cookie-controls .btn-primary:focus {
    background: var(--primary-dark, #1a365d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}