/* Styles for the footer section */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 1em 0;
}

/* Styles for the content within the footer */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3em;
  max-width: 1000px;
  margin: 0 auto;
}

/* Styles for the left section of the footer */
.footer-left {
  display: flex;
  align-items: center;
  margin-bottom: 3em;
}

/* Styles for the image within the left section of the footer */
.footer-left img {
  max-width: 200px;
  margin-right: 1em;
}

/* Styles for the social media section in the footer */
.social-media {
  display: flex;
}

.social-media span {
  font-family: 'Montserrat';
  font-size: 12px;
  font-weight: bold;
  margin-right: 1em;
}

.social-media img {
  max-width: 15px;
  margin-right: 1;
  color: var(--white);
}

.social-media a {
  margin-right: 1em;
}

.social-media a img {
  max-width: 16px;
  max-height: 16px;
}

/* Styles for navigation groups and services */
.nav-group nav ul,
.service nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.footer-content-terms nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: row;
}

/* Styles for the title of navigation groups */
.nav-group-title {
  color: var(--white);
  font-family: 'Montserrat';
  font-size: 12px;
}

/* Styles for navigation items */
.nav-group nav,
li,
a,
span {
  color: #a4a4a4;
  margin-bottom: 1.2em;
  text-align: left;
  text-decoration: none;
  font-family: 'Montserrat';
  font-size: 12px;
}

/* Hover styles for navigation items */
.nav-group nav,
li,
a:hover {
  color: var(--white);
}

/* Styles for the footer divider */
.footer-divider {
  display: flex;
  justify-content: center;
}

/* Styles for the horizontal divider */
hr.divider {
  border: 0;
  border-top: 1px solid #707070;
  margin: 1em 0;
  width: 90%;
}

/* Media query for responsive design when the screen width is 900px or less */
@media only screen and (max-width: 900px) {
  .footer-content,
  .service {
    flex-direction: column;
  }

  nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-media {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-content-terms nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
  }

  .footer-left {
    justify-content: center;
  }
}

/* Media query for responsive design when the screen width is more than 900px */
@media only screen and (min-width: 900px) {
  .nav-group,
  .service {
    display: flex;
  }

  .nav-group nav,
  .service nav {
    margin-right: 20px;
  }

  .nav-group nav:last-child,
  .service nav:last-child {
    margin-right: 0;
  }

  .service ul,
  .service li {
    justify-content: flex-end;
    text-align: right;
  }

  .footer-content-terms {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3em;
    max-width: 1000px;
    margin: 0 auto;
  }

  .footer-content nav {
    margin-right: 20px;
  }

  .footer-content nav:last-child {
    margin-right: 0;
  }

  .footer-content-terms nav ul li {
    margin-right: 1em;
  }

  hr.divider {
    width: 80%;
  }
}
