/* Unified dark footer for app install / preland / download / rankings */

.app-site-footer {
  margin: 0;
  padding: 40px 20px 28px;
  background: #0c0c14;
  border-top: 1px solid #2f2f45;
  color: #94a3b8;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.app-site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 48px;
  max-width: 1180px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.app-site-footer__brand {
  display: flex;
  align-items: center;
  padding-right: 32px;
  border-right: 1px solid #2f2f45;
  min-height: 72px;
  flex: 0 0 auto;
}

.app-site-footer__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.app-site-footer__logo:hover {
  opacity: 1;
}

.app-site-footer__logo img {
  display: block;
  height: 28px;
  width: auto;
}

.app-site-footer__nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 28px 40px;
  min-width: 0;
}

.app-site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}

.app-site-footer__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #ffffff;
}

.app-site-footer__col a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.app-site-footer__col a:hover {
  color: #ffffff;
}

.app-site-footer__col--apps a {
  padding: 7px 12px;
  font-size: 12px;
}

.app-site-footer__col--apps a:hover {
  color: #ffffff;
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.35);
}

.app-site-footer__lang-wrap {
  flex: 0 0 auto;
  margin-left: auto;
  padding-top: 2px;
}

.app-site-footer__lang {
  position: relative;
}

.app-site-footer__lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #2f2f45;
  background: #1e1e2d;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  user-select: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.app-site-footer__lang-btn::-webkit-details-marker {
  display: none;
}

.app-site-footer__lang-btn:hover,
.app-site-footer__lang[open] .app-site-footer__lang-btn {
  color: #ffffff;
  border-color: #3d3d58;
  background: #252538;
}

.app-site-footer__lang-btn svg {
  flex-shrink: 0;
  fill: currentColor;
}

.app-site-footer__lang-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 148px;
  padding: 6px 0;
  border: 1px solid #2f2f45;
  border-radius: 12px;
  background: #1e1e2d;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 30;
}

.app-site-footer__lang-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
}

.app-site-footer__lang-menu a:hover,
.app-site-footer__lang-menu a[aria-current="true"] {
  color: #ffffff;
  background: rgba(168, 85, 247, 0.14);
}

.app-site-footer__copy {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid #2f2f45;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
  text-align: left;
}

@media (max-width: 960px) {
  .app-site-footer__inner {
    gap: 24px;
  }

  .app-site-footer__brand {
    width: 100%;
    min-height: auto;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid #2f2f45;
  }

  .app-site-footer__lang-wrap {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .app-site-footer {
    padding: 28px 16px 20px;
  }

  .app-site-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
    width: 100%;
  }

  .app-site-footer__col {
    min-width: 0;
  }

  .app-site-footer__col--apps a {
    width: 100%;
  }

  .app-site-footer__copy {
    text-align: center;
  }
}
