/* 법적 문서 페이지 공용 스타일 (privacy-policy/*, terms-conditions/*)
   메인 페이지와 같은 밝은 G 디자인을 읽기 좋은 한 단 문서 폭으로. 색·글꼴 변수는 theme.css */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* 모바일 Safari 주소창을 뺀 보이는 높이 */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:lang(ko) {
  font-family: var(--font-ko);
  word-break: keep-all;
}

/* 파셜이 들어오기 전에도 헤더 자리를 잡아 두어 내용이 밀리지 않게 함 */
#site-header {
  min-height: var(--header-h);
}

a {
  color: var(--ink);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 문서 본문 */
.page {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.policy-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

.section-eyebrow {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

.policy-title {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.policy-title:lang(ko) {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.policy-subtitle {
  margin: 0;
  color: var(--text-body);
  font-size: 18px;
}

.policy-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.policy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-section h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.policy-section p,
.policy-section li {
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.75;
}

.policy-section p {
  margin: 0 0 14px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.policy-section li + li {
  margin-top: 6px;
}

.effective-date {
  color: var(--text-muted);
  font-size: 14px;
}

/* 앱 페이지로 돌아가기 */
.back-link {
  display: inline-flex;
  /* 위아래 10px는 터치 영역(높이 44px). 보이는 간격은 48px 그대로 */
  padding: 10px 0;
  margin-top: 38px;
  margin-bottom: -10px;
  color: var(--text-body);
  font-size: 15px;
}

@media (max-width: 768px) {
  .page {
    padding: 48px var(--gutter) 72px;
  }
}

@media (max-width: 480px) {
  .policy-subtitle {
    font-size: 17px;
  }
}
