/* 모달 오버레이 (배경) */
.terms-modal-overlay {
  display: none; /* 기본적으로 숨김 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* 반투명 배경 */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 모달 내용 */
.terms-modal-content {
  background: #fff;
  display: inline-flex;
  position: relative;
  padding: 40px 80px 60px 80px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 그림자 효과 */
  max-width: 800px; /* 최대 너비 설정 */
  width: 100%;
  max-height: 80vh; /* 모달 최대 높이 설정 */
  overflow: hidden; /* 모달 전체 영역에 스크롤 추가 방지 */
}

/* 닫기 버튼 */
.terms-modal-close-btn {
  position: absolute;
  top: 34px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s ease;
}

/* 모달 헤더 */
.terms-modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  min-width: 363px;
}

.terms-modal-header > h2 {
  margin: 0;
  color: #242424;
  text-align: center;
  font-family: Pretendard;
  font-size: 24px;
  font-style: normal;
  font-weight: bold;
  line-height: 100%; /* 24px */
  letter-spacing: -0.48px;
}

/* 모달 본문 */
.terms-modal-body {
  text-align: left;
  max-width: 768px;
  font-size: 14px;
  color: #555;
  max-height: 600px; /* 최대 높이 설정 */
  overflow-y: auto; /* 내용이 길어지면 스크롤 */
}

/* 제목 */
.terms-modal-body > .terms-body-title {
  color: #242424;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.08px;
}

/* 서브타이틀 */
.terms-modal-body > .terms-body-subtitle {
  color: #242424;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.07px;
}

/* 본문 내용 */
.terms-modal-body > .terms-body-content {
  color: #242424;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.07px;
}
