/* Produção TPE (trafegoparaespecialistas.com.br): componentes novos sobre styles.css, que é
   cópia byte a byte de candidate/styles.css. Aviso de privacidade, modal da agenda, links do
   rodapé e páginas auxiliares (política e 404). Paleta e tipografia da página. */

/* ---------- Rodapé: política e preferências ---------- */

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
}

/* Mesmo peso e alvo de toque dos links do rodapé. */
.site-footer__button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* ---------- Aviso de privacidade: não bloqueia a leitura; Recusar e Aceitar iguais ---------- */

.consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  padding: 0 clamp(10px, 2.2vw, 32px) clamp(10px, 2vw, 20px);
  pointer-events: none;
}

.consent__inner {
  display: grid;
  gap: 14px;
  width: min(100%, 820px);
  margin-inline: auto;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--hair), 0 24px 48px -28px rgb(15 48 56 / 55%);
  pointer-events: auto;
}

.consent__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.consent__text,
.consent__current {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.consent__text a {
  font-weight: 700;
}

.consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.consent__btn {
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}

.consent__btn:hover {
  background: var(--mist);
}

@media (min-width: 760px) {
  .consent__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 28px;
    padding: 20px 24px;
  }

  .consent__actions {
    grid-template-columns: repeat(2, auto);
  }

  .consent__btn {
    min-width: 132px;
  }
}

/* ---------- Modal da agenda ---------- */

.dialog--booking h2 {
  margin-top: 0;
}

.booking {
  margin-top: 4px;
}

.booking__slot {
  margin-top: 20px;
}

/* Carregando ou falha da agenda; some quando a Cal.com avisa que está pronta. */
.booking__status {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* Altura própria para o embed: a agenda rola dentro do iframe, não a página. */
.booking__frame {
  display: block;
  width: 100%;
  height: min(720px, calc(100dvh - 200px));
  min-height: 420px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.booking__fallback {
  margin-top: 12px;
  font-size: 0.9375rem;
}

.booking__fallback a {
  font-weight: 700;
}

.dialog--booking[data-booking-mode="embed"] {
  width: min(980px, calc(100vw - 24px));
  overflow: auto;
}

/* No celular, o embed ocupa a tela inteira. */
@media (max-width: 640px) {
  .dialog--booking[data-booking-mode="embed"] {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .dialog--booking[data-booking-mode="embed"] .dialog__body {
    padding: 20px 14px;
  }

  .dialog--booking[data-booking-mode="embed"] .booking__frame {
    height: calc(100dvh - 150px);
    min-height: 0;
  }
}

/* ---------- Páginas auxiliares: política de privacidade e 404 ---------- */

.legal {
  padding-block: clamp(112px, 12vw, 152px) var(--section-space);
}

.legal__inner {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal h2 {
  margin-top: 40px;
  font-size: clamp(1.25rem, 1.15rem + 0.3vw, 1.375rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.legal p,
.legal ul {
  margin-top: 12px;
  color: var(--ink-2);
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 6px;
}

.legal code {
  font-size: 0.9em;
}

.legal__updated {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.legal .text-link {
  margin-top: 20px;
}

/* CTAs de agendamento são links: sem sublinhado e com o rótulo centralizado, como os botões. */
a.hero__cta,
a.btn {
  text-align: center;
  text-decoration: none;
}
