/* --- Configurações Globais e Variáveis de Cor --- */
:root {
    --bg-color: #fcfcfc;
    --sidebar-bg: #f8f8f8;
    --text-color: #333;
    --text-color-light: #555;
    --border-color: #e0e0e0;
    --accent-color: #f7931a; /* Laranja Bitcoin */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset e Estilos Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* --- Layout Principal --- */
.site-container {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar (Menu Lateral) --- */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    background-color: var(--sidebar-bg);
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease-in-out;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color-light);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.nav-section-title:first-child {
    margin-top: 0;
}

.sidebar-nav li a {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    color: var(--accent-color);
}

/* --- Conteúdo Principal --- */
.main-content {
    flex-grow: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 4rem;
}

.main-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.main-content h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color-light);
    margin: 0 0 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.main-content p {
    margin-bottom: 1.5rem;
}

/* --- Botão de Toggle (Mobile) --- */
.menu-toggle {
    display: none; /* Escondido por padrão no desktop */
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- Responsividade --- */
@media (max-width: 968px) {
    .main-content {
        padding: 2rem 2.5rem;
    }
    .sidebar {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Visível no mobile */
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(-100%); /* Escondido fora da tela */
        z-index: 1000;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    /* Classe adicionada via JavaScript para mostrar o menu */
    .sidebar.is-open {
        transform: translateX(0);
    }

    .main-content {
        padding: 5rem 1.5rem 2rem 1.5rem; /* Mais espaço no topo para não ficar sob o botão */
    }
    
    .main-content h1 {
        font-size: 2rem;
    }
}