/**
 * MUAH renewal footer (Figma 131:93)
 */

#footer.renewal-footer {
  --muah-black: #000000;
  --muah-white: #ffffff;
  --muah-font: 'Pretendard', sans-serif;
  --muah-inner-max: 1280px;
  --muah-inner-width: 90%;
  --muah-gray-01: #f4f4f4;
  --muah-gray-02: rgba(164, 164, 165, 0.8);
  padding: 48px 0 40px;
  background: var(--muah-black);
  color: var(--muah-white);
  font-family: var(--muah-font);
}

#footer.renewal-footer .inner {
  max-width: var(--muah-inner-max);
  width: var(--muah-inner-width);
  margin: 0 auto;
  padding-left: var(--muah-gutter-x);
  padding-right: var(--muah-gutter-x);
  box-sizing: border-box;
}

#footer.renewal-footer .top,
#footer.renewal-footer .bot {
  display: none;
}

.renewal-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  /*margin-bottom: 40px;*/
}

.renewal-footer__logo {
  display: inline-flex;
  flex-shrink: 0;
}

.renewal-footer__logo img {
  display: block;
  height: 16px;
  width: auto;
}

.renewal-footer__app {
  max-width: 294px;
  font-size: 22px;
  font-weight: 600;
  line-height: 35px;
  letter-spacing: -0.01em;
  color: var(--muah-white);
  text-align: right;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.renewal-footer__app-arrow {
  display: inline-block;
  margin-left: 0.35em;
  font-weight: 400;
}

.renewal-footer__app:hover {
  color: var(--muah-white);
  opacity: 0.85;
}

.renewal-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 32px;
}

.renewal-footer__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--muah-font);
  font-size: var(--muah-footer-meta, 14px);
  font-weight: 400;
  line-height: var(--muah-footer-meta-lh, 30px);
  letter-spacing: 0;
}

.renewal-footer__line strong {
  font-weight: 400;
}

.renewal-footer__line a {
  color: inherit;
  text-decoration: none;
}

.renewal-footer__line a:hover {
  text-decoration: underline;
}

.renewal-footer__line--contact {
  gap: 8px 24px;
}

.renewal-footer__bottom {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 41px;
}

.renewal-footer__sns {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
}

.renewal-footer__sns a {
  display: block;
  line-height: 0;
}

.renewal-footer__sns img {
  display: block;
  height: 15px;
  width: auto;
}

.renewal-footer__gotop {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s ease;
}

.renewal-footer__gotop:hover {
  background: rgba(255, 255, 255, 0.32);
}

.renewal-footer__gotop-icon {
  display: block;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-top: 2px solid var(--muah-gray-01);
  border-right: 2px solid var(--muah-gray-01);
  transform: rotate(-45deg);
}

.renewal-footer__copy {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  font-size: 15px;
  line-height: 15px;
  color: var(--muah-gray-02);
}

body.renewal #goToTop {
  display: none;
}

@media (max-width: 860px) {
  #footer.renewal-footer {
    padding: 48px 0 40px;
  }

  .renewal-footer__top {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .renewal-footer__app {
    order: 1;
    max-width: none;
    text-align: left;
    font-size: var(--muah-m-footer, 20px);
    line-height: 1.6;
  }

  .renewal-footer__logo {
    order: 2;
  }

  .renewal-footer__line,
  .renewal-footer__copy {
    font-size: var(--muah-m-footer-meta, 12px);
    line-height: 12px;
  }

  .renewal-footer__line {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    line-height: 12px;
  }

  .renewal-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: 8px;
  }

  .renewal-footer__sns {
    margin: 0;
    order: 2;
  }

  .renewal-footer__gotop {
    position: static;
    transform: none;
    order: 1;
    align-self: flex-end;
    margin-top: -48px;
  }

  .renewal-footer__copy {
    position: static;
    order: 3;
  }
}
