/* 정책 페이지(/policies/*) 공통 스타일. 색·폰트 토큰은 brand.css 가 접속 도메인별로 채운다. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--handol-bg); color: var(--text-body); font: 16px/1.7 "Pretendard", "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--handol-main); text-decoration: none; }
a:hover { color: var(--accent-text); text-decoration: underline; }
img { max-width: 100%; }
nav.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: rgba(253, 253, 253, 0.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--handol-line); }
nav.bar .brand { display: flex; align-items: center; gap: 10px; }
nav.bar .brand img { width: 36px; height: 36px; display: block; }
nav.bar .brand .name { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 20px; color: var(--handol-text); }
nav.bar .home { font-weight: 600; font-size: 14px; color: var(--handol-text-muted); }
main.doc { max-width: 820px; margin: 0 auto; padding: 40px 24px 72px; }
main.doc header { text-align: center; margin-bottom: 32px; }
main.doc h1 { margin: 0 0 12px; font-size: clamp(26px, 6vw, 36px); line-height: 1.3; font-weight: 800; color: var(--handol-text); letter-spacing: -0.02em; }
main.doc .lead { margin: 0; color: var(--handol-text-muted); }
dl.sum { margin: 24px auto 0; max-width: 560px; text-align: left; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; background: var(--handol-main-soft); border-radius: 16px; padding: 16px 20px; font-size: 14.5px; }
dl.sum dt { font-weight: 700; color: var(--handol-text); }
dl.sum dd { margin: 0; }
nav.toc { background: var(--handol-surface); border: 1px solid var(--handol-line); border-radius: 16px; padding: 18px 22px; margin-bottom: 36px; }
nav.toc h2 { margin: 0 0 8px; font-size: 16px; color: var(--handol-text); }
nav.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; font-size: 14.5px; }
nav.toc li { break-inside: avoid; padding: 3px 0; }
main.doc section { padding: 28px 0 0; margin-top: 28px; border-top: 1px solid var(--handol-line); scroll-margin-top: 72px; }
main.doc section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
main.doc section h2 { margin: 0 0 14px; font-size: 21px; line-height: 1.4; font-weight: 800; color: var(--handol-text); }
main.doc p { margin: 0 0 12px; }
p.src { background: var(--handol-main-soft); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; }
ol.lst { list-style: none; margin: 0 0 12px; padding: 0; }
ol.lst > li { display: flex; gap: 10px; margin: 0 0 10px; }
ol.lst .mk { flex: none; min-width: 1.8em; font-weight: 700; color: var(--handol-text-muted); }
ol.lst .bd { flex: 1; min-width: 0; }
ol.lst .bd > ol.lst { margin-top: 8px; }
.tbl { overflow-x: auto; margin: 0 0 12px; }
.tbl table { border-collapse: collapse; min-width: 28rem; width: 100%; font-size: 14.5px; }
.tbl th, .tbl td { border-bottom: 1px solid var(--handol-line); padding: 8px 10px; text-align: left; vertical-align: top; }
footer.site { background: var(--handol-dark); color: var(--handol-inactive); padding: 32px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer.site .fb { display: flex; align-items: center; gap: 10px; }
footer.site .fb img { width: 32px; height: 32px; }
footer.site .fb .fn { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 18px; color: var(--handol-on-main); }
footer.site .fl { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
footer.site .fl a { color: var(--handol-sky); }
footer.site .fl a[aria-current] { color: var(--handol-on-main); font-weight: 700; }
@media (max-width: 600px) {
  nav.bar { padding: 12px 16px; }
  main.doc { padding: 28px 16px 56px; }
  nav.toc ol { columns: 1; }
  main.doc section h2 { font-size: 19px; }
  dl.sum { grid-template-columns: 1fr; gap: 0; }
  dl.sum dd { margin-bottom: 8px; }
  footer.site { padding: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
