/* Terms of Service and Privacy Policy pages. Plain, readable, printable. */
:root {
  --bg: #fbfbfc;
  --ink: #17191c;
  --muted: #5d6470;
  --line: #e5e7eb;
  --accent: #5b5ce2;
  --soft: #f1f1fd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
:lang(ko) body, article[lang="ko"] { word-break: keep-all; }
a { color: var(--accent); }
.top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(251, 251, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 720; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.brand-mark i { display: block; width: 4px; border-radius: 2px; background: var(--accent); transform: skewX(-14deg); }
.brand-mark i:nth-child(1) { height: 7px; opacity: 0.55; }
.brand-mark i:nth-child(2) { height: 11px; opacity: 0.8; }
.brand-mark i:nth-child(3) { height: 16px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a[aria-current] { color: var(--ink); font-weight: 650; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 4px 10px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
main { max-width: 760px; margin: 0 auto; padding: 40px 16px 80px; }
h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.035em; line-height: 1.15; margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.summary { background: var(--soft); border: 1px solid #e1e1fa; border-radius: 14px; padding: 18px 20px; margin: 0 0 32px; }
.summary h2 { margin: 0 0 6px; font-size: 16px; }
.summary ul { margin: 0; padding-left: 20px; }
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 0 0 36px; background: #fff; }
.toc b { font-size: 14px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 14px; }
.toc li { break-inside: avoid; }
h2 { font-size: 21px; letter-spacing: -0.02em; margin: 40px 0 10px; scroll-margin-top: 72px; }
h3 { font-size: 16px; margin: 22px 0 6px; }
p, li { color: #2b2f36; }
ul, ol { padding-left: 22px; }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: #f6f7f9; font-weight: 650; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.note { font-size: 14px; color: var(--muted); }
footer { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }
/* Only the chosen language is shown. */
html[data-lang="en"] [lang="ko"]:not(html), html[data-lang="ko"] [lang="en"]:not(html) { display: none; }
@media (max-width: 600px) {
  .toc ol { columns: 1; }
  /* Phones: just the language switch up top; both documents are linked in the footer. */
  .top nav > a { display: none; }
}
@media print {
  .top, footer, .toc { display: none; }
  main { padding: 0; }
}

.brand-logo { display: block; height: 22px; width: auto; }
