/* rawdata 웹 — 개인정보처리방침 · 이용약관 전용(홈은 site.css 를 따로 쓴다)
   앱의 5차 시안(RAWD)을 그대로 잇는다: 순수한 흰/검정 바탕 · 강조색 없음 · 굵은 이름 + 가는 숫자 · 색은 캡처 조각이 맡는다. */

:root {
  --bg: #ffffff;
  --ink: #0a0a0b;
  --sub: #6b6b70;
  --num: #8e8e93;
  --soft: #f2f2f4;
  --line: #e4e4e8;
  --card: #ffffff;
  --inv-bg: #0a0a0b;
  --inv-ink: #ffffff;
  --inv-sub: #b4b4ba;
  --inv-line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.74);
  --glass-line: rgba(0, 0, 0, 0.06);
  --frag-shadow: 0 22px 44px rgba(0, 0, 0, 0.2), 0 3px 9px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
  --card-shadow: 0 30px 70px rgba(0, 0, 0, 0.16), 0 4px 14px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --done: #1db954;
  --gutter: 20px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo",
    "Noto Sans KR", "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --ink: #ffffff;
    --sub: #9a9aa0;
    --num: #8e8e93;
    --soft: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.14);
    --card: #1a1a1d;
    --inv-bg: #ffffff;
    --inv-ink: #0a0a0b;
    --inv-sub: #55555a;
    --inv-line: rgba(0, 0, 0, 0.09);
    --glass: rgba(14, 14, 16, 0.66);
    --glass-line: rgba(255, 255, 255, 0.09);
    --frag-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 3px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --card-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --ink: #ffffff;
  --sub: #9a9aa0;
  --soft: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.14);
  --card: #1a1a1d;
  --inv-bg: #ffffff;
  --inv-ink: #0a0a0b;
  --inv-sub: #55555a;
  --inv-line: rgba(0, 0, 0, 0.09);
  --glass: rgba(14, 14, 16, 0.66);
  --glass-line: rgba(255, 255, 255, 0.09);
  --frag-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 3px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --card-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

/* 언어: html[data-lang] 하나로 바꾼다(스크립트가 없으면 한국어) */
html:not([data-lang="en"]) [data-l="en"],
html[data-lang="en"] [data-l="ko"] {
  display: none !important;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--inv-bg);
  color: var(--inv-ink);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus {
  left: 12px;
}

/* ---------------------------------------------------------------- 머리 */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--glass-line);
}
.bar .logo {
  display: inline-flex;
  align-items: center;
  height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.bar .logo svg {
  height: 17px;
  width: auto;
}
.bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--soft);
}
.lang button {
  appearance: none;
  border: 0;
  margin: 0;
  min-width: 40px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--sub);
  font: 600 12px/1 var(--font);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--inv-bg);
  color: var(--inv-ink);
}

/* ---------------------------------------------------------------- 글자 */
.raw-name b {
  font-weight: 800;
}
.raw-name i {
  font-style: normal;
  font-weight: 300;
  color: var(--num);
}

.thin {
  font-weight: 200;
  color: var(--num);
}

/* 바닥 */
.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--sub);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 18px;
}
.foot nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.foot nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.biz {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  line-height: 1.55;
}
.biz dt {
  color: var(--num);
  font-weight: 400;
  white-space: nowrap;
}
.biz dd {
  margin: 0;
  color: var(--sub);
}
.biz a {
  color: var(--sub);
}
.copy {
  margin: 18px 0 0;
  color: var(--num);
}

/* ================================================================ 법 문서 */
.doc-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(56px + env(safe-area-inset-top) + 36px) var(--gutter) 24px;
}
.doc-head .kicker {
  font-size: 15px;
  margin: 0;
}
.doc-head h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 9.6vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.doc-head .when {
  margin: 0;
  font-size: 14px;
  color: var(--sub);
}
.doc-head .when .thin {
  margin: 0 6px;
}

.summary {
  margin: 28px 0 8px;
  padding: 20px 20px 6px;
  border-radius: 22px;
  background: var(--inv-bg);
  color: var(--inv-ink);
}
.summary h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--inv-sub);
  letter-spacing: 0.02em;
}
.summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.summary li {
  padding: 11px 0 12px;
  border-top: 1px solid var(--inv-line);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}
.summary li:first-child {
  border-top: 0;
}

.toc {
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-weight: 700;
  font-size: 15px;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}
.toc[open] summary svg {
  transform: rotate(180deg);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  counter-reset: toc;
}
.toc li a {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  text-decoration: none;
  color: var(--sub);
  font-size: 14.5px;
  line-height: 1.45;
}
.toc li a .k {
  flex: none;
  width: 24px;
  font-weight: 200;
  color: var(--num);
}
.toc li a:hover,
.toc li a[aria-current="true"] {
  color: var(--ink);
}
.toc li a[aria-current="true"] {
  font-weight: 700;
}

.doc {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.78;
}
.doc section {
  scroll-margin-top: 80px;
  padding-top: 40px;
}
.doc h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.025em;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.doc h2 .k {
  flex: none;
  font-weight: 200;
  color: var(--num);
  font-size: 20px;
}
.doc h3 {
  margin: 26px 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.doc p {
  margin: 0 0 12px;
}
.doc ul,
.doc ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}
.doc li {
  margin: 4px 0;
}
.doc li::marker {
  color: var(--num);
}
.doc .note {
  font-size: 14.5px;
  color: var(--sub);
}
.doc a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.doc a:hover {
  text-decoration-color: var(--ink);
}
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--soft);
  padding: 1px 6px;
  border-radius: 6px;
}

/* 표: 좁은 화면에서는 한 줄씩 카드처럼 쌓는다 */
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
}
.tbl th,
.tbl td {
  text-align: left;
  vertical-align: top;
  padding: 11px 10px 11px 0;
  border-top: 1px solid var(--line);
}
.tbl thead th {
  border-top: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--num);
  padding-bottom: 8px;
}
.tbl tbody th {
  font-weight: 700;
  white-space: nowrap;
}
.tbl td small,
.tbl th small {
  display: block;
  color: var(--sub);
  font-size: 13px;
  font-weight: 400;
}
@media (max-width: 719px) {
  .tbl thead {
    display: none;
  }
  .tbl,
  .tbl tbody,
  .tbl tr,
  .tbl th,
  .tbl td {
    display: block;
    width: 100%;
  }
  .tbl tr {
    padding: 12px 0 10px;
    border-top: 1px solid var(--line);
  }
  .tbl tbody th,
  .tbl td {
    border-top: 0;
    padding: 2px 0;
    white-space: normal;
  }
  .tbl tbody th {
    font-size: 15.5px;
    margin-bottom: 4px;
  }
  .tbl td[data-h]::before {
    content: attr(data-h);
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--num);
    margin-top: 6px;
  }
}

/* 국외 이전: 받는 곳마다 한 덩어리 */
.xfer {
  margin: 10px 0 18px;
  padding: 16px 18px 6px;
  border-radius: 18px;
  background: var(--soft);
}
.xfer h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.xfer dl {
  margin: 0;
}
.xfer .r {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.6;
}
.xfer dt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--num);
}
.xfer dd {
  margin: 0;
}

.contact-card {
  margin: 10px 0 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.contact-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 15px;
}
.contact-card dt {
  color: var(--num);
}
.contact-card dd {
  margin: 0;
  font-weight: 600;
}

.doc-end {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--sub);
}


/* ================================================================ 넓은 화면 */
@media (min-width: 760px) {
  :root {
    --gutter: 40px;
  }
  .bar .logo svg {
    height: 19px;
  }
  .biz {
    grid-template-columns: auto 1fr auto 1fr;
  }
  .doc-wrap {
    display: grid;
    grid-template-columns: 240px minmax(0, 680px);
    column-gap: 64px;
    justify-content: center;
  }
  .doc-top {
    grid-column: 2;
    grid-row: 1;
  }
  .doc-main {
    grid-column: 2;
    grid-row: 2;
  }
  .doc-side {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding-bottom: 24px;
  }
  .toc {
    margin: 0;
    border: 0;
  }
  .toc summary {
    pointer-events: none;
    padding-top: 0;
    font-size: 13px;
    color: var(--num);
    font-weight: 600;
  }
  .toc summary svg {
    display: none;
  }
  .doc-main {
    min-width: 0;
  }
}

@media print {
  .bar,
  .toc,
  .doc-side,
  .foot nav {
    display: none !important;
  }
  .doc-wrap {
    display: block;
    padding-top: 0;
  }
  .summary {
    border: 1px solid #000;
    background: none;
    color: #000;
  }
}

.doc-main > .doc > p:first-child {
  margin-top: 22px;
}
