/* ==========================================================================
   Iva · Termos de Uso — usa as cores, botões, menu e rodapé de home.css
   Laranja = atenção · vermelho = emergência
   ========================================================================== */
.iva-terms { --warn-ink: #8A4B00; --sos: #C62828; --sos-ink: #7A1B1B; --sos-soft: #FDECEC; }

/* ---------- topo ---------- */
.t-hero { padding: clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px) 0; }
.t-hero__box {
  position: relative; overflow: clip; isolation: isolate;
  padding: calc(var(--nav-h) + clamp(36px, 5vw, 64px)) 0 clamp(36px, 5vw, 64px);
  border-radius: clamp(24px, 3vw, 44px);
  background: var(--deep); color: #fff;
}
.t-hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(44% 70% at 86% 32%, rgba(180, 231, 23, .2), transparent 70%),
    radial-gradient(42% 60% at 0% 100%, rgba(43, 182, 115, .42), transparent 70%);
}
.t-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 4vw, 64px); }
.t-hero .eyebrow .i { width: 16px; height: 16px; color: var(--orange); }
.t-hero__title {
  margin-top: 18px;
  font-size: clamp(38px, 5.4vw, 78px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600;
  color: #fff; text-wrap: balance;
}
.t-hero__copy .lead { max-width: 52ch; }
.t-hero__meta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.t-hero__meta .i { width: 16px; height: 16px; color: var(--lime); }
.t-hero__img { width: clamp(200px, 24vw, 330px); border-radius: clamp(22px, 2.4vw, 32px); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12); }

/* ---------- resumo ---------- */
.t-sum { padding-top: clamp(24px, 3.4vw, 40px); }
.t-sum__card {
  padding: clamp(20px, 3.2vw, 40px); border-radius: clamp(24px, 3vw, 36px);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(248, 153, 28, .55), 0 30px 60px -40px rgba(28, 75, 66, .5);
}
.t-sum__head { display: flex; align-items: center; gap: 16px; }
.t-sum__ico { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 18px; background: var(--orange); color: #fff; box-shadow: 0 14px 28px -14px rgba(248, 153, 28, .9); }
.t-sum__ico .i { width: 28px; height: 28px; }
.t-sum__kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--warn-ink); }
.t-sum__title { margin-top: 4px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; color: var(--ink); }
.t-sum__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.t-sum__list li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--cream); }
.t-sum__list li.is-key { background: var(--orange-soft); box-shadow: inset 0 0 0 1.5px rgba(248, 153, 28, .55); }
.t-sum__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.t-sum__dot { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--deep); color: var(--lime); }
.t-sum__dot .i { width: 19px; height: 19px; }
.t-sum__list li.is-key .t-sum__dot { background: var(--orange); color: #fff; }
.t-sum__list p { font-size: 16px; line-height: 1.5; color: var(--text); }
.t-sum__list strong { color: var(--ink); }

/* emergência */
.t-sos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; padding: 16px 18px; border-radius: 20px; background: var(--sos-soft); color: var(--sos-ink); }
.t-sos__lead { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.t-sos__lead .i { width: 22px; height: 22px; color: var(--sos); }
.t-sos__lead strong { color: var(--sos-ink); }
.sos { display: flex; flex-wrap: wrap; gap: 8px; }
.sos a {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--sos-ink); background: #fff;
  box-shadow: inset 0 0 0 1px rgba(198, 40, 40, .25);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.sos b { font-size: 16px; font-weight: 700; color: var(--sos); }
.sos a:hover { background: var(--sos); color: #fff; }
.sos a:hover b { color: #fff; }

/* ---------- sumário + texto ---------- */
.t-body {
  display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start;
  padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(8px, 2vw, 24px);
}
.t-toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.t-toc__box {
  max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; overscroll-behavior: contain;
  padding: 18px 12px 14px; border-radius: 24px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(28, 75, 66, .08);
}
.t-toc summary {
  display: flex; align-items: center; gap: 10px; padding: 0 10px; list-style: none;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.t-toc summary::-webkit-details-marker { display: none; }
.t-toc summary .i { width: 17px; height: 17px; color: var(--green); }
.t-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.t-toc li { counter-increment: toc; }
.t-toc a { display: grid; grid-template-columns: 24px 1fr; gap: 6px; padding: 7px 10px; border-radius: 12px; font-size: 14.5px; line-height: 1.35; color: var(--text); transition: background-color .25s var(--ease), color .25s var(--ease); }
.t-toc ol a::before { content: counter(toc); font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.t-toc .t-toc__top { display: block; margin: 12px 0 2px; font-weight: 600; color: var(--warn-ink); }
.t-toc a:hover { background: var(--cream); color: var(--ink); }
.t-toc a[aria-current] { background: var(--deep); color: #fff; }
.t-toc a[aria-current]::before { color: var(--lime); }
@media (min-width: 961px) {
  .t-toc summary { pointer-events: none; }
}

.t-doc { max-width: 78ch; }
.t-sec { padding: clamp(26px, 3.4vw, 40px) 0; border-top: 1px solid var(--line); }
.t-sec:first-child { padding-top: 0; border-top: 0; }
.t-sec h2 { display: flex; align-items: flex-start; gap: 14px; font-size: clamp(23px, 2.3vw, 31px); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; color: var(--ink); text-wrap: balance; }
.t-sec__n {
  display: inline-grid; place-items: center; flex: none; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 13px;
  font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--lime); background: var(--deep);
}
.t-sec h2 > span:last-child { padding-top: 4px; }
.t-sec h3 { margin: 26px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.t-sec p, .t-sec li { font-size: 17px; line-height: 1.7; color: var(--text); }
.t-sec p { margin-top: 14px; }
.t-sec ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.t-sec ul li { position: relative; padding-left: 26px; }
.t-sec ul li::before { content: ""; position: absolute; left: 5px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.t-sec .contact-list li::before { background: var(--orange); }
.t-sec strong { font-weight: 600; color: var(--ink); }
.t-sec a { font-weight: 500; color: var(--deep); text-decoration: underline; text-decoration-color: rgba(43, 182, 115, .6); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .25s; }
.t-sec a:hover { text-decoration-color: var(--deep); }
.callout { margin-top: 18px; padding: 16px 20px; border-radius: 18px; }
.callout p { margin-top: 0; }
.callout--warn { background: var(--orange-soft); box-shadow: inset 4px 0 0 var(--orange); }
.callout--danger { background: var(--sos-soft); box-shadow: inset 4px 0 0 var(--sos); }
.callout--danger p, .callout--danger strong, .callout--danger a { color: var(--sos-ink); }
.t-doc__end { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* rodapé desta página: dois botões no lugar de um */
.foot__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }

/* ---------- telas menores ---------- */
@media (max-width: 960px) {
  .t-body { grid-template-columns: 1fr; }
  .t-toc { position: static; }
  .t-toc__box { max-height: none; padding: 6px; }
  .t-toc summary {
    justify-content: flex-start; padding: 12px 14px; border-radius: 18px; cursor: pointer;
    font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--deep);
  }
  .t-toc summary::after { content: ""; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
  .t-toc__box[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .t-toc .t-toc__top { margin-top: 4px; }
  .t-toc ol { padding-bottom: 6px; }
}
@media (max-width: 760px) {
  .t-sum__list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .t-hero__grid { grid-template-columns: 1fr; }
  .t-hero__img { order: -1; width: 150px; margin: -10px auto -14px; }
  .t-hero__copy { text-align: left; }
  .t-sum__head { align-items: flex-start; }
  .t-sum__ico { width: 48px; height: 48px; border-radius: 15px; }
  .t-sum__ico .i { width: 24px; height: 24px; }
  .t-sum__list li { padding: 14px; }
  .t-sec p, .t-sec li { font-size: 16.5px; }
  .t-sec h2 { gap: 12px; }
  .t-sec__n { min-width: 34px; height: 34px; border-radius: 11px; font-size: 15px; }
  .foot__ctas { width: 100%; margin-left: 0; }
  .foot__ctas .btn { flex: 1 1 100%; }
}

/* ---------- impressão ---------- */
@media print {
  .nav, .progress, .skip, .t-toc, .foot__cta, .t-hero__img, .h-widget-float { display: none !important; }
  body.iva-home { background: #fff; }
  .t-hero { padding: 0; }
  .t-hero__box { padding: 0; background: none; color: #000; }
  .t-hero__glow { display: none; }
  .t-hero__title, .t-hero .lead, .t-hero__meta, .t-hero .eyebrow { color: #000 !important; background: none !important; box-shadow: none !important; }
  .t-body { display: block; }
  .t-sum__card { box-shadow: none; border: 1px solid #999; }
  .t-sec { break-inside: avoid-page; }
}
