/* Páginas legais — Cadência (Política de Privacidade, Termos de Uso) */
/* Depende de styles.css (tokens do design system). */

body { background: var(--ink-50); overflow-x: hidden; }

/* === SHELL (igual à home) === */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(245,242,234,0.7);
  border-bottom: 1px solid rgba(10,10,10,0.08);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink-1000); }
.logo-symbol { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-brand { display: flex; flex-direction: column; justify-content: center; line-height: 1.0; }
.logo-title { font-family: var(--font-sans); font-size: 28px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.0; color: var(--ink-1000); }
.logo-subtitle { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-500); margin-top: 4px; line-height: 1.0; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink-1000); text-decoration: none; transition: var(--t-hover); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green-700); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

.btn {
  font-family: var(--font-sans); font-weight: 700; font-size: 16px;
  padding: 14px 24px; border: 1.5px solid var(--ink-1000); border-radius: 2px;
  cursor: pointer; transition: var(--t-hover); text-decoration: none;
  color: var(--ink-1000);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--green-500); color: var(--ink-1000); box-shadow: 4px 4px 0 var(--ink-1000); }
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink-1000); }

/* === CABEÇALHO DA PÁGINA === */
.doc-hero {
  position: relative; overflow: hidden;
  padding: 96px 32px 72px;
  border-bottom: 1.5px solid var(--ink-1000);
}
.doc-hero-blob {
  position: absolute; right: -180px; top: -140px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, #00FF88 0%, transparent 62%);
  filter: blur(80px); opacity: 0.45;
  pointer-events: none;
}
.doc-hero-inner { position: relative; max-width: 1280px; margin: 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-1000);
  border-left: 6px solid var(--green-500); padding-left: 12px;
  margin-bottom: 28px;
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--ink-1000); border-radius: 50%; }
h1.doc-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900; line-height: 0.92; letter-spacing: -0.05em;
  color: var(--ink-1000); margin: 0 0 28px;
}
h1 .accent { position: relative; display: inline-block; z-index: 0; }
h1 .accent::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 10px; height: 12px; background: var(--green-500); z-index: -1; }
.doc-lead { font-size: 19px; line-height: 1.55; color: var(--ink-700); max-width: 680px; }
.doc-meta {
  margin-top: 36px; display: flex; gap: 32px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-600);
}
.doc-meta strong { color: var(--ink-1000); font-weight: 600; }

/* Resumo rápido */
.summary {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5px;
  background: var(--ink-1000); border: 1.5px solid var(--ink-1000);
  box-shadow: 6px 6px 0 var(--ink-1000);
}
.summary > div { background: var(--paper); padding: 22px 22px 24px; }
.summary .s-t { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-1000); margin-bottom: 6px; }
.summary .s-t::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--green-500); outline: 1.5px solid var(--ink-1000); margin-right: 10px; vertical-align: 2px; }
.summary .s-d { font-size: 14px; line-height: 1.5; color: var(--ink-600); }

/* === CORPO === */
.doc { padding: 80px 32px 120px; }
.doc-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 280px 1fr; gap: 80px; align-items: start;
}

/* Sumário */
.toc { position: sticky; top: 112px; max-height: calc(100vh - 136px); overflow-y: auto; }
.toc-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-600); margin-bottom: 16px; }
.toc-label::before { content: "// "; color: var(--green-700); }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink-1000); }
.toc li { border-bottom: 1px solid rgba(10,10,10,0.12); }
.toc a {
  display: flex; gap: 12px; padding: 9px 0;
  font-size: 14px; font-weight: 500; color: var(--ink-1000); text-decoration: none;
  transition: var(--t-hover);
}
.toc a span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); padding-top: 2px; }
.toc a:hover { color: var(--green-700); padding-left: 4px; }
.toc-other { margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.toc-other a { color: var(--ink-1000); text-decoration: none; border-bottom: 2px solid var(--green-500); }
.toc-other a:hover { color: var(--green-700); }

/* Seções */
.policy { max-width: 780px; min-width: 0; }
.policy section { padding: 0 0 56px; margin: 0 0 56px; border-bottom: 1.5px solid var(--ink-1000); scroll-margin-top: 112px; }
.policy section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.sec-n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-600); margin-bottom: 12px; }
.sec-n strong { color: var(--green-700); font-weight: 600; }
.policy h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.0; color: var(--ink-1000); margin: 0 0 24px; }
.policy h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 36px 0 12px; scroll-margin-top: 112px; }
.policy p { font-size: 17px; line-height: 1.65; color: var(--ink-700); margin: 0 0 16px; }
.policy p:last-child { margin-bottom: 0; }
.policy strong { color: var(--ink-1000); font-weight: 700; }
.policy a { color: var(--ink-1000); font-weight: 600; text-decoration: none; background: linear-gradient(var(--green-500), var(--green-500)) 0 100% / 100% 35% no-repeat; transition: var(--t-hover); overflow-wrap: anywhere; }
.policy a:hover { background-size: 100% 100%; }

.policy ul, .policy ol.steps { padding: 0; margin: 0 0 16px; }
.policy ul { list-style: none; }
.policy ul li { position: relative; padding-left: 24px; margin-bottom: 10px; font-size: 17px; line-height: 1.55; color: var(--ink-700); }
.policy ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--green-500); outline: 1.5px solid var(--ink-1000); }

.policy ol.steps { list-style: none; counter-reset: step; }
.policy ol.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px; font-size: 17px; line-height: 1.55; color: var(--ink-700); min-height: 28px; }
.policy ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink-1000);
  background: var(--green-500); border: 1.5px solid var(--ink-1000);
}

/* Grade de cartões (bases legais, contextos) */
.basis { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; background: var(--ink-1000); border: 1.5px solid var(--ink-1000); margin: 8px 0 16px; }
.basis.three { grid-template-columns: repeat(3, 1fr); }
.basis > div { background: var(--paper); padding: 22px 22px 24px; }
.basis .b-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-700); margin-bottom: 8px; }
.basis .b-t { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-1000); margin-bottom: 6px; }
.basis .b-d { font-size: 14px; line-height: 1.5; color: var(--ink-600); }

/* Tabelas */
.table-wrap { overflow-x: auto; margin: 8px 0 16px; border: 1.5px solid var(--ink-1000); background: var(--paper); }
.policy table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.policy th { text-align: left; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-1000); background: var(--ink-100); padding: 12px 14px; border-bottom: 1.5px solid var(--ink-1000); white-space: nowrap; }
.policy td { padding: 12px 14px; border-bottom: 1px solid rgba(10,10,10,0.12); color: var(--ink-700); vertical-align: top; }
.policy tr:last-child td { border-bottom: 0; }
.policy td:first-child { font-weight: 700; color: var(--ink-1000); min-width: 150px; }

/* Destaques */
.callout {
  margin: 20px 0; padding: 22px 24px;
  background: var(--paper); border: 1.5px solid var(--ink-1000); border-left: 8px solid var(--green-500);
}
.callout p { font-size: 16px; }
.callout .c-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-600); margin-bottom: 8px; }
.callout .en { font-style: italic; color: var(--ink-600); font-size: 15px; margin-top: 8px; }

.id-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 8px 0 16px; padding: 22px 24px; background: var(--paper); border: 1.5px solid var(--ink-1000); }
.id-list dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-600); padding-top: 4px; }
.id-list dd { margin: 0; font-size: 16px; color: var(--ink-1000); font-weight: 600; overflow-wrap: anywhere; }

/* Cartão de contato */
.contact-card {
  margin-top: 24px; padding: 28px; background: var(--ink-1000); color: var(--ink-50);
  border: 1.5px solid var(--ink-1000); box-shadow: 6px 6px 0 var(--green-500);
  display: flex; flex-direction: column; gap: 10px;
}
.contact-card .c-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); }
.policy .contact-card a.c-mail { font-size: clamp(20px, 2.6vw, 28px); font-weight: 900; letter-spacing: -0.03em; color: var(--green-500); text-decoration: none; background: none; word-break: break-all; }
.policy .contact-card a.c-mail:hover { color: var(--ink-50); }
.policy .contact-card p { color: var(--ink-300); font-size: 15px; margin: 0; }

/* === FOOTER (igual à home) === */
footer { background: var(--ink-1000); color: var(--ink-300); border-top: 1px solid rgba(255,255,255,0.1); padding: 40px 32px; }
.foot-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.foot-inner .green { color: var(--green-500); }
.foot-inner a { color: var(--ink-300); text-decoration: none; transition: var(--t-hover); }
.foot-inner a:hover { color: var(--green-500); }
.foot-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-wordmark { font-family: var(--font-sans); font-size: 24px; font-weight: 900; letter-spacing: -0.04em; color: var(--ink-50); line-height: 1.0; }
.foot-credit { font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); letter-spacing: 0.04em; text-transform: uppercase; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }

/* === RESPONSIVIDADE === */
@media (max-width: 1023px) {
  .summary { grid-template-columns: 1fr 1fr; }
  .doc-inner { grid-template-columns: 1fr; gap: 48px; }
  .toc { position: static; max-height: none; overflow: visible; }
  .toc ol { columns: 2; column-gap: 32px; }
  .toc li { break-inside: avoid; }
  .policy { max-width: none; }
  .basis.three { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .nav-inner { padding: 12px 16px; }
  .nav-links { display: none; }
  .logo-subtitle { display: none; }
  .logo-symbol { width: 42px; height: 42px; }
  .logo-title { font-size: 22px; }
  .nav-cta .btn { font-size: 13px; padding: 9px 12px; white-space: nowrap; box-shadow: 3px 3px 0 var(--ink-1000); }
  .logo { gap: 10px; }
  .logo-symbol { width: 36px; height: 36px; }

  .doc-hero { padding: 56px 16px 48px; }
  .doc-lead { font-size: 17px; }
  .doc-meta { flex-direction: column; gap: 8px; }
  .summary { grid-template-columns: 1fr; box-shadow: 4px 4px 0 var(--ink-1000); }
  .doc { padding: 48px 16px 80px; }
  .toc ol { columns: 1; }
  .policy section { padding-bottom: 40px; margin-bottom: 40px; }
  .policy p, .policy ul li, .policy ol.steps li { font-size: 16px; }
  .basis { grid-template-columns: 1fr; }
  .id-list { grid-template-columns: 1fr; gap: 4px; padding: 18px; }
  .id-list dd { margin-bottom: 10px; }
  .contact-card { padding: 22px 20px; }

  footer { padding: 30px 16px; }
  .foot-inner { flex-direction: column; gap: 16px; text-align: center; }
  .foot-brand { flex-direction: column; gap: 8px; justify-content: center; }
  .foot-links { justify-content: center; }
}
