/*
  약관·방침 정적 페이지. 앱 번들과 별개로 서빙되므로 토큰을 여기 다시 둔다.

  테마는 앱 설정(localStorage "mvno.theme")을 따른다 — 페이지 상단 인라인 스크립트가
  data-theme 을 심어 준다. :not([data-theme="light"]) 덕분에 OS 가 다크여도
  앱에서 라이트를 고르면 아래 :root 값이 그대로 살아난다.
*/
:root {
  --ground: #e7ecee;
  --surface: #ffffff;
  --surface-2: #f4f7f8;
  --ink: #131e2e;
  --ink-2: #46586b;
  --muted: #8796a3;
  --line: #d7dfe3;
  --accent: #0b7c81;
  --accent-soft: #d6eae9;
  --crit: #c3374c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0c141b;
    --surface: #16212b;
    --surface-2: #1c2833;
    --ink: #e6edf1;
    --ink-2: #a8b9c5;
    --muted: #6f818d;
    --line: #2a3945;
    --accent: #3fb0b2;
    --accent-soft: #0f2e31;
    --crit: #e8697c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0c141b;
  --surface: #16212b;
  --surface-2: #1c2833;
  --ink: #e6edf1;
  --ink-2: #a8b9c5;
  --muted: #6f818d;
  --line: #2a3945;
  --accent: #3fb0b2;
  --accent-soft: #0f2e31;
  --crit: #e8697c;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: env(safe-area-inset-top) calc(20px + env(safe-area-inset-right))
    calc(48px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", system-ui, "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all; /* 한국어는 어절 단위로 끊어야 읽기 좋다 */
}
main {
  max-width: 680px;
  margin: 0 auto;
}

.back {
  display: inline-block;
  margin: 22px 0 10px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.back:hover {
  color: var(--accent);
}

h1 {
  margin: 8px 0 4px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.meta {
  margin: 0 0 22px;
  font-size: 12.5px;
  color: var(--muted);
}
.meta b {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* 가장 중요한 한 문단은 본문과 분리해 먼저 읽히게 */
.lead {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 30px;
}
.lead p {
  margin: 0;
  font-size: 14.5px;
}

h2 {
  margin: 34px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
p {
  margin: 0 0 12px;
}
ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
li {
  margin-bottom: 6px;
}
b {
  font-weight: 650;
}
a {
  color: var(--accent);
}

.note {
  padding: 12px 14px;
  border-left: 3px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}
th,
td {
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-2);
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}
tbody th {
  width: 96px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface-2);
}
.sub {
  font-size: 12px;
  color: var(--muted);
}
/* 사업자 정보처럼 확인이 필요한 값 */
.fill {
  text-decoration: underline dotted var(--muted);
  text-underline-offset: 3px;
}

footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
footer span {
  color: var(--muted);
}

@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }
  h1 {
    font-size: 22px;
  }
  tbody th {
    width: 76px;
  }
}
code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}
