/* ============================================
PÁGINAS INTERNAS (blog, post, política, termos)
Complementa site.css: mesmos tokens, nav e rodapé da página inicial.
============================================ */

/* Link do menu da página atual */
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { width: 100%; }

/* --- Cabeçalho da página --- */
.page-head {
padding: 148px 0 56px;
border-bottom: 1px solid var(--border);
}
.page-head__title {
font-size: clamp(2.2rem, 4.4vw, 3.2rem);
font-weight: 200;
line-height: 1.05;
letter-spacing: -0.035em;
margin-bottom: 14px;
}
.page-head__title .text-gradient { font-weight: 500; }
.page-head__desc {
color: var(--text-2);
font-size: 0.95rem;
font-weight: 300;
line-height: 1.6;
max-width: 560px;
}
.page-head__meta {
display: flex;
flex-wrap: wrap;
gap: 8px 20px;
margin-top: 20px;
font-family: 'JetBrains Mono', monospace;
font-size: 0.7rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-3);
}
.back-link {
display: inline-flex;
align-items: center;
gap: 6px;
margin-bottom: 28px;
font-size: 0.82rem;
color: var(--text-2);
transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

.page-body { padding: 56px 0 96px; background: var(--bg-alt); }

/* --- Lista do blog --- */
.post-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 24px;
}
.post-card {
display: flex;
flex-direction: column;
overflow: hidden;
background: var(--surface);
border: 1px solid var(--border-2);
border-radius: var(--r-lg);
transition: border-color 0.3s ease, transform 0.3s ease;
}
.post-card:hover { border-color: rgba(251,191,36,0.3); transform: translateY(-2px); }
.post-card__media {
aspect-ratio: 16 / 9;
background: #0f0c0a;
border-bottom: 1px solid var(--border);
overflow: hidden;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__date {
font-family: 'JetBrains Mono', monospace;
font-size: 0.68rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--blue-light);
}
.post-card__title {
font-size: 1.25rem;
font-weight: 300;
line-height: 1.25;
letter-spacing: -0.02em;
}
.post-card__excerpt {
font-size: 0.86rem;
font-weight: 300;
line-height: 1.6;
color: var(--text-2);
}
.post-card__more {
margin-top: auto;
padding-top: 6px;
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.82rem;
color: var(--text);
}
.post-card:hover .post-card__more { color: var(--blue-light); }
/* Post mais recente em destaque: largura toda, imagem ao lado do texto */
.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.post-card--featured .post-card__media { flex: 0 0 56%; aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--border); }
.post-card--featured .post-card__body { padding: 36px; justify-content: center; gap: 14px; }
.post-card--featured .post-card__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; }
.post-card--featured .post-card__more { margin-top: 8px; }
@media (max-width: 900px) {
.post-card--featured { flex-direction: column; }
.post-card--featured .post-card__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
.post-card--featured .post-card__body { padding: 22px; }
}

/* --- Texto corrido (post e documentos legais) --- */
.prose {
max-width: 720px;
color: var(--text-2);
font-size: 1rem;
font-weight: 300;
line-height: 1.75;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
margin-top: 2.4em;
color: var(--text);
font-size: clamp(1.35rem, 2.4vw, 1.7rem);
font-weight: 300;
line-height: 1.2;
letter-spacing: -0.025em;
}
.prose h3 {
margin-top: 2em;
color: var(--text);
font-family: 'Inter', sans-serif;
font-size: 1rem;
font-weight: 500;
letter-spacing: 0;
}
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a {
color: var(--blue-light);
text-decoration: underline;
text-decoration-color: rgba(251,146,60,0.4);
text-underline-offset: 3px;
overflow-wrap: anywhere;
transition: text-decoration-color 0.2s;
}
.prose a:hover { text-decoration-color: var(--blue-light); }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li + li { margin-top: 0.45em; }
.prose ul li::before {
content: '';
position: absolute;
left: 4px;
top: 0.72em;
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--grad-cta);
}
.prose ol { padding-left: 1.4em; }
.prose ol li + li { margin-top: 0.45em; }
.prose ol li::marker { color: var(--blue-light); font-family: 'JetBrains Mono', monospace; font-size: 0.85em; }
/* Etapas numeradas (fluxo): linhas de vidro com o número em mono */
.prose ol.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 8px; }
.prose ol.steps li {
counter-increment: step;
display: flex;
align-items: center;
gap: 14px;
margin: 0;
padding: 12px 16px;
background: var(--surface);
border: 1px solid var(--border-2);
border-radius: 10px;
color: var(--text);
}
.prose ol.steps li::before {
content: counter(step, decimal-leading-zero);
font-family: 'JetBrains Mono', monospace;
font-size: 0.72rem;
font-weight: 500;
color: var(--blue-light);
}
.prose code {
font-family: 'JetBrains Mono', monospace;
font-size: 0.84em;
color: var(--text);
background: var(--surface-2);
border: 1px solid var(--border-2);
border-radius: 6px;
padding: 1px 6px;
overflow-wrap: anywhere;
}
.prose pre {
background: rgba(10,8,7,0.9);
border: 1px solid var(--border-2);
border-radius: var(--r);
padding: 16px 20px;
overflow-x: auto;
}
.prose pre code {
background: none;
border: 0;
padding: 0;
font-size: 0.82rem;
line-height: 1.6;
white-space: pre-wrap;
}
.prose figure { margin-top: 1.8em; margin-bottom: 1.8em; }
.prose figure img {
width: 100%;
height: auto;
border-radius: var(--r);
border: 1px solid var(--border-2);
background: #0f0c0a;
}
.prose .lead { color: var(--text); font-size: 1.1rem; }
.prose .note {
padding: 16px 20px;
border: 1px solid var(--border-2);
border-left: 2px solid var(--blue-light);
border-radius: var(--r);
background: var(--surface);
}

/* --- Documentos legais: índice lateral --- */
.doc-layout {
display: grid;
grid-template-columns: 240px minmax(0, 720px);
gap: 64px;
align-items: start;
}
.doc-toc {
position: sticky;
top: 96px;
max-height: calc(100vh - 120px);
overflow-y: auto;
padding-right: 8px;
}
.doc-toc__title {
font-family: 'JetBrains Mono', monospace;
font-size: 0.68rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--blue-light);
margin-bottom: 14px;
font-weight: 500;
}
.doc-toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border-2); }
.doc-toc a {
display: block;
padding: 6px 0 6px 14px;
margin-left: -1px;
border-left: 1px solid transparent;
font-size: 0.8rem;
line-height: 1.4;
color: var(--text-3);
transition: color 0.2s, border-color 0.2s;
}
.doc-toc a:hover { color: var(--text); }
.doc-toc a.is-active { color: var(--text); border-left-color: var(--blue-light); }
.doc-layout .prose h2 { scroll-margin-top: 96px; }
.doc-layout .prose > h2:first-of-type { margin-top: 1.6em; }
.doc-end {
margin-top: 3em;
padding-top: 20px;
border-top: 1px solid var(--border);
font-size: 0.85rem;
color: var(--text-3);
}

/* --- Chamada final, versão compacta das páginas internas --- */
.cta-section--compact { min-height: auto; padding: 96px 0; }

@media (max-width: 1024px) {
.doc-layout { grid-template-columns: 1fr; gap: 32px; }
.doc-toc { position: static; max-height: none; padding: 20px; border: 1px solid var(--border-2); border-radius: var(--r); background: var(--surface); }
}
@media (max-width: 768px) {
.page-head { padding: 120px 0 40px; }
.page-body { padding: 40px 0 72px; }
.post-grid { grid-template-columns: 1fr; }
.prose { font-size: 0.95rem; }
.cta-section--compact { padding: 72px 0; }
}
