/* Vinq · páginas institucionais (privacidade, cookies)
   Segue o VINQ-DESIGN-GUIDE.md. Tokens idênticos aos do index.html. */
:root {
  --bg: #09090A;
  --surface-1: #111214;
  --surface-2: #18191C;
  --surface-3: #202125;
  --border: #26272B;
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #F3F2EF;
  --text-2: #A3A5AA;
  --text-3: #6B6E74;
  --orange: #FF4000;
  --ember: #FF6A33;
  --glow: rgba(255, 64, 0, 0.55);
  --on-orange: #0C0D11;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius-card: 20px;
  --radius-panel: 14px;
  --radius-pill: 999px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p, ul, ol { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: var(--orange); color: var(--on-orange); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Navegação */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(9,9,10,0.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark img { height: 17px; width: auto; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 20px; border-radius: var(--radius-pill); font: 600 14px/1 var(--font-sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .25s var(--ease), box-shadow .25s var(--ease); }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--ember); box-shadow: 0 0 32px var(--glow); }
.btn-secondary { background: rgba(255,255,255,0.06); border-color: var(--border); color: var(--text); font-weight: 500; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Cabeçalho da página */
.page-head { padding: clamp(56px, 7vw, 96px) 0 clamp(36px, 4.5vw, 56px); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: max(1200px, 120vw); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(255,106,51,0.55), transparent); }
.page-head .inner { display: flex; flex-direction: column; gap: 24px; }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 11px; background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius-pill); color: var(--text-2); font-size: 10px; letter-spacing: 0.16em; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--glow); flex: none; }
.h1 { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.02em; }
.h1 .tone { display: block; color: var(--text-2); }
em.spark { font-style: italic; color: var(--orange); }
.lead { font-size: 16px; color: var(--text-2); max-width: 680px; text-wrap: pretty; }
.meta { color: var(--text-3); }

/* Corpo: índice + texto */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); align-items: start; }
.legal > * { min-width: 0; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.toc .mono { color: var(--text-3); margin-bottom: 10px; font-size: 10px; }
.toc a { color: var(--text-3); text-decoration: none; font-size: 14px; padding: 6px 0 6px 14px; border-left: 2px solid var(--border); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-left-color: var(--orange); }

.prose { max-width: 720px; display: flex; flex-direction: column; gap: 48px; }
.prose section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.prose h2 { font-family: var(--font-sans); font-weight: 200; font-size: clamp(22px, 2vw, 26px); line-height: 1.3; letter-spacing: -0.01em; display: flex; gap: 14px; align-items: baseline; }
.prose h2 .n { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--text-3); flex: none; }
.prose h3 { font-family: var(--font-sans); font-weight: 500; font-size: 16px; color: var(--text); margin-top: 6px; }
.prose p, .prose li { color: var(--text-2); font-size: 15px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.prose a:hover { color: var(--ember); text-decoration-color: var(--ember); }
.prose ul { padding: 0; list-style: none; display: flex; flex-direction: column; }
.prose ul li { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--border-soft); }
.prose ul li:last-child { border-bottom: 1px solid var(--border-soft); }
.prose ul li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; margin-top: .6em; background: var(--orange); }

/* Tabela */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface-1); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th { font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
td { color: var(--text-2); }
td:first-child { color: var(--text); }
tr:last-child td { border-bottom: 0; }
code { white-space: nowrap; font-family: var(--font-mono); font-size: 12.5px; color: var(--text); background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }

/* Card de destaque */
.note { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-card); padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.note .mono { color: var(--text-3); font-size: 10px; }
.note p { color: var(--text-2); font-size: 15px; }

/* Preferências de cookies */
.prefs { display: flex; flex-direction: column; gap: 12px; }
.pref { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-card); padding: clamp(22px, 3vw, 30px); display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; align-items: start; transition: border-color .25s var(--ease); }
.pref.is-on { border-color: rgba(255,64,0,0.28); }
.pref h3 { font-family: var(--font-sans); font-weight: 200; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; letter-spacing: -0.01em; }
.pref p { grid-column: 1 / -1; color: var(--text-2); font-size: 15px; }
.pref .tag { color: var(--text-3); font-size: 10px; padding-top: 10px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 26px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); position: relative; transition: background .25s var(--ease), border-color .25s var(--ease); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-2); transition: transform .25s var(--ease), background .25s var(--ease); }
.switch input:checked + .track { background: var(--orange); border-color: var(--orange); }
.switch input:checked + .track::after { transform: translateX(20px); background: var(--on-orange); }
.switch input:focus-visible + .track { outline: 2px solid var(--ember); outline-offset: 2px; }
.switch input:disabled + .track { opacity: .55; cursor: not-allowed; }
.switch .state { color: var(--text-3); font-size: 10px; min-width: 64px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.status { color: var(--text-3); font-size: 14px; }
.status.ok { color: var(--text); }

/* Rodapé */
footer { border-top: 1px solid var(--border); padding: 40px 0 32px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; color: var(--text-3); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot a { color: var(--text-2); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--text); }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc .mono { width: 100%; margin-bottom: 4px; }
  .toc a { border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 6px 12px; font-size: 13px; }
  .toc a.on { border-color: rgba(255,64,0,0.5); }
}
@media (max-width: 767px) {
  .nav .btn { padding: 10px 14px; }
  .pref { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
