/* ===== VARIÁVEIS CSS - MANTENDO IDENTIDADE DO SITE ===== */
:root {
    --neon-green: #09e331;
    --neon-green-hover: #0aff3d;
    --background: #000000;
    --text-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.6);
    --shadow-neon: rgba(9, 227, 49, 0.4);
    --shadow-neon-hover: rgba(9, 227, 49, 0.6);
    --border-neon: #09e331;
    --input-bg: #1a1a1a;
    --input-border: #333333;
    --card-bg: rgba(26, 26, 26, 0.9);
    --section-bg: rgba(10, 10, 10, 0.8);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.8);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    --transition: all 0.3s ease;
}

/* ===== ESTILOS ESPECÍFICOS PARA POLÍTICA DE COOKIES ===== */
.legal-section {
    padding: clamp(60px, 10vw, 100px) 5%;
    background-color: var(--background);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(9, 227, 49, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(9, 227, 49, 0.05) 0%, transparent 20%);
    min-height: 100vh;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    padding: clamp(40px, 6vw, 60px);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(9, 227, 49, 0.2);
}

.legal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-green-hover));
    box-shadow: 0 0 10px var(--shadow-neon);
}

.legal-container h1 {
    color: var(--neon-green);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px var(--shadow-neon);
}

.last-updated {
    color: var(--neon-green);
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.6;
    margin-bottom: 2rem;
}

/* ===== CONTEÚDO ===== */
.legal-content {
    max-width: 100%;
}

.legal-article {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(9, 227, 49, 0.2);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.legal-article:nth-child(1) { animation-delay: 0.1s; }
.legal-article:nth-child(2) { animation-delay: 0.2s; }
.legal-article:nth-child(3) { animation-delay: 0.3s; }
.legal-article:nth-child(4) { animation-delay: 0.4s; }
.legal-article:nth-child(5) { animation-delay: 0.5s; }
.legal-article:nth-child(6) { animation-delay: 0.6s; }
.legal-article:nth-child(7) { animation-delay: 0.7s; }
.legal-article:nth-child(8) { animation-delay: 0.8s; }
.legal-article:nth-child(9) { animation-delay: 0.9s; }

.legal-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-article h2 {
    color: var(--neon-green);
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 16px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-article h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-green-hover));
    box-shadow: 0 0 8px var(--shadow-neon);
}

.legal-article p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1rem;
    opacity: 0.9;
}

.legal-article ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.legal-article li {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    opacity: 0.9;
}

.legal-article li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--shadow-neon);
}

.note {
    background: rgba(255, 193, 7, 0.15);
    border-left: 3px solid #ffc107;
    padding: 12px 16px;
    margin-top: 16px;
    border-radius: var(--border-radius);
}

/* ===== TABELA DE COOKIES ===== */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

th {
    background: rgba(9, 227, 49, 0.15);
    color: var(--neon-green);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

tr:last-child td {
    border-bottom: none;
}

.badge {
    background: rgba(9, 227, 49, 0.2);
    color: var(--neon-green);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    border: 1px solid rgba(9, 227, 49, 0.3);
}

/* ===== BOTÕES ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-green-hover));
    color: var(--background);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(9, 227, 49, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(9, 227, 49, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--neon-green);
    color: var(--background);
    transform: translateY(-3px);
}

/* ===== BANNER DE COOKIES (FIXO) ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(9, 227, 49, 0.2);
    padding: 1.2rem 1.5rem;
    z-index: 1000;
    display: none;
    justify-content: center;
    border-top: 1px solid var(--neon-green);
}

.cookie-banner-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner-content p {
    flex: 1;
    margin: 0;
    color: var(--text-color);
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ===== MODAL DE PREFERÊNCIAS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.modal-content {
    background: var(--card-bg);
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    border-radius: 1.5rem;
    position: relative;
    border: 1px solid rgba(9, 227, 49, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--neon-green);
}

.checkbox-label {
    display: block;
    margin: 1rem 0;
    cursor: pointer;
    color: var(--text-color);
}

.checkbox-label input {
    margin-right: 0.75rem;
    transform: scale(1.1);
    accent-color: var(--neon-green);
}

.modal-buttons {
    margin-top: 1.5rem;
    text-align: right;
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--neon-green);
    color: var(--background);
    border: none;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    font-size: 1.5rem;
    font-weight: bold;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--neon-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-neon-hover);
}

/* ===== ANIMAÇÃO ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .legal-container {
        padding: 32px 24px;
    }
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-banner-buttons {
        justify-content: center;
    }
    .legal-article h2 {
        font-size: 1.4rem;
    }
    th, td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 24px 20px;
    }
    .legal-container h1 {
        font-size: 2rem;
    }
    th, td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}
