/* Visual do institucional, enxuto para as páginas legais. */
:root {
  --bg: #f7f6f4;
  --bg-2: #eeece8;
  --surface: #ffffff;
  --fg: #0a0a0a;
  --muted: rgba(10, 10, 10, 0.62);
  --border: rgba(10, 10, 10, 0.1);
  --border-strong: rgba(10, 10, 10, 0.16);
  --accent: #ffc107;
  --accent-fg: #0a0a0a;
  --accent-strong: #ff3300;
  --header-bg: rgba(247, 246, 244, 0.82);
  --shadow: 0 8px 30px rgba(10, 10, 10, 0.08);
}

html.dark {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --surface: #161616;
  --fg: #f7f6f4;
  --muted: rgba(247, 246, 244, 0.64);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent-strong: #ff4d1a;
  --header-bg: rgba(10, 10, 10, 0.78);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 193, 7, 0.14), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 51, 0, 0.06), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display { font-family: Inter, Arial, Helvetica, sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, 92vw); margin-inline: auto; }
.legal-wrap { width: min(820px, 92vw); margin-inline: auto; }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

header {
  position: fixed; inset-inline: 0; top: 0; z-index: 60;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
}
header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 0;
}
.nav-logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 40px;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
  object-position: left center;
}
.logo-dark-text { display: block; }
.logo-light-text { display: none; }
html.dark .logo-dark-text { display: none; }
html.dark .logo-light-text { display: block; }
footer .nav-logo { margin-bottom: 14px; }
.nav-links { display: flex; gap: 22px; margin-inline: auto; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--fg); cursor: pointer;
}
.theme-btn svg { width: 18px; height: 18px; }
.icon-sun { display: none; } .icon-moon { display: block; }
html.dark .icon-sun { display: block; } html.dark .icon-moon { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 6px; border: 1px solid transparent;
  font-family: Inter, Arial, Helvetica, sans-serif; font-size: 0.97rem; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #ffd54f, var(--accent) 45%, #ffa000);
  color: var(--accent-fg);
  box-shadow: 0 6px 22px rgba(255, 193, 7, 0.35);
}
.btn-sm { padding: 10px 18px; font-size: 0.9rem; border-radius: 6px; }
.menu-btn { display: none; }
.mobile-menu { display: none; }

.legal {
  padding: 132px 0 72px;
}
.legal-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.legal h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.12; font-weight: 600; letter-spacing: -0.02em;
}
.legal-meta {
  color: var(--muted); font-size: 0.92rem; line-height: 1.6;
  margin-bottom: 28px;
}
.legal-meta a { color: var(--fg); font-weight: 600; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 0 0 40px;
  box-shadow: var(--shadow);
}
.toc h2 {
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 7px; }
.toc a { color: var(--fg); text-decoration: none; font-size: 0.95rem; }
.toc a:hover { color: var(--accent-strong); }

.legal h2 {
  margin: 42px 0 14px;
  font-size: 1.38rem; line-height: 1.25;
  scroll-margin-top: 92px;
}
.legal h3 {
  margin: 26px 0 10px;
  font-size: 1.05rem;
  font-family: Inter, Arial, Helvetica, sans-serif;
  scroll-margin-top: 92px;
}
.legal p, .legal li {
  font-size: 1.02rem; line-height: 1.7; color: var(--fg);
}
.legal p { margin: 0 0 14px; color: color-mix(in srgb, var(--fg) 88%, var(--muted)); }
html.dark .legal p { color: rgba(247, 246, 244, 0.86); }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 1.2rem; display: grid; gap: 8px; }
.legal a { color: var(--accent-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal code {
  font-size: 0.9em;
  background: var(--bg-2);
  padding: 0.1em 0.45em;
  border-radius: 6px;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 22px;
  font-size: 0.95rem; line-height: 1.65;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
table.data th, table.data td {
  text-align: left; vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
table.data th {
  font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-2);
}
table.data tr:last-child td { border-bottom: none; }

.legal-nav {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.chip {
  display: inline-flex; align-items: center;
  padding: 10px 16px; border-radius: 6px;
  border: 1px solid var(--border-strong);
  text-decoration: none; font-weight: 500; font-size: 0.9rem;
  color: var(--fg); background: var(--surface);
}

footer.site {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid p { font-size: 0.88rem; line-height: 1.65; color: var(--muted); max-width: 26rem; }
.footer-id { margin-top: 14px; font-size: 0.82rem; line-height: 1.6; color: var(--muted); }
.footer-id b { font-weight: 600; color: var(--fg); }
.footer-grid h4 {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 8px 0 16px; color: var(--muted);
  font-family: Inter, Arial, Helvetica, sans-serif;
}
.footer-grid ul { list-style: none; display: grid; gap: 11px; }
.footer-grid ul a { text-decoration: none; font-size: 0.92rem; color: var(--muted); }
.footer-grid ul a:hover, .footer-grid ul a[aria-current="page"] { color: var(--fg); }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.82rem; color: var(--muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--fg); }

.wpp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
}
.wpp-fab svg { width: 30px; height: 30px; }

@media print {
  header, .wpp-fab, .theme-btn, .menu-btn, .mobile-menu, .nav-actions { display: none !important; }
  .legal { padding-top: 24px; }
  a { color: inherit; text-decoration: none; }
}

@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav-links, .nav .btn-plataforma { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu {
    position: fixed; inset: 62px 0 auto 0; z-index: 55;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 18px 4vw 26px;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a {
    display: block; padding: 13px 4px; text-decoration: none;
    font-weight: 600; color: var(--fg); border-bottom: 1px solid var(--border);
  }
  .mobile-menu .btn { margin-top: 16px; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal { padding-top: 110px; }
  table.data { font-size: 0.84rem; }
}

/* ---------- celular: "Acessar" compacto na barra, entre o logo e os ícones ---------- */
@media (max-width: 720px) {
  .nav { gap: 12px; }
  .nav-logo img { height: 32px; max-width: 8.5rem; }
  .nav-actions { margin-left: auto; gap: 8px; }
  .nav .btn-plataforma { display: inline-flex; order: -1; height: 36px; padding-inline: 14px; font-size: 0.85rem; margin-right: 4px; }
  .so-web { display: none; }
}
