footer {
  --layout-spacing: 2rem;
  --link-spacing: 0.5em;

  padding: 1em;

  #footer-main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--layout-spacing);
    ul {
      list-style: none;
      margin: 0;
      li {
        margin: var(--link-spacing) 0;
      }
    }

    h4 {
      white-space: nowrap;
    }
  }
}

@media (min-width: 1200px) {
  #footer-main-content {
    & > .footer-section {
      flex: 1;
    }
  }
}

@media (max-width: 1200px) {
  #footer-main-content {
    & > .footer-section {
      width: calc(50% - var(--layout-spacing));
    }
  }
}

@media (max-width: 800px) {
  #footer-main-content {
    & > .footer-section {
      width: 100%;
    }
  }
}
