/* O que as páginas têm em comum. O resto do desenho está nos moldes, em linha,
   como veio do protótipo. */

@font-face {
  font-family: 'Satoshi';
  src: url(/fonts/Satoshi-Regular.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url(/fonts/Satoshi-Medium.ttf) format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url(/fonts/Satoshi-Bold.ttf) format('truetype');
  font-weight: 700;
  font-display: swap;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: #f6f8f6;
}
a {
  color: #1f6b4a;
  text-decoration: none;
}
a:hover {
  color: #174f37;
}
:focus-visible {
  outline: 2px solid #1f6b4a;
  outline-offset: 2px;
  border-radius: 4px;
}
footer :focus-visible {
  outline-color: #67c39a;
}
[hidden] {
  display: none !important;
}
/* As imagens trazem `width` e `height` para a página não saltar ao carregar;
   a altura a sério sai da largura. */
img {
  height: auto;
}
section[id] {
  scroll-margin-top: 16px;
}
button:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* O cabeçalho. No computador, o menu à vista; abaixo dos 1200 px, o logótipo,
   «Entrar» e um botão que abre o menu por baixo. */
.topo {
  position: relative;
  border-bottom: 1px solid #dde4df;
  background: #f6f8f6;
  font-family: Satoshi, system-ui, sans-serif;
  color: #171c19;
}
.topo-dentro {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}
.topo-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #171c19;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.topo-logo:hover {
  color: #171c19;
}
.topo-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  font-size: 15px;
  font-weight: 500;
}
.topo-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  color: #4a5450;
}
.topo-nav a:hover {
  color: #171c19;
}
.topo-nav a[aria-current] {
  color: #171c19;
  border-bottom-color: #1f6b4a;
}
.topo-accoes {
  display: flex;
  align-items: center;
  gap: 10px;
}
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.botao-linha {
  border: 1px solid #9aa8a1;
  color: #171c19;
}
.botao-linha:hover {
  border-color: #171c19;
  color: #171c19;
}
.botao-cheio {
  background: #1f6b4a;
  color: #ffffff;
}
.botao-cheio:hover {
  background: #174f37;
  color: #ffffff;
}
.topo-menu {
  display: none;
}
@media (max-width: 1200px) {
  .topo-dentro {
    flex-wrap: nowrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .topo-nav,
  .topo-accoes > .linguas,
  .topo-accoes > .botao-cheio {
    display: none;
  }
  .topo-menu {
    display: block;
  }
  .topo-menu summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #9aa8a1;
    border-radius: 11px;
    background: #ffffff;
    color: #171c19;
    cursor: pointer;
  }
  .topo-menu summary::-webkit-details-marker {
    display: none;
  }
  .topo-menu .topo-fechar,
  .topo-menu[open] .topo-abrir {
    display: none;
  }
  .topo-menu[open] .topo-fechar {
    display: block;
  }
  .topo-menu[open] summary {
    border-color: #171c19;
  }
  .topo-painel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px clamp(20px, 5vw, 40px) 24px;
    background: #ffffff;
    border-bottom: 1px solid #c6d0ca;
    box-shadow: 0 28px 40px -28px rgba(23, 28, 25, 0.4);
  }
  .topo-painel nav:first-child {
    display: flex;
    flex-direction: column;
  }
  .topo-painel nav:first-child a {
    display: flex;
    align-items: center;
    min-height: 54px;
    border-bottom: 1px solid #edf1ed;
    color: #171c19;
    font-size: 18px;
    font-weight: 500;
  }
  .topo-painel nav:first-child a[aria-current] {
    color: #1f6b4a;
  }
  .topo-linguas {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .topo-linguas a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    color: #4a5450;
    font-size: 15px;
    font-weight: 500;
  }
  .topo-linguas a[aria-current] {
    background: #e4f0ea;
    color: #174f37;
  }
  .topo-painel .botao-cheio {
    min-height: 52px;
    border-radius: 14px;
    font-size: 17px;
  }
}

/* Nos telemóveis mais estreitos, o cabeçalho aperta-se para caber. */
@media (max-width: 380px) {
  .topo-dentro {
    padding-left: 16px;
    padding-right: 16px;
    gap: 8px;
  }
  .topo-accoes {
    gap: 8px;
  }
  .topo-accoes > .botao-linha {
    padding: 0 12px;
  }
}

/* Os símbolos das lojas. Sem endereço, ficam «em breve» e não são botão. */
.lojas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.loja {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px 0 16px;
  border: 1px solid #c6d0ca;
  border-radius: 12px;
  background: #ffffff;
  color: #171c19;
}
.loja svg {
  flex: 0 0 22px;
}
.loja small {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: #4a5450;
}
.loja strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
}
a.loja:hover {
  border-color: #1f6b4a;
  color: #171c19;
}
.loja-em-breve {
  border-style: dashed;
  border-color: #9aa8a1;
  background: transparent;
}
.loja-grande {
  flex: 1 1 180px;
  min-height: 64px;
  padding: 0 20px;
  border-radius: 14px;
}
.loja-escura {
  border-color: #4a5a52;
  background: transparent;
  color: #e6ede9;
}
.loja-escura small {
  color: #a3b0aa;
}

/* Os textos legais: uma coluna de leitura. */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 40px);
}
.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
}
.legal h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.3px;
  scroll-margin-top: 16px;
}
.legal h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 500;
}
.legal p,
.legal ul {
  margin: 0 0 14px;
  color: #2c3531;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin-bottom: 6px;
}
.legal li > ul {
  margin: 8px 0 0;
}
.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal .data {
  color: #4a5450;
  font-size: 15px;
  margin-bottom: 28px;
}
.legal .rascunho {
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 1px solid #dfc28a;
  border-radius: 11px;
  background: #faefdc;
  color: #5c3a0a;
  font-size: 15px;
}

/* A escolha da língua, no cabeçalho: abre sem JavaScript. */
.linguas {
  position: relative;
  font-size: 15px;
  font-weight: 500;
}
.linguas summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #9aa8a1;
  letter-spacing: 0.3px;
  border-radius: 11px;
  background: #ffffff;
  color: #171c19;
  cursor: pointer;
  user-select: none;
}
.linguas summary::-webkit-details-marker {
  display: none;
}
.linguas summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.7px solid #4a5450;
  border-bottom: 1.7px solid #4a5450;
  transform: rotate(45deg);
}
.linguas[open] summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}
.linguas ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #c6d0ca;
  border-radius: 14px;
  box-shadow: 0 16px 32px -16px rgba(23, 28, 25, 0.35);
}
/* No telemóvel a escolha fica à esquerda, e a lista abre para a direita. */
@media (max-width: 720px) {
  .linguas ul {
    left: 0;
    right: auto;
  }
}
.linguas ul a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: #171c19;
}
.linguas ul a:hover {
  background: #edf1ed;
}
.linguas ul a[aria-current] {
  background: #e4f0ea;
  color: #174f37;
}

/* As mesmas quatro, por extenso, no rodapé escuro. */
.linguas-rodape {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}
.linguas-rodape a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-bottom: 2px solid transparent;
  color: #a3b0aa;
  font-size: 14px;
  font-weight: 500;
}
.linguas-rodape a:hover {
  color: #ffffff;
}
.linguas-rodape a[aria-current] {
  color: #ffffff;
  border-bottom-color: #67c39a;
}
