:root {
    --bg-dark: #0a0e14;
    --bg-card: #12171f;
    --primary-blue: #00a3ff;
    --text-main: #e1e4e8;
    --text-muted: #9da5b1;
    --border-color: #1f2937;
    --accent-glow: rgba(0, 163, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.accent {
    color: var(--primary-blue);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-blue);
}

/* Layout Corpos */
.content-wrapper {
    padding: 60px 0;
}

.content-wrapper .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* Sidebar Navigation */
.toc {
    position: sticky;
    top: 100px;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 15px;
}

.toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.toc a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

/* Legal Content */
.legal-text {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.legal-text h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

section {
    color: var(--text-main) !important;
    margin-bottom: 40px;
}

h2 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

p {
    margin-bottom: 15px;
    color: var(--text-main) !important;
    opacity: 0.9;
}
span,
li {
    color: var(--text-main) !important;
}

ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* Footer & Actions */
.action-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dotted var(--border-color);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0082cc;
    transform: translateY(-2px);
}

.main-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
/* Container da Navegação */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover {
    color: var(--primary-blue);
}

/* Estrutura do Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Estado inicial do dropdown (escondido) */
.dropdown-content {
    display: none; /* Deixe o jQuery controlar isso */
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--bg-card);
    min-width: 240px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    margin-top: 10px;
}

/* Classe para rotacionar a seta via jQuery */
.rotate {
    transform: rotate(180deg);
    border-top-color: var(--primary-blue) !important;
}

/* Garante que o item pai não corte o dropdown */
.dropdown {
    position: relative;
}

/* Mostrar dropdown ao passar o mouse */
/* .dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
} */

/* Itens dentro do Dropdown */
.dropdown-content a {
    color: var(--text-muted);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 163, 255, 0.05);
    color: var(--primary-blue);
    padding-left: 25px; /* Leve recuo no hover */
}

/* Divisor dentro do menu */
.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 20px;
}

/* Ícone de Seta (CSS Puro) */
.arrow-down {
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow-down {
    border-top-color: var(--primary-blue);
    transform: rotate(180deg);
}
/* Responsividade */
@media (max-width: 768px) {
    .content-wrapper .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none; /* Esconde a sidebar em telas pequenas */
    }

    .legal-text {
        padding: 25px;
    }
}