.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}
.footer > div {
  max-width: var(--max-main-width);
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer > div > div {
  width: 100%;
}
.footer > div > div:first-of-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer > div > div:first-of-type > div:first-of-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer > div > div:first-of-type > div:first-of-type > div {
  display: flex;
  gap: 0.5rem;
}
.footer > div > div:first-of-type > div:first-of-type > div > a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer > div > div:first-of-type > div:first-of-type > div > a > svg {
  width: 16px;
  height: 16px;
}
.footer > div > div:first-of-type > div:nth-of-type(2) {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex-direction: column;
  max-width: 510px;
}
.footer > div > div:first-of-type > div:nth-of-type(2) > ul {
  display: flex;
  list-style-type: none;
  width: fit-content;
  align-items: center;
  gap: 0.7rem;
}
.footer > div > div:first-of-type > div:nth-of-type(2) > ul > li:first-of-type {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  color: var(--black);
  font-weight: 500;
}
.footer > div > div:first-of-type > div:nth-of-type(2) > ul > li {
  display: flex;
  align-items: center;
}
.footer > div > div:first-of-type > div:nth-of-type(2) > ul > li > a {
  font-size: 0.7rem;
  color: var(--gray);
}
.footer > div div:nth-of-type(2) {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0 0;
}
.footer > div > div:nth-of-type(2) > div:first-of-type {
  display: flex;
  font-size: 0.6rem;
  gap: 1rem;
}
.footer > div > div:nth-of-type(2) > div:first-of-type span {
  color: var(--black);
}
.footer > div > div:nth-of-type(2) > div:first-of-type a,
.footer > div > div:nth-of-type(2) > div:first-of-type p {
  color: var(--gray);
}
.footer > div > div:nth-of-type(2) > div:nth-of-type(2) {
  display: none;
  gap: 1rem;
}
@media screen and (width <= 899px) {
  .footer > div > div:nth-of-type(2) {
    padding: 0.5rem 0 1.5rem;
  }
}
@media screen and (width <= 850px) {
  .footer > div > div:first-of-type {
    align-items: flex-start;
  }
  .footer > div > div:first-of-type > div:nth-of-type(2) {
    gap: 2rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: fit-content;
  }
  .footer > div > div:first-of-type > div:nth-of-type(2) > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .footer
    > div
    > div:first-of-type
    > div:nth-of-type(2)
    > ul
    > li:first-of-type {
    margin-bottom: 0.2rem;
  }
}
@media screen and (width <= 575px) {
  .footer > div {
    gap: 1.2rem;
  }
  .footer > div > div:first-of-type {
    flex-direction: column;
    align-items: center;
  }
  .footer > div > div:first-of-type > div:first-of-type {
    width: 100%;
    align-items: flex-start;
  }
  .footer > div > div:first-of-type > div:first-of-type > div {
    display: none;
  }
  .footer > div > div:first-of-type > div:nth-of-type(2) {
    justify-content: space-between;
    max-width: 100%;
    width: 100%;
  }
  .footer > div > div:nth-of-type(2) {
    flex-direction: column-reverse;
    gap: 0.8rem;
  }
  .footer > div > div:nth-of-type(2) > div:first-of-type {
    flex-direction: column;
    gap: 0.8rem;
  }
  .footer > div > div:nth-of-type(2) > div:nth-of-type(2) {
    display: flex;
  }
}
@media screen and (width <= 420px) {
  .footer > div > div:first-of-type > div:nth-of-type(2) {
    justify-content: space-between;
  }
}
