/*
 * RelayBases canonical public footer.
 *
 * Keep the rb-site-footer markup contract identical across the main site,
 * legal pages, usage guide, inline fragments, and Infinite Canvas.
 */
.rb-site-footer,
.rb-site-footer * {
  box-sizing: border-box;
}

.rb-site-footer {
  --rb-site-footer-bg: #f7f7f5;
  --rb-site-footer-text: #171717;
  --rb-site-footer-muted: #686864;
  --rb-site-footer-line: rgba(23, 23, 23, 0.12);
  --rb-site-footer-hover: #000000;

  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rb-site-footer-line);
  background: var(--rb-site-footer-bg);
  color: var(--rb-site-footer-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

html.dark .rb-site-footer,
body.dark .rb-site-footer,
[data-theme="dark"] .rb-site-footer,
.dark-mode .rb-site-footer,
.theme-dark .rb-site-footer {
  --rb-site-footer-bg: #171715;
  --rb-site-footer-text: #f5f5f4;
  --rb-site-footer-muted: #a8a8a2;
  --rb-site-footer-line: rgba(255, 255, 255, 0.12);
  --rb-site-footer-hover: #ffffff;
}

.rb-site-footer :where(h2, h3, p) {
  margin: 0;
}

.rb-site-footer a {
  color: inherit;
  text-decoration: none;
}

.rb-site-footer__inner {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 52px 24px 34px;
}

.rb-site-footer__main {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(0, 1.75fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}

.rb-site-footer__identity {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 15px;
}

.rb-site-footer__logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  transform: none;
  -webkit-tap-highlight-color: transparent;
}

.rb-site-footer__logo:hover,
.rb-site-footer__logo:active {
  background: transparent;
  opacity: 1;
  transform: none;
}

.rb-site-footer__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

html.dark .rb-site-footer__logo img,
body.dark .rb-site-footer__logo img,
[data-theme="dark"] .rb-site-footer__logo img,
.dark-mode .rb-site-footer__logo img,
.theme-dark .rb-site-footer__logo img {
  filter: invert(1);
  mix-blend-mode: screen;
}

.rb-site-footer__brand {
  min-width: 0;
  padding-top: 1px;
}

.rb-site-footer__company {
  color: var(--rb-site-footer-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rb-site-footer__tagline {
  margin-top: 7px !important;
  color: var(--rb-site-footer-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.rb-site-footer__copyright {
  margin-top: 20px !important;
  color: var(--rb-site-footer-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.rb-site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.rb-site-footer__column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.rb-site-footer__column h3 {
  margin-bottom: 3px;
  color: var(--rb-site-footer-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rb-site-footer__column a {
  max-width: 100%;
  color: var(--rb-site-footer-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

.rb-site-footer__column a:hover {
  color: var(--rb-site-footer-hover);
}

.rb-site-footer__column a:focus-visible,
.rb-site-footer__logo:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 880px) {
  .rb-site-footer__main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rb-site-footer__identity {
    max-width: 430px;
  }
}

@media (max-width: 620px) {
  .rb-site-footer__inner {
    padding: 38px 20px 28px;
  }

  .rb-site-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

@media (max-width: 390px) {
  .rb-site-footer__links {
    grid-template-columns: 1fr;
  }
}
