/* 모바일웹 서비스 종료 안내 (Figma: 1. 모바일웹 서비스 종료 안내 / 820:199, 820:228) */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #ffffff;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

.notice {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
}

/* 본문 */
.notice__body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px 0;
}

/* justify-content: center 는 콘텐츠가 넘칠 때 위쪽이 잘려 접근 불가가 되므로
   auto 마진으로 가운데 정렬한다. 넘치면 아래로 흘러 스크롤된다. */
.notice__text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

.notice__heading-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.notice__logo {
  display: block;
  width: 133.758px;
  height: 69.001px;
}

.notice__title {
  margin: 0;
  width: 100%;
  font-weight: 700;
  font-size: 30px;
  line-height: 38px;
  color: #202020;
  text-align: center;
}

/* 안내 박스 */
.notice__bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 238px;
  padding: 14px 20px;
  border-radius: 8px;
  background-color: #fafafa;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
}

.notice__bubble p {
  margin: 0;
  width: 100%;
}

.notice__bubble-lead {
  font-weight: 600;
  color: #606570;
}

.notice__bubble-desc {
  font-weight: 400;
  color: #919193;
}

/* 하단 버튼 */
.notice__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  /* Figma 의 footer-actions 는 상하 패딩이 0 이고, 위쪽 간격은 본문 중앙정렬이 만든다.
     상단 패딩을 주면 그만큼 본문이 위로 밀려 안내박스~버튼 간격이 벌어진다. */
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
}

.notice__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.notice__btn--download {
  background-color: #335aff;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
}

.notice__btn--continue {
  background-color: #efefef;
  color: #3b3b3b;
  font-weight: 400;
  font-size: 14px;
}

.notice__btn:active {
  opacity: 0.85;
}

/* 세로로 짧은 화면 대응.
   임계값 620px 근거: 디자인 원본이 필요로 하는 최소 높이가
   본문패딩20 + 로고69 + 28 + 제목76 + 30 + 박스238 + 버튼124 + 하단24 = 609px.
   그보다 여유가 있으면 박스 238px(디자인 값)를 그대로 유지하고,
   그 아래로 내려가야 비로소 박스 여백부터 줄인다. */
@media (max-height: 620px) {
  .notice__body {
    padding-top: 12px;
  }

  .notice__text-group {
    gap: 20px;
  }

  .notice__bubble {
    min-height: 0;
  }
}
