:root {
  --body-font-family: "Inter", sans-serif;
  --body-faint-font-color: #667085;
  --body-font-color: #181818;
  --body-background: #fff;
  --secondary-font-size: calc(15.5 / 18 * 1rem);
  --nav-border-color: #f2f4f7;
  --doc-max-width: 1000px;
  --toc-width: calc(250 / 18 * 1rem);
  --toc-width--widescreen: calc(350 / 18 * 1rem);
  --link-highlight-color: #444ce7;
  --body-font-family-bold: "Inter", sans-serif;
}

html[data-theme=dark] {
  --body-font-color: white;
  --body-background: #181818;
}

/* Footer container */
footer.footer {
  width: 100%;
  background-color: var(--body-background);
  border-top: 1px solid var(--nav-border-color);
  color: var(--body-font-color);
  font-family: var(--body-font-family);
  min-height: 300px;
  contain: layout style;
}

.padding-global {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.container-large {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.footer__wrap {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* Footer top section */
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__logo-link {
  display: inline-block;
}

.footer__logo {
  height: 40px;
  width: auto;
}

/* Footer columns */
.footer__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__header {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--body-font-color);
  margin-bottom: 0.5rem;
  font-family: var(--body-font-family-bold);
}

.footer__link {
  font-size: 0.875rem;
  color: var(--body-faint-font-color);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}

.footer__link:hover {
  color: var(--link-highlight-color);
}

/* Grey line separator */
.line__grey {
  height: 1px;
  background-color: var(--nav-border-color);
  margin: 2rem 0;
}

/* Footer bottom section */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--body-faint-font-color);
  transition: color 0.2s;
}

.footer__social-link:hover {
  color: var(--link-highlight-color);
}

.footer__social-link svg {
  width: 100%;
  height: auto;
  max-width: 24px;
  max-height: 24px;
}

.footer__legal-container {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.text-style-footer-legal {
  color: var(--body-faint-font-color);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s;
}

.text-style-footer-legal:hover {
  color: var(--link-highlight-color);
}

@media (min-width: 769px) {
  .footer__columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  footer.footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
