/* 약관 (/PrivacyPolicy · /TermsofService) — 시안 policy.css. 글이 길어 읽기 편한 폭 · 줄 간격, 넓은 화면은 왼쪽에 따라오는 목차.
 * 시안과 다른 점: 언어 칩 셋(한 · 영 · 일), 일본어 글은 일본어 줄바꿈, 글이 없을 때 안내. */
.pol-hero {
  padding-block: clamp(28px, 5vw, 64px) clamp(18px, 3vw, 30px);
}
.pol-title {
  margin-top: 10px;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.pol-meta {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.pol-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 24px;
}
.pol-body {
  display: grid;
  gap: var(--gap);
  align-items: start;
}
@media (min-width: 1000px) {
  .pol-body {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .pol-body--solo {
    grid-template-columns: minmax(0, 1fr);
  }
  .pol-toc {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow: auto;
    scrollbar-width: thin;
  }
}
.pol-toc__box {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.pol-toc__box > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.pol-toc__box > summary::-webkit-details-marker {
  display: none;
}
.pol-toc__box > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.pol-toc__box[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}
@media (min-width: 1000px) {
  .pol-toc__box > summary {
    pointer-events: none; /* 넓은 화면은 늘 펼친다 */
  }
  .pol-toc__box > summary::after {
    display: none;
  }
}
.pol-toc__count {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted);
}
.pol-toc__list {
  margin: 0;
  padding: 0 8px 10px;
  list-style: none;
}
.pol-toc__list a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-2);
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.pol-toc__list a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.pol-toc__list a[aria-current='true'] {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--red);
}
.pol-toc__no {
  flex: none;
  min-width: 3.4em;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--muted);
}
.pol-doc {
  padding: clamp(22px, 4vw, 56px);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.pol-doc > * {
  max-width: 76ch;
}
.pol-doc h2 {
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.pol-doc h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.pol-doc p {
  margin: 0 0 14px;
}
.pol-doc ul,
.pol-doc ol {
  margin: 0 0 14px;
  padding-left: 1.3em;
}
.pol-doc li {
  margin-bottom: 4px;
}
.pol-doc a {
  color: var(--red-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pol-doc img {
  height: auto;
}
.pol-doc table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.pol-doc th,
.pol-doc td {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  vertical-align: top;
}
/* 글이 없을 때 */
.pol-doc--empty {
  color: var(--muted);
}
/* 일본어는 낱말 사이를 띄우지 않는다 — 한국어용 keep-all 이면 줄 끝에서야 억지로 끊겨, 일본어 줄바꿈 규칙으로 */
.pol-doc:lang(ja),
.pol-toc__list:lang(ja),
.pol-hero:lang(ja) {
  word-break: normal;
  line-break: strict;
}
