.termos-page {
  background:
    radial-gradient(circle at top left, rgba(227, 6, 19, 0.12), transparent 30%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 45%, #030303 100%);
}

.termos-main {
  padding: calc(var(--header-offset, 92px) + 28px) 0 72px;
  color: #f8fafc;
}

.termos-hero {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding-bottom: 32px;
}

.termos-eyebrow {
  display: inline-block;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ff8b93;
  margin-bottom: 14px;
}

.termos-hero h1 {
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 14px;
  color: #fff;
}

.termos-hero p {
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 62ch;
}

.termos-updated {
  margin-top: 10px;
  font-size: .82rem;
  color: #94a3b8;
}

.termos-layout {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.termos-toc {
  position: sticky;
  top: calc(var(--header-offset, 92px) + 16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.termos-toc-label {
  display: block;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
}

.termos-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.termos-toc a {
  display: block;
  font-size: .86rem;
  color: #cbd5e1;
  text-decoration: none;
  padding: 4px 0;
  transition: color .2s ease;
}

.termos-toc a:hover {
  color: #ff8b93;
}

.termos-content {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 34px clamp(20px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.termos-content section {
  scroll-margin-top: calc(var(--header-offset, 92px) + 16px);
}

.termos-content section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.termos-content h2 {
  font-family: Montserrat, sans-serif;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 12px;
}

.termos-content p {
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0 0 12px;
}

.termos-content ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: #cbd5e1;
  line-height: 1.7;
}

.termos-content li + li {
  margin-top: 6px;
}

.termos-content a {
  color: #ff8b93;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.termos-content a:hover {
  color: #ffb3ba;
}

/* ===== Tema claro ===== */

body.theme-light .termos-page {
  background: linear-gradient(180deg, #f6f8fb, #e9edf5);
}

body.theme-light .termos-main {
  color: #0f172a;
}

body.theme-light .termos-eyebrow {
  color: #E30613;
}

body.theme-light .termos-hero h1 {
  color: #0f172a;
}

body.theme-light .termos-hero p,
body.theme-light .termos-updated {
  color: #475569;
}

body.theme-light .termos-toc,
body.theme-light .termos-content {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.theme-light .termos-toc-label {
  color: #64748b;
}

body.theme-light .termos-toc a {
  color: #334155;
}

body.theme-light .termos-toc a:hover {
  color: #E30613;
}

body.theme-light .termos-content section + section {
  border-top-color: rgba(15, 23, 42, 0.08);
}

body.theme-light .termos-content h2 {
  color: #0f172a;
}

body.theme-light .termos-content p,
body.theme-light .termos-content ul {
  color: #334155;
}

body.theme-light .termos-content a {
  color: #E30613;
}

body.theme-light .termos-content a:hover {
  color: #b8050f;
}

/* ===== Responsivo ===== */

@media (max-width: 860px) {
  .termos-layout {
    grid-template-columns: 1fr;
  }

  .termos-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .termos-main {
    padding: calc(var(--header-offset, 92px) + 20px) 0 56px;
  }

  .termos-content {
    padding: 26px 18px;
  }
}
