/* /termos/ only */

.termos-page .pub-updated {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--sb-muted);
}

.termos-band {
  padding-bottom: 20px;
}

.termos-body {
  padding-top: 24px;
  padding-bottom: 40px;
}

.termos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.termos-main {
  display: grid;
  gap: 12px;
}

.termos-lead {
  margin: 0;
  color: var(--sb-muted);
  line-height: 1.55;
}

.termos-note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--sb-ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.termos-card {
  scroll-margin-top: 80px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 18px 16px;
  border: 1px solid var(--sb-line);
  border-radius: 18px;
  background: #fff;
}

.termos-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: var(--sb-blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.termos-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.termos-card p {
  margin: 0 0 10px;
  color: var(--sb-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.termos-card p:last-child {
  margin-bottom: 0;
}

.termos-card ul {
  margin: 0 0 10px;
  padding-left: 1.2em;
  color: var(--sb-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.termos-card a {
  color: var(--sb-blue);
  font-weight: 650;
}

.termos-side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 76px;
}

.termos-hero-card {
  padding: 18px 18px 8px;
  border: 1px solid var(--sb-line);
  border-radius: 18px;
  background: #f8fafc;
  overflow: hidden;
}

.termos-hero-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.termos-hero-card p {
  margin: 0 0 8px;
  color: var(--sb-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.termos-hero-card img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 4px;
}

.termos-toc {
  padding: 18px;
  border: 1px solid var(--sb-line);
  border-radius: 18px;
  background: #fff;
}

.termos-toc h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.termos-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.termos-toc li {
  counter-increment: toc;
}

.termos-toc a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--sb-line);
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}

.termos-toc li:first-child a {
  border-top: 0;
}

.termos-toc a::before {
  content: counter(toc);
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: var(--sb-blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.termos-toc a:hover {
  color: var(--sb-blue);
}

.termos-tip {
  padding: 16px 18px;
  border-radius: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.termos-tip strong {
  display: block;
  margin-bottom: 4px;
}

.termos-tip p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sb-muted);
  line-height: 1.45;
}

.termos-tip a {
  color: var(--sb-blue);
  font-weight: 650;
}

@media (max-width: 900px) {
  .termos-grid {
    grid-template-columns: 1fr;
  }

  .termos-side {
    position: static;
  }
}

html[data-theme="dark"] .termos-card,
html[data-theme="dark"] .termos-toc {
  background: #151b28;
}

html[data-theme="dark"] .termos-hero-card {
  background: #151b28;
}

html[data-theme="dark"] .termos-note {
  background: #1e3a5f;
  color: #e5e7eb;
}

html[data-theme="dark"] .termos-tip {
  background: #3f3a1d;
  border-color: #a16207;
}

/* ================= /termos/ only (mockup layout) =================
   Scoped to .termos-only so /privacidade/ and /cookies/ keep their look. */

.termos-only {
  --tm-navy: #142a63;
  --tm-blue: #1d4ed8;
  --tm-text: #3f4d66;
  --tm-line: #e6ebf3;
  --tm-yellow: #f7c948;
}

body.page-termos .site-main {
  background: linear-gradient(180deg, #f5f9ff 0%, #fafcff 420px, #fff 100%);
}

.termos-only .sobre-shell {
  max-width: 1300px;
}

.termos-only.sobre-page .termos-body {
  padding-top: 80px;
  padding-bottom: 48px;
}

.termos-only .sobre-crumb {
  gap: 12px;
  margin: 0 0 22px;
  font-size: 0.9rem;
}

.termos-only .sobre-crumb > span:not([aria-hidden]) {
  color: var(--tm-navy);
}

.termos-only .sobre-crumb .is-current {
  color: #475569;
}

.termos-crumb-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.termos-only .sobre-crumb a {
  color: var(--tm-navy);
  font-weight: 500;
}

.termos-only .termos-crumb-home svg {
  color: var(--tm-blue);
}

.termos-only .termos-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 458px);
  gap: 38px;
}

.termos-only .termos-main {
  gap: 14px;
}

.termos-head {
  margin-bottom: 10px;
}

.termos-only .sobre-kicker {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--tm-blue);
}

.termos-only h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--tm-navy);
}

.termos-only .pub-updated {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.termos-only .pub-updated svg {
  color: #94a3b8;
}

.termos-only .termos-lead {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--tm-text);
}

.termos-only .termos-lead strong {
  color: #1f2937;
}

.termos-only .termos-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 6px;
  padding: 12px 20px;
  border: 1px solid #dbe6f7;
  border-radius: 12px;
  background: #eaf1fc;
  font-size: 0.95rem;
  color: #1f2937;
}

.termos-only .termos-note svg {
  flex: none;
  color: var(--tm-blue);
}

/* section cards */

.termos-only .termos-card {
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0;
  padding: 18px 18px 20px;
  border-color: var(--tm-line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.termos-only .termos-num {
  width: 36px;
  height: 36px;
  margin-top: 2px;
  background: #e6ecf5;
  color: var(--tm-navy);
  font-size: 0.9rem;
}

.termos-card-ico {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 2px 24px 0 18px;
  border-radius: 16px;
  background: #eaf1fc;
  color: var(--tm-blue);
}

.termos-only .termos-card-ico svg {
  width: 30px;
  height: 30px;
  max-width: none;
}

.termos-card-body {
  min-width: 0;
  padding-top: 6px;
}

.termos-only .termos-card h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--tm-navy);
}

.termos-only .termos-card p,
.termos-only .termos-card ul {
  font-size: 0.93rem;
  color: #5b6b85;
}

.termos-only .termos-card a {
  color: var(--tm-blue);
  font-weight: 500;
}

.termos-only .termos-card .termos-note {
  margin: 14px 0 0;
  padding: 10px 16px;
  border: 0;
  font-size: 0.88rem;
  color: #1f2937;
}

/* sidebar */

.termos-only .termos-side {
  gap: 18px;
  top: 80px;
}

.termos-only .termos-hero-card {
  position: relative;
  padding: 26px 22px 20px;
  border-color: var(--tm-line);
  border-radius: 16px;
  background:
    radial-gradient(260px 220px at 82% 30%, #dcebfd 0%, rgba(220, 235, 253, 0) 72%),
    linear-gradient(180deg, #f7faff 0%, #f3f7fe 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.termos-hero-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.termos-hero-copy {
  flex: 1;
  min-width: 0;
}

.termos-only .termos-hero-card h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--tm-navy);
}

.termos-only .termos-hero-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #475569;
}

.termos-hero-art {
  position: relative;
  flex: none;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  background: #c9ddf6;
}

.termos-only .termos-hero-art img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250%;
  max-width: none;
  height: auto;
  margin: 0;
  transform: translate(-50%, -50%);
}

.termos-only .termos-hero-quote {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 16px 0 0 12px;
}

.termos-only .termos-hero-quote svg {
  flex: none;
  width: 32px;
  height: 32px;
  max-width: none;
  color: #9ab8e8;
}

.termos-only .termos-note svg {
  width: 22px;
  height: 22px;
  max-width: none;
}

.termos-hero-quote span {
  position: relative;
  padding: 6px 0 14px;
  font-style: italic;
  font-size: 1rem;
  color: #1f2937;
}

.termos-hero-quote span::after {
  content: "";
  position: absolute;
  left: 38%;
  bottom: 0;
  width: 66px;
  height: 3px;
  border-radius: 999px;
  background: var(--tm-yellow);
}

.termos-only .termos-toc {
  padding: 20px 20px 18px;
  border-color: var(--tm-line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.termos-only .termos-toc h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 1.08rem;
  color: var(--tm-navy);
}

.termos-only .termos-toc h2 svg {
  color: var(--tm-blue);
}

.termos-only .termos-toc ol {
  padding: 6px 8px;
  border: 1px solid #eef2f8;
  border-radius: 12px;
}

.termos-only .termos-toc a {
  gap: 20px;
  padding: 7px 0;
  border-top: 0;
  font-size: 0.92rem;
  color: #374151;
}

.termos-only .termos-toc a::before {
  width: 30px;
  height: 30px;
  background: #eef3fa;
  color: var(--tm-navy);
  font-size: 0.8rem;
}

.termos-only .termos-toc a:hover {
  color: var(--tm-blue);
}

.termos-only .termos-tip {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding: 18px 22px 20px;
  border-color: #f5dd8c;
  border-radius: 14px;
  background: #fff8df;
}

.termos-tip-ico svg {
  display: block;
  width: 40px;
  height: 40px;
  max-width: none;
}

.termos-only .termos-tip strong {
  margin: 12px 0 6px;
  font-size: 1.05rem;
  color: var(--tm-navy);
}

.termos-only .termos-tip p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
}

.termos-only .termos-tip a {
  color: var(--tm-blue);
  font-weight: 500;
}

/* responsive */

@media (max-width: 1100px) {
  .termos-only .termos-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
  }

  .termos-hero-art {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 900px) {
  .termos-only.sobre-page .termos-body {
    padding-top: 84px;
  }

  .termos-only .termos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .termos-only .termos-card {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    padding: 16px;
  }

  .termos-card-ico {
    display: none;
  }

  .termos-hero-art {
    width: 96px;
    height: 96px;
  }

  .termos-only .termos-hero-card h2 {
    font-size: 1.25rem;
  }
}

/* dark */

html[data-theme="dark"] .termos-only {
  --tm-navy: #dbeafe;
  --tm-blue: #7aa7f8;
  --tm-text: #a8b6cc;
  --tm-line: #2b3547;
}

html[data-theme="dark"] body.page-termos .site-main {
  background: #0f1420;
}

html[data-theme="dark"] .termos-only .termos-lead strong,
html[data-theme="dark"] .termos-only .termos-note,
html[data-theme="dark"] .termos-hero-quote span {
  color: #e5e7eb;
}

html[data-theme="dark"] .termos-only .termos-card p,
html[data-theme="dark"] .termos-only .termos-card ul,
html[data-theme="dark"] .termos-only .termos-hero-card p,
html[data-theme="dark"] .termos-only .termos-toc a,
html[data-theme="dark"] .termos-only .termos-tip p {
  color: #a8b6cc;
}

html[data-theme="dark"] .termos-only .termos-note {
  background: #16233a;
  border-color: #23344f;
}

html[data-theme="dark"] .termos-only .termos-num,
html[data-theme="dark"] .termos-only .termos-toc a::before {
  background: #1e2a44;
  color: #dbeafe;
}

html[data-theme="dark"] .termos-card-ico {
  background: #1e2a44;
  color: #93c5fd;
}

html[data-theme="dark"] .termos-only .termos-hero-card {
  background: linear-gradient(180deg, #16203a 0%, #131a2b 100%);
}

html[data-theme="dark"] .termos-only .termos-toc ol {
  border-color: #2b3547;
}

html[data-theme="dark"] .termos-only .termos-tip {
  background: #2c2814;
  border-color: #6b5412;
}

html[data-theme="dark"] .termos-tip-ico path:last-child {
  fill: #e5e7eb;
}
