:root {
  --body-font-family: "Inter", sans-serif;
  --body-faint-font-color: #667085;
  --body-font-color: #181818;
  --body-background: #fff;
  --secondary-font-size: calc(15.5 / 18 * 1rem);
  --nav-border-color: #f2f4f7;
  --doc-max-width: 1000px;
  --toc-width: calc(250 / 18 * 1rem);
  --toc-width--widescreen: calc(350 / 18 * 1rem);
  --link-highlight-color: #444ce7;
  --body-font-family-bold: "Inter", sans-serif;
}

html[data-theme=dark] {
  --body-font-color: white;
  --body-background: #181818;
}

/* Footer container */
footer.footer {
  width: 100%;
  background-color: var(--body-background);
  border-top: 1px solid var(--nav-border-color);
  color: var(--body-font-color);
  font-family: var(--body-font-family);
  min-height: 300px;
  contain: layout style;
}

.padding-global {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.container-large {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.footer__wrap {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* Footer top section */
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__logo-link {
  display: inline-block;
}

.footer__logo {
  height: 40px;
  width: auto;
}

/* Footer columns */
.footer__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__header {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--body-font-color);
  margin-bottom: 0.5rem;
  font-family: var(--body-font-family-bold);
}

.footer__link {
  font-size: 0.875rem;
  color: var(--body-faint-font-color);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}

.footer__link:hover {
  color: var(--link-highlight-color);
}

/* Grey line separator */
.line__grey {
  height: 1px;
  background-color: var(--nav-border-color);
  margin: 2rem 0;
}

/* Footer bottom section */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--body-faint-font-color);
  transition: color 0.2s;
}

.footer__social-link:hover {
  color: var(--link-highlight-color);
}

.footer__social-link svg {
  width: 100%;
  height: auto;
  max-width: 24px;
  max-height: 24px;
}

.footer__legal-container {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.text-style-footer-legal {
  color: var(--body-faint-font-color);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s;
}

.text-style-footer-legal:hover {
  color: var(--link-highlight-color);
}

@media (min-width: 769px) {
  .footer__columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  footer.footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* =============================================================================
   DOCS FOOTER — Compact footer for API docs and embedded pages
   ============================================================================= */

.docs-footer {
  background: #0b1430;
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 48px 40px;
  margin-top: 64px;
  position: relative;
}

.docs-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
}

.docs-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.docs-footer-brand {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.14s;
}

.docs-footer-brand:hover {
  opacity: 1;
}

.docs-footer-brand img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}

.docs-footer-social {
  display: flex;
  align-items: center;
  gap: 28px;
}

.docs-footer .docs-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.14s, transform 0.14s;
}

.docs-footer .docs-footer-social-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.docs-footer-social-link svg {
  display: block;
}

.docs-footer-meta {
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  max-width: 480px;
}

.docs-footer-copy {
  font-size: calc(12 / var(--rem-base) * 1rem);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0;
}

.docs-footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.docs-footer .docs-footer-link {
  font-size: calc(12 / var(--rem-base) * 1rem);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.14s;
}

.docs-footer a::after,
.docs-footer-brand::after,
.docs-footer-social-link::after,
.docs-footer-link::after {
  content: none !important;
  display: none !important;
}

.docs-footer .docs-footer-link:hover {
  color: #fff;
  text-decoration: none;
}

@media screen and (max-width: 720px) {
  .docs-footer {
    padding: 44px 24px 32px;
  }

  .docs-footer-social {
    gap: 18px;
  }

  .docs-footer-meta {
    flex-direction: column;
    gap: 14px;
  }
}
