/* ── 법적 고지 문서 공용 스타일 ────────────────────────────────────────────
   토큰은 index.html과 동일하다 (geniegetsme.com 계측: 배경 #F5F5F5 · 잉크 #1E1E1E).
   랜딩은 로고 한 장짜리 화면이라 CSS를 인라인했지만, 문서는 두 장이 같은 규칙을
   써야 해서 파일로 뺐다. 외부 요청은 여전히 0 — 같은 오리진의 상대 경로다. */

:root {
  --bg: #f5f5f5;
  --ink: #1e1e1e;
  --ink-soft: #6e6e6e;
  --line: #e0e0e0;

  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial,
    sans-serif;

  --edge: clamp(20px, 4vw, 40px);
  /* 한 줄 길이 — 한글 본문은 라틴보다 글자당 폭이 넓어 68ch면 너무 길다 */
  --measure: 34em;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;

  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 48px;
  padding: calc(var(--edge) + env(safe-area-inset-top))
    calc(var(--edge) + env(safe-area-inset-right))
    calc(var(--edge) + env(safe-area-inset-bottom))
    calc(var(--edge) + env(safe-area-inset-left));
}

/* ── 상단 — 로고가 곧 홈 링크 ─────────────────────────────────────────── */
.masthead {
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
}

.masthead a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border-radius: 2px;
}

.masthead a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.masthead svg {
  width: 92px;
  height: auto;
  display: block;
}

/* ── 본문 ─────────────────────────────────────────────────────────────── */
article {
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
  /* body가 그리드라 그리드 아이템의 기본 min-width:auto가 축소를 막는다. 이걸 풀지 않으면
     안쪽 .table-scroll의 overflow-x가 무력화되고 좁은 화면에서 페이지 전체가 가로로 밀린다. */
  min-width: 0;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* 시행일·최종 수정일 */
.meta {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 시행일 바로 뒤에 (h2가 아니라) 머리글 문단이 오는 경우 — p에는 위 마진이 없어
   그대로 두면 시행일 줄에 붙는다. h2가 오는 경우는 h2의 44px 마진이 처리한다. */
.meta + p {
  margin-top: 24px;
}

h2 {
  margin: 44px 0 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

h3 {
  margin: 24px 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p,
li {
  font-size: 15px;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

li::marker {
  color: var(--ink-soft);
}

strong {
  font-weight: 600;
}

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

article a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 표 — 좁은 화면에서 가로 스크롤 (본문은 절대 가로로 밀리지 않는다) */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 12px;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 340px;
  font-size: 14px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  white-space: nowrap;
}

/* 마지막 갱신·문의처처럼 본문에서 한 칸 떨어뜨리는 마무리 블록 */
.tail {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.tail a {
  color: var(--ink-soft);
}

/* ── 하단 — 랜딩과 동일 ───────────────────────────────────────────────── */
footer {
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.foot-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.foot-item {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

a.foot-item:hover {
  color: var(--ink);
}

a.foot-item:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

/* 현재 보고 있는 문서는 링크로 두되 상태를 알린다 */
a.foot-item[aria-current="page"] {
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
