footer {
  background-color: var(--accent);
  width: var(--w);
  display: grid;
}

footer div {
  color: var(--text-clr);
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.desktop-footer {
  text-align: right;
}

.desktop-footer a {
  padding: 0 0 0 1em;
}

.footer-left {
  background-color: var(--accent);
  color: var(--text-clr);
  padding: 2em;
  inset: 0;
}

.footer-right {
  display: flex;
  width: var(--w);
  grid-template-columns: 5fr;
  background: var(--accent);
  color: var(--bg);
}

.footer-right p {
  grid-column: 1 / span 4;
  padding: 2em 0 2em 5rem;
  font-family: var(--ff-mr);
  font-size: min(max(1.6em, 2vw), 1.2em);
}

.footer-right div {
  display: grid;
  grid-column: 1 / span 1;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  font-family: var(--ff-mr);
  justify-content: space-between;
  padding: 0 0 5em 5em;
}

.footer-right a {
  color: var(--bg);
  text-decoration: none;
  padding: 2em;
}

.footer-right a:hover {
  cursor: pointer;
  text-decoration: underline;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-right {
    display: grid;
  }
  
  .footer-right a {
    padding: 1em;
    text-align: center;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .footer-right > a {
    display: block;
    width: var(--w);
    color: var(--white);
    text-align: center;
    text-transform: capitalize;
    text-decoration: none;
    margin: .5em 0 0 0;
    padding: .25em 0;
  }

  .footer-left {
    visibility: hidden;
    display: none;
  }

  .footer-right {
    grid-column: 1 / span 5;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

}