/* Vendas na Mão public site: brand tokens (brand manual, section "Cores"), type, width, legal pages and footer. */
@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --marinho: #062b4f;
  --marinho-2: #0a3a68;
  --azul: #008bd8;
  --azul-texto: #0079c2;
  /* Darker blue for small bold labels on light tints, where --azul-texto falls under 4.5:1. */
  --azul-texto-forte: #0069a8;
  --ciano: #8ad6f7;
  --cinza: #55677a;
  --linha: #dbe3ea;
  --fundo: #f2f5f8;
  --branco: #ffffff;
  --agente: #0a7d6c;
  --agente-suave: #dcf3ee;
  --agente-texto: #076457;
  --largura: 1440px;
  --margem: clamp(24px, 5vw, 64px);
  --r: 12px;
  --rl: 20px;
  --titulo: "Sora", system-ui, sans-serif;
  --texto: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.55;
  color: var(--marinho);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--azul-texto);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--azul-texto);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  font-family: var(--titulo);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}
p {
  margin: 0;
}

.largura {
  width: 100%;
  max-width: calc(var(--largura) + 2 * var(--margem));
  margin-inline: auto;
  padding-inline: var(--margem);
}

/* The tick of the mark, alone: the sign of something done (manual, "O traço como recurso"). */
.traco {
  display: inline-block;
  flex: none;
  width: 1.05em;
  height: 0.87em;
  background: var(--azul);
  -webkit-mask: url("/marca/traco.svg") center / contain no-repeat;
  mask: url("/marca/traco.svg") center / contain no-repeat;
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 1.4em;
  border-radius: var(--r);
  font: 700 16px/1 var(--texto);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.botao--principal {
  background: var(--azul-texto);
  color: var(--branco);
}
.botao--principal:hover {
  background: #00659f;
}
.botao--claro {
  background: var(--branco);
  color: var(--marinho);
}
.botao--claro:hover {
  background: var(--fundo);
}
.botao--linha {
  border: 1.5px solid currentColor;
  color: inherit;
}

/* Legal pages */
.topo {
  border-bottom: 1px solid var(--linha);
  background: var(--branco);
}
.topo__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.topo__marca img {
  width: 190px;
  height: auto;
}
.topo__idioma {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.legal {
  max-width: calc(820px + 2 * var(--margem));
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.legal__rotulo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul-texto);
  margin-bottom: 14px;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 48px);
}
.legal__versao {
  margin-top: 14px;
  color: var(--cinza);
  font-size: 15px;
}
.legal__texto {
  margin-top: 40px;
}
.legal__texto h2 {
  font-size: 22px;
  margin: 44px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--linha);
}
.legal__texto h2:first-child {
  margin-top: 0;
}
.legal__texto h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}
.legal__texto p,
.legal__texto li {
  color: #22384f;
}
.legal__texto p + p,
.legal__texto ul + p,
.legal__texto ol + p {
  margin-top: 12px;
}
.legal__texto ul,
.legal__texto ol {
  margin: 12px 0 0;
  padding-left: 1.3em;
}
.legal__texto li + li {
  margin-top: 6px;
}
.legal__resumo {
  background: var(--fundo);
  border-radius: var(--rl);
  padding: 24px 28px;
}
.legal__resumo p {
  font-weight: 600;
}
.legal__passos {
  counter-reset: passo;
  list-style: none;
  padding-left: 0 !important;
}
.legal__passos li {
  counter-increment: passo;
  position: relative;
  padding-left: 40px;
}
.legal__passos li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--marinho);
  color: var(--branco);
  font: 700 13px/26px var(--texto);
  text-align: center;
}

/* Footer */
.rodape {
  background: var(--marinho);
  color: #c9d7e4;
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  font-size: 15px;
}
.rodape a {
  color: var(--branco);
  text-decoration: none;
}
.rodape a:hover {
  color: var(--ciano);
}
.rodape a:focus-visible {
  outline-color: var(--ciano);
}
.rodape__grade {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.rodape__marca img {
  width: 190px;
  height: auto;
  margin-bottom: 18px;
}
.rodape__empresa {
  margin: 0;
  color: #93a9be;
  font-size: 14px;
}
/* Last row: company line and the pH Digital credit (agency standard: centered on mobile). */
.rodape__fim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.rodape .rodape__credito {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9d7e4;
  font-size: 14px;
  white-space: nowrap;
}
.rodape__credito img {
  width: 54px;
  height: 40px;
}
.rodape__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.rodape__contato {
  display: grid;
  gap: 10px;
  align-content: start;
}
@media (max-width: 760px) {
  .rodape__grade {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .rodape__fim {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  body {
    font-size: 16px;
  }
}

/* Not-found page (404). */
.erro {
  max-width: calc(820px + 2 * var(--margem));
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.erro h1 {
  font-size: clamp(30px, 4.5vw, 46px);
}
.erro__texto {
  margin-top: 16px;
  color: var(--cinza);
}

/* Footer button that reopens the cookie preferences (looks like the footer links). */
.rodape__botao {
  padding: 0;
  border: 0;
  background: none;
  color: var(--branco);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rodape__botao:hover {
  color: var(--ciano);
}
.rodape__botao:focus-visible {
  outline-color: var(--ciano);
}

/* Cookie notice and preferences (agency pattern). Shown only while the head script marks the choice as pending. */
.consentimento {
  display: none;
  position: fixed;
  z-index: 60;
  left: 24px;
  bottom: 24px;
  width: min(460px, calc(100% - 48px));
  padding: 24px;
  border: 1px solid var(--linha);
  border-radius: var(--rl);
  background: var(--branco);
  color: var(--marinho);
  box-shadow: 0 24px 70px rgba(6, 43, 79, 0.25);
}
.consentimento-pendente .consentimento {
  display: block;
}
.consentimento__titulo {
  font: 700 17px/1.3 var(--titulo);
}
.consentimento__texto {
  margin-top: 8px;
  color: #22384f;
  font-size: 14px;
  line-height: 1.6;
}
.consentimento__texto a {
  color: var(--azul-texto-forte);
  font-weight: 700;
  text-underline-offset: 3px;
}
.consentimento__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.consentimento__botao {
  flex: 1 1 auto;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--r);
  background: var(--azul-texto);
  color: var(--branco);
  font: 700 14px/1.2 var(--texto);
  cursor: pointer;
  transition: background-color 160ms ease;
}
.consentimento__botao:hover {
  background: #00659f;
}
.consentimento__botao.is-discreto {
  background: var(--fundo);
  color: var(--azul-texto-forte);
}
.consentimento__botao.is-discreto:hover {
  background: #e2eaf1;
}
.consentimento-prefs {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--rl);
  color: var(--marinho);
  box-shadow: 0 30px 90px rgba(6, 43, 79, 0.35);
}
.consentimento-prefs::backdrop {
  background: rgba(6, 43, 79, 0.6);
}
.consentimento-prefs__corpo {
  padding: 28px;
}
.consentimento-prefs__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.consentimento-prefs h2 {
  font-size: 24px;
}
.consentimento-prefs__fechar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--fundo);
  color: var(--azul-texto-forte);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.consentimento__categoria {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linha);
}
.consentimento__categoria b {
  font-size: 15px;
}
.consentimento__categoria p {
  margin-top: 2px;
  color: #22384f;
  font-size: 13px;
  line-height: 1.6;
}
.consentimento__sempre {
  flex: none;
  color: var(--azul-texto-forte);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.consentimento__categoria input {
  flex: none;
  position: relative;
  width: 46px;
  height: 26px;
  margin: 0;
  border: 0;
  border-radius: 30px;
  background: #6f8295;
  appearance: none;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.consentimento__categoria input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--branco);
  transition: transform 160ms ease;
}
.consentimento__categoria input:checked {
  background: var(--azul-texto);
}
.consentimento__categoria input:checked::after {
  transform: translateX(20px);
}
.consentimento__categoria input:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .consentimento {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 20px;
  }
  .consentimento__acoes {
    gap: 6px;
  }
  .consentimento__botao {
    flex: 1 1 30%;
    padding: 10px 12px;
  }
  .consentimento-prefs__corpo {
    padding: 22px;
  }
}

/* Cookie table of the privacy pages. */
.legal__tabela {
  margin-top: 16px;
  overflow-x: auto;
}
.legal__tabela table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.legal__tabela caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 8px;
}
.legal__tabela th,
.legal__tabela td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--linha);
  text-align: left;
  vertical-align: top;
  color: #22384f;
}
.legal__tabela th {
  color: var(--marinho);
}
.legal__tabela code {
  font-size: 14px;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .consentimento__botao,
  .consentimento__categoria input,
  .consentimento__categoria input::after {
    transition: none;
  }
}
