/* Termos e Políticas — estilos específicos */

/* ── Header da página ────────────────────────────────────────── */
.terms-header {
  margin-bottom: 1.5rem;
}
.terms-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--c-navy);
  margin: 0 0 4px;
}
.terms-sub {
  font-size: 0.8125rem;
  color: var(--c-text-3);
}

/* ── Tab bar ─────────────────────────────────────────────────── */
.terms-tabs {
  display: flex;
  gap: 4px;
  background: var(--c-off-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.terms-tab {
  flex: 1;
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.5625rem 1rem;
  border-radius: 8px;
  border: none;
  background: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.terms-tab:hover {
  background: rgba(22, 36, 59, 0.05);
  color: var(--c-text-2);
}
.terms-tab.active {
  background: #fff;
  color: var(--c-navy);
  box-shadow: 0 1px 4px rgba(22, 36, 59, 0.1);
}

/* ── Panel layout ────────────────────────────────────────────── */
.terms-panel {
  display: none;
}
.terms-panel.active {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── Table of contents ───────────────────────────────────────── */
.terms-toc {
  position: sticky;
  top: calc(60px + 1.5rem);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-3);
  margin-bottom: 8px;
}
.terms-toc a {
  font-size: 0.8125rem;
  color: var(--c-text-3);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
  line-height: 1.4;
}
.terms-toc a:hover {
  background: var(--c-off-white);
  color: var(--c-navy);
}

/* ── Terms body ──────────────────────────────────────────────── */
.terms-body {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.terms-body section {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.terms-body h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-navy);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-border);
}
.terms-body p {
  font-size: 0.9375rem;
  color: var(--c-text-2);
  line-height: 1.82;
}
.terms-body ul {
  padding-left: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.terms-body li {
  font-size: 0.9375rem;
  color: var(--c-text-2);
  line-height: 1.7;
}
.terms-body a {
  color: var(--c-cobalt);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terms-body strong {
  font-weight: 600;
  color: var(--c-text);
}

/* ── Contact box ─────────────────────────────────────────────── */
.contact-box {
  background: var(--c-off-white);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--c-text-2);
}
.contact-item i {
  color: var(--c-cobalt);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item a {
  color: var(--c-cobalt);
}

/* ── Highlight box ───────────────────────────────────────────── */
.highlight-box {
  border-radius: 12px;
  padding: 1.125rem 1.375rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.highlight-box--green {
  background: rgba(37, 194, 110, 0.07);
  border: 1px solid rgba(37, 194, 110, 0.2);
}
.highlight-box--green i {
  color: var(--c-green);
  font-size: 1.375rem;
  margin-top: 1px;
  flex-shrink: 0;
}
.highlight-box strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 4px;
}
.highlight-box p {
  color: var(--c-text-2);
  margin: 0;
  font-size: 0.9rem;
}

/* ── Data table (privacidade) ────────────────────────────────── */
.data-table {
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
}
.dt-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--c-border);
}
.dt-row:last-child { border-bottom: none; }
.dt-row span {
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--c-text-2);
  border-right: 1px solid var(--c-border);
  line-height: 1.55;
}
.dt-row span:last-child { border-right: none; }
.dt-head span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-3);
  background: var(--c-off-white);
}

/* ── Cookie table ────────────────────────────────────────────── */
.cookie-table {
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
}
.ct-row {
  display: grid;
  grid-template-columns: 140px minmax(110px, auto) 80px 1fr;
  border-bottom: 1px solid var(--c-border);
}
.ct-row:last-child { border-bottom: none; }
.ct-row span {
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--c-text-2);
  border-right: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  line-height: 1.4;
}
.ct-row span:last-child { border-right: none; }
.ct-head span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-3);
  background: var(--c-off-white);
}
.ct-row code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.78rem;
  background: var(--c-off-white);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--c-cobalt);
}
.cookie-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cookie-badge--essential { background: rgba(37,194,110,.1); color: var(--c-green-dark); }
.cookie-badge--func      { background: rgba(30,95,216,.1);  color: var(--c-cobalt); }
.cookie-badge--analyt    { background: rgba(124,58,237,.1); color: #7c3aed; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .terms-panel.active {
    grid-template-columns: 1fr;
  }
  .terms-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .toc-title { display: none; }
  .dt-row { grid-template-columns: 100px 1fr 1fr; }
  .ct-row { grid-template-columns: 110px 90px 70px 1fr; }
}
@media (max-width: 640px) {
  .terms-body { padding: 1.375rem; }
  .terms-tabs { flex-wrap: wrap; }
  .dt-row { grid-template-columns: 1fr 1fr; }
  .dt-row span:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--c-border); }
  .ct-row { grid-template-columns: 1fr 1fr; }
  .ct-row span:nth-child(3),
  .ct-row span:nth-child(4) { grid-column: 1 / -1; border-top: 1px solid var(--c-border); }
}

/* ── Cabeçalho público ───────────────────────────────────────── */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.public-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.public-nav-logo {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--c-navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.public-nav-logo span { color: var(--c-green); }
.public-nav-actions { display: flex; align-items: center; gap: 1.25rem; }

/* ── Corpo da página ─────────────────────────────────────────── */
.terms-page-wrapper .page-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ── Rodapé público ──────────────────────────────────────────── */
.terms-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--c-text-3);
  border-top: 1px solid var(--c-border);
}
.terms-footer a {
  color: var(--c-text-3);
  text-decoration: none;
  font-weight: 600;
}
.terms-footer a:hover { color: var(--c-navy); }
