/* Obrigado | Corporal Class — medidas, cores e espaçamentos copiados da página antiga (1440 e 390 px).
   A página antiga trocava de layout em 800 px. */

:root {
  --vermelho: #d8525d;
  --rodape: #a82f38;
  --rodape-linha: #ed727e;
  --creme: #fff3d6;
  --verde: #4ede42;
  --verde-claro: #60ec55;
  --verde-escuro: #154211;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--rodape);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

h2,
p {
  margin: 0;
}

/* como na página antiga: os espaços do texto contam na quebra de linha */
h1,
h2,
p,
.botao {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

.topo,
.rodape {
  position: relative;
}

/* ---------- 1. Comunicado + vídeo ---------- */

.topo {
  padding: 132px 0;
  background: var(--vermelho) url(fundo-topo.jpg) 50% 50% / cover no-repeat;
}

/* No computador o conteúdo da página antiga fica numa coluna de 960 px que começa 490 px à esquerda do meio:
   textos e botão começam 46 px dentro dela e o vídeo 495 px. */
.topo__grade {
  display: grid;
  grid-template-columns: minmax(0, 413px) minmax(0, 440px);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "texto video"
    "botao video";
  column-gap: 36px;
  width: min(895px, 100% - 20px);
  margin-left: max(10px, calc(50% - 444px));
}

.topo__texto {
  grid-area: texto;
}

.topo__logo {
  width: 212px;
  height: 30px;
}

.topo__titulo {
  width: 328px;
  max-width: 100%;
  margin: 31px 0 0 4px;
  font-size: 32px;
  line-height: 38.4px;
  font-weight: 500;
}

.topo__sub {
  width: 315px;
  max-width: 100%;
  margin-top: 20.22px;
  font-size: 18px;
  line-height: 25.2px;
  font-weight: 400;
}

.topo__video {
  grid-area: video;
  width: 440px;
  max-width: 100%;
  height: 484px;
}

.topo__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
  background: #000;
}

.botao {
  grid-area: botao;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 413px;
  max-width: 100%;
  min-height: 70px;
  padding: 8px;
  border-radius: 100px;
  background: var(--verde);
  color: var(--verde-escuro);
  font-size: 18px;
  line-height: 23.4px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color .25s ease-out, color .25s ease-out;
}

.botao:hover,
.botao:active,
.botao:focus-visible {
  background: var(--verde-claro);
  color: var(--verde-escuro);
}

.botao:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- 2. Rodapé ---------- */

.rodape {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 110.28px max(10px, calc(50% - 490px)) 110.64px;
  padding-right: max(10px, calc(50% - 470px));
  background: var(--rodape);
  color: var(--creme);
  text-align: center;
}

.rodape__criado {
  font-size: 12px;
  line-height: 16.8px;
  letter-spacing: 5px;
}

.rodape__logo {
  width: 340.27px;
  height: auto;
  aspect-ratio: 1021 / 119;
  margin-top: 11.98px;
}

.rodape__legal {
  width: 721px;
  max-width: 100%;
  margin-top: 74.94px;
  font-size: 14px;
  line-height: 25.2px;
}

/* no original há uma linha em branco entre um parágrafo e outro */
.rodape__legal p + p {
  margin-top: 25.2px;
}

.rodape__empresa {
  color: #fff;
}

.rodape__linha {
  width: 721px;
  max-width: 100%;
  height: 0;
  margin: 25.09px 0 0;
  border: 0;
  border-top: 1px solid var(--rodape-linha);
}

.rodape__termos {
  width: 619px;
  max-width: 100%;
  margin-top: 25px;
  font-size: 12px;
  line-height: 16.8px;
}

/* ---------- Celular ---------- */

@media (max-width: 800px) {
  .topo {
    padding: 24px 15px 108px;
    background-position: 29.2706% 83.2185%;
  }

  .topo__grade {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    margin: 0;
    text-align: center;
  }

  .topo__texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
  }

  .topo__logo {
    width: 177px;
    height: 25px;
    margin-left: 1px;
  }

  .topo__titulo {
    width: 304px;
    margin: 16px 0 0;
    font-size: 22px;
    line-height: 26.4px;
  }

  .topo__sub {
    width: 370px;
    max-width: calc(100% + 10px);
    margin: 10.22px -5px 0;
    font-size: 16px;
    line-height: 19.2px;
  }

  .topo__video {
    width: 280px;
    height: 492px;
    margin-top: 24.62px;
  }

  .botao {
    width: 319px;
    margin-top: 28px;
  }

  .rodape {
    padding: 70px 15px 39.98px;
  }

  .rodape__logo {
    width: 267px;
    margin-top: 10.2px;
    margin-left: 1px;
  }

  .rodape__legal {
    width: 360px;
    margin-top: 48.34px;
  }

  .rodape__linha {
    width: 360px;
    margin-top: 45px;
  }

  .rodape__termos {
    width: 360px;
    margin-top: 45px;
  }
}
