/* 내금고 정책 문서 공통 스타일 (index.html과 같은 색 · 글꼴) */
:root {
  --brand: #375DAB;
  --brand-strong: #2C4C8F;
  --brand-soft: #EEF3FB;
  --brand-line: #D5E0F3;
  --ink: #191F28;
  --sub: #4E5968;
  --muted: #8B95A1;
  --line: #E5E8EB;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--brand); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* 머리글 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand span { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.header-link {
  font-size: 14px; font-weight: 600; color: var(--sub); text-decoration: none;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
}
.header-link:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }

/* 문서 첫 화면 */
.doc-hero { background: linear-gradient(180deg, var(--brand-soft) 0%, #FFFFFF 100%); padding: 56px 0 32px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand);
  background: #FFFFFF; border: 1px solid var(--brand-line); border-radius: 999px; padding: 4px 12px;
}
.doc-hero h1 { font-size: 36px; line-height: 1.3; letter-spacing: -0.03em; margin: 16px 0 10px; }
.doc-hero p { font-size: 17px; color: var(--sub); margin: 0; max-width: 640px; }
.doc-meta { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* 문서 본문 */
.doc { padding: 8px 0 64px; }
.doc-body { max-width: 760px; }
.toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0 8px;
}
.toc strong { display: block; font-size: 15px; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { break-inside: avoid; padding: 2px 0; }
.toc a { color: var(--sub); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

.doc-body h2 {
  font-size: 21px; letter-spacing: -0.02em; margin: 44px 0 12px; padding-top: 8px;
  scroll-margin-top: 80px;
}
.doc-body h3 { font-size: 17px; margin: 24px 0 8px; }
.doc-body p { margin: 0 0 12px; color: #333D4B; }
.doc-body ul, .doc-body ol { margin: 0 0 12px; padding-left: 22px; color: #333D4B; }
.doc-body li { margin: 4px 0; }
.doc-body li > ul { margin-top: 4px; }

.note {
  background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 12px;
  padding: 14px 18px; margin: 12px 0 16px; font-size: 15px; color: #2B3F66;
}
.note p { margin: 0; color: inherit; }

.table-wrap { overflow-x: auto; margin: 8px 0 16px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 700; color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td { color: #333D4B; }

.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 8px 0 16px;
}
.contact-card dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; }
.contact-card dt { color: var(--muted); font-size: 15px; }
.contact-card dd { margin: 0; font-weight: 600; }

/* 바닥글 */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; justify-content: space-between; }
.site-footer .brand span { font-size: 16px; }
.site-footer .brand img { width: 24px; height: 24px; }
.site-footer .tag { margin: 6px 0 0; }
.site-footer a { color: var(--sub); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 6px; }
.footer-links a.strong { font-weight: 700; color: var(--ink); }

@media (max-width: 720px) {
  .doc-hero { padding: 40px 0 24px; }
  .doc-hero h1 { font-size: 28px; }
  .doc-hero p { font-size: 16px; }
  .toc ol { columns: 1; }
  .doc-body h2 { font-size: 19px; margin-top: 36px; }
  .contact-card dl { grid-template-columns: 96px 1fr; }
  .header-link { padding: 6px 12px; }
}

/* 약관의 장 구분 */
.chapter {
  margin: 56px 0 -24px; font-size: 14px; font-weight: 800; color: var(--brand);
  letter-spacing: 0.02em; border-top: 2px solid var(--brand-line); padding-top: 16px;
}
.chapter:first-of-type { margin-top: 32px; }
