/* 페이지 중복 사용 하는 스타일 지정 */

.main.no-header {
  /* padding-top: calc(45px + 90px); */
  padding-top: calc(20px);
}

.container {
  margin: 0 auto;
}

.content {
  padding: 2.5rem;
  max-width: 1800px;
  margin: 0 auto;
}

/* thanks to, credit */
.thanks-to {
  margin-top: 130px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.thanks-to h4 {
  font-size: 22px;
}
.thanks-to p {
  line-height: 1.8;
}

.thanks-to p a {
  color: #a0b8ae;
}

/* 연관 상품 */
.product-section {
  margin-top: 100px;
}
.product-section h4 {
  font-size: 22px;
}

.cta-section {
  color: #fff;
  display: flex;
  padding-top: 2rem;
  padding-bottom: 8.75rem;
  gap: 30px;
}

.cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 3rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  flex: 1;
}

.cta-buttons.single-button {
  justify-content: flex-end;
}

.cta-buttons.single-button .cta-btn {
  width: 25%;
  max-width: 400px;
}

.cta-buttons .cta-btn {
  border-radius: 28px;
  border: 2px solid #fff;
  background-color: #000;
  display: flex;
  padding: 13px 20px;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  width: 100%;
  min-width: 130px;
  font-size: 14px;
}

.cta-buttons .cta-btn:hover {
  background-color: #a0b8ae;
  border: 2px solid #a0b8ae;
}

.cta-buttons .cta-btn.invert {
  border: 2px solid #000;
  background-color: #fff;
  color: #000;
}
.cta-buttons .cta-btn.invert:hover {
  background-color: #000;
  color: #fff;
}
/* 연관 상품 */

/*
 * =========================================
 * 공통: 약관 페이지 스타일 (.terms-content)
 * (개인정보처리방침, 이용가이드 등에 공통 적용)
 * =========================================
 */

/* 1. 레이아웃 (PC 기준) */
.terms-content {
  /* 텍스트 가독성을 위해 최대 너비 800px로 제한 */
  max-width: 800px;

  /* .container 안에서 중앙 정렬 */
  margin-left: auto;
  margin-right: auto;

  /* 페이지 상하 여백 */
  padding: 5rem 0;
}

/* 2. 제목 (h1, h2, h3) */
.terms-content h1 {
  font-size: 2rem;
  /* 32px */
  font-weight: 700;
  text-align: center;
  margin-top: 0;
  margin-bottom: 4rem;
  /* 64px */
}

.terms-content h2 {
  font-size: 1.25rem;
  /* 20px */
  font-weight: 600;
  margin-top: 3rem;
  /* 섹션 간 상단 여백 */
  margin-bottom: 1.5rem;
  /* 24px */
  padding-bottom: 0.5rem;
  /* 8px */
  border-bottom: 1px solid #eee;
  /* 옅은 회색 구분선 */
}

/* (8번 항목의 '개인정보 보호책임자' 등) */
.terms-content h3 {
  font-size: 1rem;
  /* 16px */
  font-weight: 600;
  margin-top: 2rem;
  /* 32px */
  margin-bottom: 1rem;
  /* 16px */
}

/* 3. 본문 텍스트 (p, ol, ul, li) */
.terms-content p,
.terms-content ol,
.terms-content ul {
  font-size: 0.95rem;
  /* 15px (가독성 좋은 크기) */
  line-height: 1.8;
  color: #333;
  margin-top: 0;
  margin-bottom: 1.5rem;
  /* 24px */
}

/* (ol) 숫자 있는 목록 (2, 3, 5, 6, 10번 항목) */
.terms-content ol {
  padding-left: 1.5rem;
  /* 24px */
}

.terms-content li {
  margin-bottom: 0.5rem;
  /* 8px */
}

/* (ul) 점 없는 목록 (8번 항목) */
.terms-content ul {
  list-style: none;
  /* 점 제거 */
  padding-left: 0;
}

/* (p) 단락이 연속될 때 (예: 1번 항목) */
.terms-content p + p {
  margin-top: 1.5rem;
}
/* Term 공통 */

@media (max-width: 768px) {
  .cta-section {
    flex-direction: column;
  }

  .cta-buttons.single-button .cta-btn {
    width: 50%;
  }

  .terms-content {
    padding: 3rem 0;
  }

  .terms-content h1 {
    font-size: 1.75rem;
    margin-bottom: 3rem;
  }

  .terms-content h2 {
    font-size: 1.1rem;
  }

  .terms-content p,
  .terms-content ol,
  .terms-content ul {
    font-size: 0.9rem;
  }
}
