/* ================== DESKTOP ================== */
footer {
  background-color: #1a1f25;
  width: 100%;
  color: #fff;
  padding: 30px 50px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 colunas iguais */
  gap: 20px;
  justify-items: center;
  align-items: start;
  box-sizing: border-box; /* garante que padding não cause overflow */
}

footer .img_rodape {
  text-align: center;
}

footer .img_rodape img {
  max-width: 180px;
  width: 100%;
  height: auto;
  margin-bottom: 8px;
}

footer .acesso {
  text-align: center;
}

footer .acesso h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

footer .acesso ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .acesso ul li {
  margin: 6px 0;
}

footer .acesso ul li a {
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
  word-wrap: break-word; /* evita overflow de textos longos */
}

footer .acesso ul li a:hover {
  color: #f00;
}

footer .app {
  text-align: center;
}

footer .app h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

footer .app img {
  max-width: 140px;
  width: 100%;
  height: auto;
  margin: 5px;
}

footer .copy {
  grid-column: 1 / 4; /* ocupa todas as colunas */
  text-align: center;
  margin-top: 0px;
  font-size: 12px;
  color: #ccc;
}

footer .copy a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

footer .copy a:hover {
  color: #ed1d24;
}

/* ================== MOBILE ================== */
@media screen and (max-width: 1170px){
  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px; /* leve aumento para evitar que borda "grude" na tela */
    max-width: 100%;
    box-sizing: border-box;
  }

  footer .img_rodape {
    order: 1;
    width: 100%;
    max-width: 180px;
    text-align: center;
  }

  footer .img_rodape img {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  footer .acesso {
    order: 2;
    width: 100%;
    text-align: center;
  }

  footer .acesso ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  footer .acesso ul li {
    margin: 5px 0;
  }

  footer .acesso ul li a {
    display: inline-block;
    word-wrap: break-word;
    max-width: 100%;
  }

  footer .app {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  footer .app a {
    width: 100%;
    max-width: 130px;
    display: block;
    margin: 5px 0;
  }

  footer .app img {
    width: 100%;
    max-width: 130px;
    height: auto;
  }

  footer .copy {
    order: 4;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #ccc;
    margin-top: 10px;
    word-wrap: break-word; /* garante que textos longos não causem overflow */
  }
}
