.rwr-site-footer {
  margin-top: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid rgb(215 192 145 / .3);
  background: #221c2b;
  color: var(--color-gray-lightest);
  font-family: var(--font-primary);
}

.rwr-site-footer,
.rwr-site-footer * {
  box-sizing: border-box;
}

.rwr-site-footer__inner {
  max-width: 76rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem) 1.5rem;
}

.rwr-site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.rwr-site-footer__brand {
  display: block;
  flex: 0 1 28rem;
  min-width: 0;
}

.rwr-site-footer__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.rwr-site-footer__nav {
  display: flex;
  gap: 1rem;
}

.rwr-site-footer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 9rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-highlight-soft);
  border-radius: .25rem;
  color: var(--color-gray-lightest);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.rwr-site-footer__nav .rwr-site-footer__portal {
  background: var(--color-highlight-soft);
  color: #221c2b;
}

.rwr-site-footer__nav a:hover {
  border-color: var(--color-gray-lightest);
  background: var(--color-gray-lightest);
  color: #221c2b;
}

.rwr-site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(215 192 145 / .25);
  color: var(--color-highlight-soft);
  font-size: .75rem;
  line-height: 1.7;
}

.rwr-site-footer__bottom p {
  margin: 0;
}

.rwr-site-footer__bottom a {
  padding-block: .5rem;
  color: inherit;
  text-underline-offset: .25em;
}

.rwr-site-footer__bottom a:hover {
  color: #fff;
}

.rwr-site-footer a:focus-visible {
  outline: 3px solid var(--color-highlight-soft);
  outline-offset: 5px;
}

@media (max-width: 767px) {
  .rwr-site-footer__top {
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .rwr-site-footer__brand {
    flex: none;
    width: min(100%, 26rem);
  }

  .rwr-site-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: .75rem;
  }

  .rwr-site-footer__nav a {
    min-width: 0;
    gap: .75rem;
  }

  .rwr-site-footer__bottom {
    flex-direction: column;
    gap: .5rem;
    text-align: center;
  }
}
