.cg-footer {
  color: #ffffff;
  background:
    radial-gradient(circle at 76% 0%, rgba(20, 177, 230, 0.12), transparent 30%),
    linear-gradient(180deg, #151a23 0%, #111720 100%);
  padding: clamp(58px, 7vw, 86px) 0 42px;
}

.cg-footer-wrap {
  width: min(1200px, calc(100% - 56px));
  margin: 0 auto;
}

.cg-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 32px;
}

.cg-footer-logo img {
  display: block;
  width: 168px;
  height: auto;
}

.cg-footer-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cg-footer-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.cg-footer-socials a:hover {
  transform: translateY(-2px);
  background: var(--cg-color-orange, #ff7429);
}

.cg-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 58px);
  padding: 38px 0 44px;
}

.cg-footer-col h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.cg-footer-col h3:not(:first-child) {
  margin-top: 28px;
}

.cg-footer-col a {
  display: block;
  width: fit-content;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  text-decoration: none;
}

.cg-footer-col a:hover {
  color: #ffffff;
}

.cg-footer-app-card {
  align-self: start;
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cg-footer-app-card strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.cg-footer-app-card p {
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
}

.cg-footer-app-buttons {
  display: grid;
  gap: 10px;
}

.cg-footer-app-buttons span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.cg-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 32px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 500;
}

.cg-footer-legal p {
  margin: 0 0 16px;
}

.cg-footer-legal strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.cg-footer-legal a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cg-footer-legal ol {
  margin: 8px 0 18px;
  padding-left: 20px;
}

.cg-footer-risk-box {
  margin-top: 22px;
  border-radius: 12px;
  padding: 18px 20px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
}

@media (max-width: 980px) {
  .cg-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cg-footer-app-card {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .cg-footer-wrap {
    width: min(100% - 32px, 1200px);
  }

  .cg-footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .cg-footer-grid {
    grid-template-columns: 1fr;
  }

  .cg-footer-app-card {
    grid-column: auto;
  }
}
