footer {
  border-top: 1px solid rgba(226, 153, 85, 0.15);
  background: #fdf8f3;
  padding-top: 41px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px;
  gap: 16px;
  width: 100%;
}

.footer-brand,
.footer-nav,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  gap: 16px;
}

.footer-logo {
  width: 72px;
  height: auto;
}

.footer-brand p {
  margin: 0;
  color: #101828;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
}

.footer-nav,
.footer-social {
  gap: 12px;
  font-size: 14px;
  line-height: 22px;
}

.footer-heading {
  color: #101828;
  font-weight: 500;
}

.footer-nav a,
.footer-social a {
  color: #4a5565;
  text-decoration: none;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.footer-social img,
.footer-discord-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.footer-discord-icon {
  background: #4a5565;
  mask: url("../img/discord-footer.svg") center / contain no-repeat;
  -webkit-mask: url("../img/discord-footer.svg") center / contain no-repeat;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: #734e2b;
}

.footer-nav a:focus-visible,
.footer-social a:focus-visible {
  outline: 2px solid #af7b0b;
  outline-offset: 3px;
  border-radius: 2px;
}

.copyright {
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #d1d5dc;
  padding: 16px 0;
  color: #99a1af;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

[dir="rtl"] .footer-brand,
[dir="rtl"] .footer-nav,
[dir="rtl"] .footer-social {
  text-align: right;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 359px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}
