/* 메타힌트 쇼핑몰 약관 페이지 — 반응형 */
.mh-terms {
  --mh-t-primary: #4b2fd6;
  --mh-t-text: #1f2937;
  --mh-t-muted: #6b7280;
  --mh-t-border: #e5e7eb;
  --mh-t-bg: #f9fafb;
  --mh-t-card: #ffffff;
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 16px 48px;
  color: var(--mh-t-text);
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

#ctt_con .mh-terms,
#ctt_con .mh-terms * {
  box-sizing: border-box;
}

.mh-terms__doc-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mh-t-primary);
  letter-spacing: -0.02em;
}

.mh-terms > p:first-of-type,
.mh-terms__section > p:first-child {
  margin-top: 0;
}

.mh-terms p {
  margin: 0 0 14px;
  color: var(--mh-t-text);
}

.mh-terms__section {
  margin-bottom: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mh-t-border);
}

.mh-terms__section:last-of-type {
  border-bottom: none;
}

.mh-terms__h2 {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 17px;
  font-weight: 700;
  color: var(--mh-t-text);
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-left: 4px solid var(--mh-t-primary);
  border-radius: 0 10px 10px 0;
  line-height: 1.45;
}

.mh-terms__h3 {
  margin: 20px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.5;
}

.mh-terms__h4 {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mh-t-primary);
}

.mh-terms__list {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

.mh-terms__list li {
  margin-bottom: 8px;
}

.mh-terms__list li:last-child {
  margin-bottom: 0;
}

.mh-terms__sub {
  margin: -6px 0 12px 1em;
  padding-left: 12px;
  border-left: 2px solid var(--mh-t-border);
  font-size: 14px;
  color: var(--mh-t-muted);
}

.mh-terms__note {
  margin: 12px 0;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 14px;
  color: #92400e;
}

.mh-terms__callout {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--mh-t-bg);
  border: 1px solid var(--mh-t-border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.mh-terms__info-card {
  margin-top: 32px;
  padding: 20px 18px;
  background: var(--mh-t-card);
  border: 1px solid var(--mh-t-border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.mh-terms__info-card .mh-terms__h2 {
  margin-top: 0;
  background: transparent;
  border-left: none;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--mh-t-border);
  border-radius: 0;
}

.mh-terms__info-card p,
.mh-terms__info-card .mh-terms__list {
  font-size: 14px;
}

/* 콘텐츠 스킨 헤더와 조화 */
#ctt.ctt_provision header h1,
#ctt.ctt_privacy header h1,
#ctt.ctt_shipping_return header h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

#ctt_con {
  padding: 0 4px 24px;
}

@media (max-width: 768px) {
  .mh-terms {
    padding: 4px 12px 40px;
    font-size: 14px;
  }

  .mh-terms__h2 {
    font-size: 16px;
    padding: 10px 12px;
  }

  .mh-terms__h3 {
    font-size: 14px;
  }

  #ctt.ctt_provision header h1,
  #ctt.ctt_privacy header h1,
  #ctt.ctt_shipping_return header h1 {
    font-size: 19px;
  }

  .mh-terms__info-card {
    padding: 16px 14px;
  }
}

@media (min-width: 1024px) {
  .mh-terms {
    padding: 12px 24px 56px;
    font-size: 16px;
  }

  .mh-terms__h2 {
    font-size: 18px;
  }
}
