/* castelar.com.br · site de ferramentas. Paleta "vinho e rosé", Fraunces + Inter Tight. */
@font-face { font-family: "Fraunces"; src: url("fontes/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fontes/fraunces-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fontes/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fontes/inter-tight-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fontes/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fontes/inter-tight-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fontes/inter-tight-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --g0: #1F0E12; --g1: #2B151A; --g2: #3A1D24; --g3: #4A2730;
  --claro: #F7F2F0; --claro2: #EEE4E1; --claro3: #F3ECE9; --branco: #FFFFFF; --linha: #E3D5D1; --linha2: #D5C2BD;
  --acento: #E8B9A8; --acento-hover: #F0CDBF; --acento-esc: #8E4A3A;
  --sob: #D3C6C8; --sob2: #EFE6E7; --sob3: #AE9EA2;
  --ok-fundo: #E5F3EC; --ok-tx: #1E6B4D;
  --tx: #2A1A1E; --tx2: #463238; --tx3: #574349; --mut: #6E5C61;
  --serif: Fraunces, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--claro); color: var(--tx); font: 400 16px/1.6 "Inter Tight", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--acento-esc); }
a:hover { color: var(--g1); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
.largura { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.pular { position: absolute; left: -9999px; }
.pular:focus { left: 16px; top: 12px; z-index: 30; background: #fff; padding: 8px 12px; border-radius: 8px; }
.marca { display: block; line-height: 0; flex: none; }
.marca img { display: block; height: 18px; width: auto; }
.rotulo { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acento-esc); }

/* Topo */
.topo { position: sticky; top: 0; z-index: 20; background: var(--g0); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topo-in { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; }
.topo nav { display: flex; align-items: center; gap: 26px; margin-left: auto; flex-wrap: wrap; }
.topo nav a { color: var(--sob); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.topo nav a:hover { color: #fff; }
.topo nav a.botao-claro { color: var(--g1); }

/* Botões */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.botao-claro { min-height: 40px; padding: 0 18px; border-radius: 12px; background: var(--claro); color: var(--g1); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; }
.botao-claro:hover { background: #fff; color: var(--g1); }
.botao-acento { background: var(--acento); color: var(--g0); }
.botao-acento:hover { background: var(--acento-hover); color: var(--g0); }
.botao-linha { border: 1px solid rgba(255, 255, 255, .22); color: var(--sob2); }
.botao-linha:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }

/* Página inicial: só o aviso de ambiente privado */
.privado { background: var(--g0); color: var(--claro); min-height: calc(100vh - 68px - 120px); display: flex; align-items: center; padding: 96px 0; }
.privado-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.privado-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--g1); border: 1px solid var(--g3); color: var(--acento); display: flex; align-items: center; justify-content: center; }
.privado-ic svg.i { width: 28px; height: 28px; }
.privado h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.025em; }
.privado p { margin: 0 0 10px; font-size: 18px; color: var(--sob); }

svg.i { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Documentos (termos, privacidade) */
.doc { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 64px; padding-bottom: 96px; }
.doc-menu { flex: 1 1 220px; max-width: 260px; position: sticky; top: 92px; }
.doc-menu nav { display: flex; flex-direction: column; gap: 4px; }
.doc-menu nav a { padding: 10px 14px; border-radius: 10px; color: var(--tx3); text-decoration: none; font-size: 15px; }
.doc-menu nav a[aria-current="page"] { background: var(--claro2); color: var(--g1); font-weight: 600; }
.doc-indice { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--linha); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.doc-indice span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.doc-indice a { color: var(--tx3); text-decoration: none; }
.doc-indice a:hover { color: var(--acento-esc); }
.doc-texto { flex: 999 1 560px; min-width: 0; max-width: 760px; line-height: 1.7; color: var(--tx2); }
.doc-texto h1 { font-size: clamp(36px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; color: var(--tx); }
.doc-data { margin: 14px 0 0; color: var(--mut); font-size: 15px; }
.doc-resumo { margin-top: 36px; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--linha); font-size: 15px; }
.doc-texto h2 { margin: 40px 0 10px; font-size: 26px; color: var(--tx); scroll-margin-top: 92px; }
.doc-texto p { margin: 0 0 12px; }
.doc-texto ul { margin: 0 0 12px; padding-left: 22px; }
.doc-texto li { margin-bottom: 6px; }
@media (max-width: 860px) { .doc-menu { position: static; max-width: none; } .doc { gap: 32px; } }

/* Página simples (404) */
.simples { padding: 96px 0 120px; }
.simples h1 { font-size: 40px; }
.simples p { color: var(--tx3); }

/* Rodapé */
.rodape { background: var(--g1); color: var(--sob); padding: 44px 0; }
.rodape-in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.rodape-marca { display: flex; flex-direction: column; gap: 6px; }
.rodape-marca .marca img { height: 15px; }
.rodape-marca span { font-size: 13.5px; color: var(--sob3); }
.rodape nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.rodape nav a { color: var(--sob); text-decoration: none; }
.rodape nav a:hover { color: #fff; }

@media (max-width: 640px) {
  .topo nav { gap: 16px; }
  .privado { padding: 72px 0; }
}
