.site-footer {
  flex: 0 0 auto;
  font-family: var(--font-openai-sans);
}

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

:where(.site-footer, .site-footer *) {
  letter-spacing: -.04em;
}

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 34px 0 30px;
  font-size: 12px;
}
.footer-inner {
  display: grid;
  height: auto;
  min-height: 74px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 48px;
}
.footer-brand {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}
.footer-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
.footer-meta > span {
  color: #858585;
  font-size: 11px;
  line-height: 1.5;
}
.footer-partner-logo-group {
  position: relative;
  display: block;
  width: 132px;
  height: 28px;
  flex: 0 0 auto;
}
.footer-partner-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: invert(1);
  mix-blend-mode: screen;
}
.footer-partner-link {
  position: absolute;
  inset-block: -6px;
  z-index: 1;
  border-radius: 4px;
  cursor: pointer;
}
.footer-partner-link-openai {
  left: 0;
  width: 44%;
}
.footer-partner-link-com2us {
  right: 0;
  width: 51%;
}
.footer-partner-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.footer-tools {
  display: grid;
  grid-template-columns: auto;
  align-items: center;
  justify-content: end;
  gap: 8px 30px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b8b8b8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}
.footer-links svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.8;
}
.footer-language {
  position: relative;
  display: flex;
  width: 150px;
  align-items: center;
  color: #fff;
}
.footer-language > svg {
  position: absolute;
  z-index: 1;
  width: 15px;
  height: 15px;
  pointer-events: none;
}
.footer-language > svg:first-of-type { left: 12px; }
.footer-language > svg:last-of-type { right: 11px; }
.footer-language select {
  width: 100%;
  min-height: 40px;
  padding: 0 34px;
  appearance: none;
  border: 1px solid #434343;
  border-radius: 4px;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.footer-language select:hover,
.footer-language select:focus-visible {
  border-color: #888;
  background: #1c1c1c;
}
.footer-language option {
  background: #fff;
  color: var(--ink);
}
.footer-language-status {
  min-height: 16px;
  margin: 0;
  grid-column: 1 / -1;
  color: #929292;
  font-size: 11px;
  text-align: right;
}
.footer-language-status:empty { display: none; }

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .footer-brand {
    justify-content: flex-start;
  }
  .footer-tools {
    width: 100%;
    justify-content: stretch;
  }
  .footer-links {
    flex-wrap: wrap;
  }
  .footer-language {
    justify-self: end;
  }
  .footer-language-status {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .site-footer { padding-block: 30px; }
  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .footer-tools {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .footer-language {
    width: min(100%, 220px);
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .footer-inner,
  .footer-tools,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}
