footer {
  background: #1d2f2e;
  color: #fff;
  font-size: 0.85rem;
  line-height: 23px;
  padding: 60px 0 25px 0;
}

footer a.button {
  font-size: 0.85rem;
  padding: 8px 22px;
  height: fit-content;
  width: fit-content;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  grid-template-areas:
    'logo title1 title2 title3'
    'logo adress workhours description'
    'spacer contact button1 button2';
  gap: 15px 30px;
}
.footer-logo {
  grid-area: logo;
  max-width: 100%;
  height: fit-content;
  background-size: contain;
  background-repeat: no-repeat;
}
.footer-title {
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
}
.footer-title1 {
  grid-area: title1;
}
.footer-title2 {
  grid-area: title2;
}
.footer-title3 {
  grid-area: title3;
}
.footer-adress {
  grid-area: adress;
}
.footer-workhours {
  grid-area: workhours;
}
.footer-description {
  grid-area: description;
}
.footer-contact {
  grid-area: contact;
}
.footer-button1 {
  grid-area: button1;
}
.footer-button2 {
  grid-area: button2;
}
.footer-spacer {
  grid-area: spacer;
}

.footer-grid::after {
  content: '';
  display: block;
  margin-top: 30px;
  grid-column: 1 / -1;
  height: 1px;
  background: #fff;
  opacity: 0.6;
}

.footer-bottom {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  opacity: 0.6;
}

.footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content:end;
  align-self: end;
}

.footer-legal ul li:not(:last-child)::after {
  content: '|';
  margin: 0 15px;
}

@media (max-width: 992px) {
  .footer-logo {
    object-fit: contain;
    width: 100% !important;
    height: 100%;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(200px, 2fr));
    gap: 30px;
    grid-template-areas:
      'logo title1'
      'logo adress'
      'logo contact'
      'title2 title3'
      'workhours description'
      'button1 button2';
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(200px, 300px);
    justify-content: center;
    grid-template-areas:
      'logo'
      'title1'
      'adress'
      'contact'
      'title2'
      'workhours'
      'button1'
      'title3'
      'description'
      'button2'
      'spacer';
  }
  .footer-legal ul {
    justify-self: center;
  }
}
