/* ============================================
   LEGAL PAGES CSS - LGPD COMPLIANCE
   Política de Privacidade e Termos de Uso
   ============================================ */

/* ============================================
   1. COOKIE CONSENT BANNER - BOTTOM DA HERO
   ============================================ */
.cookie-consent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    display: block;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-consent.hide {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.hero {
    position: relative;
    overflow: hidden;
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-icon {
    font-size: 2rem;
    color: #D4AF37;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cookie-text {
    flex: 1;
    color: #1a1a1a;
}

.cookie-text h3 {
    display: none;
}

.cookie-text p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0;
}

.cookie-text a {
    color: #D4AF37;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-text a:hover {
    color: #1a1a1a;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-buttons .btn-primary {
    background: #D4AF37;
    color: #1A1A1A;
    border: none;
}

.cookie-buttons .btn-primary:hover {
    background: #FFD700;
    transform: scale(1.05);
}

.cookie-buttons .btn-secondary {
    background: transparent;
    color: #666666;
    border: 1px solid #cccccc;
}

.cookie-buttons .btn-secondary:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: #999999;
}

/* Mobile */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-icon {
        display: none;
    }
    
    .cookie-text p {
        font-size: 0.813rem;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   2. LEGAL PAGES LAYOUT
   ============================================ */
.legal-page {
    padding: 120px 0 4rem;
    background: var(--bg-light);
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.legal-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.last-update {
    color: var(--text-light);
    font-size: 0.938rem;
    font-style: italic;
}

.legal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    line-height: 1.8;
}

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

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.legal-section h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
}

.legal-section p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.legal-section li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.legal-section strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.highlight-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--radius-md);
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

/* ============================================
   3. COOKIE PREFERENCES MANAGER
   ============================================ */
.cookie-manager-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
}

.cookie-manager-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.cookie-manager-trigger i {
    font-size: 1.5rem;
}

.cookie-manager-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.cookie-manager-modal.show {
    display: flex;
}

.cookie-manager-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.cookie-manager-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
}

.cookie-manager-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.cookie-manager-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.cookie-manager-close:hover {
    transform: rotate(90deg);
}

.cookie-manager-body {
    padding: 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-light);
}

.cookie-category:last-child {
    border-bottom: none;
}

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

.cookie-category-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin: 0;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: var(--primary-color);
}

.toggle-switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

.cookie-category-description {
    color: var(--text-dark);
    font-size: 0.938rem;
    line-height: 1.6;
}

.cookie-manager-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-manager-footer .btn {
    padding: 0.75rem 1.5rem;
}

/* ============================================
   4. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .cookie-manager-trigger {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .cookie-manager-trigger i {
        font-size: 1.25rem;
    }
    
    .cookie-manager-header {
        padding: 1.5rem;
    }
    
    .cookie-manager-header h2 {
        font-size: 1.5rem;
    }
    
    .cookie-manager-body {
        padding: 1.5rem;
    }
    
    .cookie-manager-footer {
        flex-direction: column;
        padding: 1rem 1.5rem;
    }
    
    .cookie-manager-footer .btn {
        width: 100%;
    }
}
