:root {
  --bg-cream:      #F7F1E6;
  --bg-cream-soft: #FBF7EE;
  --navy-mute:     #2E3A55;
  --text-brown:    #5C4A3A;
  --text-sub:      #8A7A68;
  --gold:          #C9A24B;
  --gold-soft:     #E6CF94;
  --line:          #E4D8C0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg-cream);
  color: var(--text-brown);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss06';
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.policy-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 22px 60px;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.back-link {
  color: var(--text-sub);
  font-size: 13px;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--gold); }
.top-bar img { height: 40px; width: auto; }

.policy-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-mute);
  margin: 0 0 32px;
  letter-spacing: -0.02em;
}

.policy-loading {
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
  padding: 40px 0;
}

/* ── Markdown 렌더 영역 ── */
.policy-content { font-size: 14.5px; color: var(--text-brown); line-height: 1.8; }
.policy-content h1 {
  font-size: 24px; font-weight: 800; color: var(--navy-mute);
  margin: 0 0 24px; letter-spacing: -0.01em;
  display: none; /* 별도 title 보여줌 */
}
.policy-content h2 {
  font-size: 18px; font-weight: 700; color: var(--navy-mute);
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
}
.policy-content h3 {
  font-size: 15px; font-weight: 700; color: var(--text-brown);
  margin: 22px 0 10px;
}
.policy-content p { margin: 0 0 14px; }
.policy-content strong { color: var(--navy-mute); font-weight: 700; }
.policy-content em { font-style: normal; color: var(--gold); }

.policy-content ul, .policy-content ol {
  padding-left: 24px;
  margin: 0 0 16px;
}
.policy-content li { margin-bottom: 6px; }

.policy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 13px;
}
.policy-content th, .policy-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.policy-content th {
  background: var(--bg-cream-soft);
  font-weight: 700;
  color: var(--navy-mute);
}

.policy-content blockquote {
  border-left: 3px solid var(--gold-soft);
  padding: 10px 16px;
  color: var(--text-sub);
  font-size: 13.5px;
  margin: 18px 0;
  background: var(--bg-cream-soft);
  border-radius: 0 6px 6px 0;
}
.policy-content blockquote p:last-child { margin-bottom: 0; }

.policy-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

.policy-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-content code {
  background: var(--bg-cream-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12.5px;
  font-family: 'SF Mono', Menlo, monospace;
}

/* ── 푸터 ── */
.policy-foot {
  margin-top: 60px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-sub);
  font-size: 11.5px;
  line-height: 1.7;
}
.policy-foot .policy-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 12.5px;
}
.policy-foot .policy-nav a {
  color: var(--text-sub);
  transition: color 0.15s ease;
}
.policy-foot .policy-nav a:hover { color: var(--gold); }
.policy-foot .policy-nav a.active { color: var(--navy-mute); font-weight: 700; }
.policy-foot .biz {
  font-size: 10.5px;
  color: var(--text-sub);
  line-height: 1.9;
  letter-spacing: 0.01em;
  margin-top: 8px;
}
.policy-foot .biz .sep { color: var(--gold-soft); margin: 0 4px; }
