/* ═══════════════════════════════════════════════════════════════
   PROXY CHEATS — Páginas institucionais / jurídicas
   Mesma linguagem visual da Landing (tokens.css)
   ═══════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button, a, input { outline: none; font-family: inherit; }
ul { list-style: none; }

.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.6rem 1rem;
  background: var(--blue);
  color: #fff;
  z-index: 999;
  border-radius: 8px;
  text-decoration: none;
}

:root {
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --inst-nav-h: 64px;
  --inst-max: 720px;
  --inst-wide: 960px;
}

/* ── Nav ────────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: calc(0.75rem + var(--safe-t)) calc(1.5rem + var(--safe-r)) 0.75rem calc(1.5rem + var(--safe-l));
  background: rgba(5, 5, 8, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 34px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--sub);
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { background: var(--blue-dim); color: var(--text); }
}
.nav-link.is-active { color: var(--text); }

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  height: 1.5px;
  background: var(--sub);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(5, 5, 8, 0.97);
  padding: calc(5rem + var(--safe-t)) 1.5rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: 1.05rem; padding: 0.75rem 1rem; }
.nav-mobile .nav-cta {
  text-align: center;
  padding: 0.85rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Page shell ─────────────────────────────────────────────── */

.inst-main {
  padding: calc(var(--inst-nav-h) + 2.75rem + var(--safe-t)) calc(1.5rem + var(--safe-r)) 4rem calc(1.5rem + var(--safe-l));
  position: relative;
  min-height: 70vh;
}

.inst-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(0, 128, 255, 0.07), transparent 60%);
}

.inst-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--inst-max);
  margin: 0 auto;
}

.inst-wrap--wide {
  max-width: var(--inst-wide);
}

.inst-eyebrow {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--blue-b);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.inst-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--blue-b);
  opacity: 0.5;
}

.inst-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.65rem;
}

.inst-lead {
  font-size: 1.02rem;
  color: var(--sub);
  line-height: 1.65;
  max-width: 40rem;
  margin-bottom: 0.85rem;
}

.inst-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ── Prose ──────────────────────────────────────────────────── */

.inst-prose {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.inst-prose h2 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.55rem;
  padding-top: 0.35rem;
}

.inst-prose h3 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.4rem;
}

.inst-prose p,
.inst-prose li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--sub);
}

.inst-prose strong {
  color: var(--text);
  font-weight: 600;
}

.inst-prose a {
  color: var(--blue-b);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.inst-prose a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.inst-prose ul,
.inst-prose ol {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-left: 1.15rem;
  margin-top: 0.55rem;
}

.inst-prose ul { list-style: disc; }
.inst-prose ol { list-style: decimal; }

.inst-prose li::marker { color: rgba(0, 170, 255, 0.45); }

.inst-prose section {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
}

.inst-note {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
  color: var(--sub);
  line-height: 1.6;
}

.inst-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.75rem 0 2rem;
}
.inst-toc a {
  font-size: 0.75rem;
  color: var(--sub);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .inst-toc a:hover {
    color: var(--text);
    border-color: rgba(0, 128, 255, 0.3);
    background: var(--blue-dim);
  }
}

/* ── Cards / grids ──────────────────────────────────────────── */

.inst-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}
@media (max-width: 700px) {
  .inst-grid { grid-template-columns: 1fr; }
}

.inst-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  transition: border-color 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .inst-card:hover { border-color: rgba(0, 128, 255, 0.28); }
}

.inst-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.inst-card p {
  font-size: 0.84rem;
  color: var(--sub);
  line-height: 1.55;
}

.inst-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue-dim);
  border: 1px solid rgba(0, 128, 255, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  color: var(--blue-b);
}
.inst-card__icon svg { width: 16px; height: 16px; }

.inst-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.inst-contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.inst-contact-row span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.inst-contact-row strong {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}
.inst-contact-row a {
  color: var(--blue-b);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.inst-contact-row a:hover { color: #fff; }

/* ── FAQ ────────────────────────────────────────────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.18s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--sub);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.faq-item[open] summary::after {
  content: "−";
  color: var(--blue-b);
}
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover { background: rgba(255, 255, 255, 0.02); }
}

.faq-item .faq-a {
  padding: 0 1.15rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--sub);
}
.faq-item .faq-a a { color: var(--blue-b); text-decoration: none; }
.faq-item .faq-a a:hover { color: #fff; }

.faq-group-title {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-b);
  margin: 1.75rem 0 0.75rem;
}

/* ── Footer ─────────────────────────────────────────────────── */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem calc(1.5rem + var(--safe-r)) calc(2rem + var(--safe-b)) calc(1.5rem + var(--safe-l));
}

.footer-inner { max-width: 1180px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}
.footer-brand img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.footer-brand-sub {
  font-size: 0.78rem;
  color: var(--sub);
  line-height: 1.55;
  max-width: 26ch;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--blue-b);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-link {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-size: 0.84rem;
  color: var(--sub);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .footer-link:hover { color: #fff; }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.footer-bottom-links a {
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--sub); }
