:root {
  color-scheme: light dark;
  --mp: #1a6fbf;
  --mp-deep: #0f5698;
  --mp-tint: #cadff4;
  --mp-wash: #ecf3fb;
  --mp-ink: #1a1d21;
  --mp-muted: #5b6672;
  --mp-line: #e6e8eb;
  --mp-bg: #fff;
  --mp-soft: #f4f6f9;
  --mp-canvas: #f4f6f9;
  --mp-on-bar: #fff;
  --mp-bar: #1187CF;
  --mp-chip: #ecf3fb;
  /* Non-blue feature surface — warm off-white that pairs with the blue bar */
  --hero-surface: #f7f5f1;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mp: #7fbdf2;
    --mp-deep: #3f7fae;
    --mp-tint: #38536b;
    --mp-wash: #17222b;
    --mp-ink: #f0f2f4;
    --mp-muted: #a7afb8;
    --mp-line: #333638;
    --mp-bg: #1a1c1e;
    --mp-soft: #212426;
    --mp-canvas: #121315;
    --mp-on-bar: #fff;
    --mp-bar: #1187CF;
    --mp-chip: #17222b;
    --hero-surface: #1e1c19;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font: 16px/1.65 -apple-system, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  margin: 0;
  background: var(--mp-canvas);
  color: var(--mp-ink);
}
a { color: var(--mp); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--mp);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
}
.skip:focus {
  left: 8px;
  z-index: 80;
  background: var(--mp-bg);
  padding: 8px 12px;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--mp-line);
}

/* App bar — brand blue; the feature section below uses --hero-surface (not blue) */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mp-bar);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 6px 18px rgba(11, 45, 74, 0.12);
}
.legal-top, .legal-foot, .crumbs, .pager {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 20px;
}
.legal-top {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 16px;
  align-items: center;
  min-height: 34px;
}
.legal-top a.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.legal-top a.brand .brand-en {
  font-weight: 600;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-left: 6px;
}
.legal-top a.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.legal-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 13px;
  align-items: center;
  margin-left: auto;
}
.legal-top nav a,
.legal-top nav summary {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}
.legal-top nav a:hover,
.legal-top nav summary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.legal-top nav a[aria-current="page"],
.legal-top nav summary[aria-current="true"],
.nav-dd[data-current="true"] summary {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
}
.nav-plain { padding: 6px 10px; }
.nav-dd { position: relative; }
.nav-dd summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 10px;
  font: inherit;
}
.nav-dd summary::-webkit-details-marker { display: none; }
.nav-dd summary::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.8;
}
.nav-dd[open] summary::after { content: " ▴"; }
.nav-sub {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  max-height: min(70vh, 480px);
  overflow: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--mp-bg);
  color: var(--mp-ink);
  border: 1px solid var(--mp-line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  font-size: 13px;
}
.nav-dd-end .nav-sub { left: auto; right: 0; }
.nav-sub li { margin: 0; }
.nav-sub a {
  display: block;
  padding: 8px 14px;
  color: var(--mp-ink) !important;
  border-radius: 0;
}
.nav-sub a:hover,
.legal-top nav .nav-sub a:hover {
  background: var(--mp-chip);
  color: var(--mp-deep) !important;
  text-decoration: none;
}
.nav-sub a[aria-current="page"] { color: var(--mp-deep) !important; font-weight: 700; background: var(--mp-chip); }
.nav-label {
  padding: 10px 14px 4px;
  font-size: 11px;
  color: var(--mp-muted);
  letter-spacing: 0.04em;
}
.nav-label:not(:first-child) {
  margin-top: 4px;
  border-top: 1px solid var(--mp-line);
}

/* Legal dropdown as a grouped, mostly-horizontal panel (mega menu) */
.nav-dd-mega { position: relative; }
.nav-mega {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 14px 16px 12px;
  background: var(--mp-bg);
  color: var(--mp-ink);
  border: 1px solid var(--mp-line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.nav-mega-all {
  display: block;
  padding: 4px 10px 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--mp-line);
  color: var(--mp-deep) !important;
  font-weight: 700;
  font-size: 13px;
}
.nav-mega-all:hover { text-decoration: underline; }
.nav-mega-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(148px, 1fr));
  gap: 4px 18px;
}
.nav-mega .nav-col-h {
  margin: 0 0 3px;
  padding: 0 10px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mp-muted);
}
.nav-mega .nav-col ul { list-style: none; margin: 0; padding: 0; }
.nav-mega .nav-col a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--mp-ink) !important;
  font-size: 13px;
}
.nav-mega .nav-col a:hover {
  background: var(--mp-chip);
  color: var(--mp-deep) !important;
  text-decoration: none;
}
.nav-mega .nav-col a[aria-current="page"] {
  background: var(--mp-chip);
  color: var(--mp-deep) !important;
  font-weight: 700;
}
@media (max-width: 900px) {
  .nav-mega-cols { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 13px;
  color: var(--mp-muted);
  padding-top: 16px;
  padding-bottom: 0;
}
.crumbs a { color: var(--mp); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--mp-ink); font-weight: 650; }
.crumbs .sep { color: var(--mp-line); }

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 64px;
  background: var(--mp-bg);
  min-height: 50vh;
}
h1 { font-size: 22px; margin: 0 0 8px; letter-spacing: -0.03em; }
h2 {
  font-size: 16px;
  margin: 28px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--mp-bar);
}
h3 { font-size: 15px; margin: 18px 0 6px; }
p, li, td, th { font-size: 15px; }
ul, ol { margin: 0; padding-left: 1.2em; }
li { margin: 4px 0; }
.meta { font-size: 13px; color: var(--mp-muted); margin: 0 0 24px; }
.lead { font-size: 16px; margin: 0 0 16px; }
.note { font-size: 14px; color: var(--mp-muted); margin-top: 28px; }
.callout {
  background: var(--mp-wash);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0 24px;
  font-size: 15px;
  border: 1px solid var(--mp-tint);
}
.toc { font-size: 14px; margin: 0 0 28px; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--mp-line); margin: 36px 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
th, td { border: 1px solid var(--mp-line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--mp-soft); width: 32%; }
.hub { list-style: none; padding: 0; margin: 8px 0 20px; }
.hub li { margin: 0; border-bottom: 1px solid var(--mp-line); }
.hub a {
  display: block;
  padding: 12px 8px 12px 0;
  color: inherit;
  text-decoration: none;
  position: relative;
}
.hub a::after {
  content: "›";
  float: right;
  color: var(--mp);
  font-size: 18px;
  line-height: 1.2;
}
.hub a:hover { color: var(--mp); background: var(--mp-wash); }
.hub small { display: block; color: var(--mp-muted); font-size: 13px; margin-top: 2px; }

.legal-foot {
  background: var(--mp-bg);
  border-top: 1px solid var(--mp-line);
  font-size: 13px;
  color: var(--mp-muted);
  max-width: none;
  padding: 28px 20px 40px;
}
.legal-foot .foot-inner { max-width: 760px; margin: 0 auto; }
.legal-foot a { text-decoration: none; }
.legal-foot a:hover { text-decoration: underline; }

/* Footer links as one horizontal wrapping row (compact, not one-per-line) */
.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 16px;
  font-size: 13px;
}
.foot-links a {
  color: var(--mp-ink);
  text-decoration: none;
}
.foot-links a:hover { color: var(--mp); text-decoration: underline; }
.foot-sep {
  width: 1px;
  height: 12px;
  background: var(--mp-line);
}
.foot-copy { line-height: 1.6; margin: 0; }

code { font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; align-items: center; }
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: none;
}
.btn.primary { background: var(--mp-bar); color: #fff; }
.btn.primary:hover { background: var(--mp-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--mp); border-color: var(--mp); }
.btn.ghost:hover { background: var(--mp-chip); }
.cards { display: grid; gap: 14px; margin: 8px 0 28px; }
@media (min-width: 640px) {
  .cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
}
.card-box {
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  padding: 18px 18px 16px;
  background: var(--mp-bg);
}
.card-box h2, .card-box h3 { margin-top: 0; padding-left: 0; border-left: 0; }
.card-box p:last-child { margin-bottom: 0; }
a.card-box {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s ease, background 0.15s ease;
}
a.card-box:hover {
  border-color: var(--mp);
  background: var(--mp-wash);
  color: inherit;
}
a.card-box h2, a.card-box h3 { color: var(--mp-deep); }
.doc > a.card-box { margin: 16px 0 8px; }
.join-wrap { text-align: center; max-width: 420px; margin: 0 auto; }
.join-wrap .code-label { font-size: 12px; color: var(--mp-muted); margin: 0 0 6px; letter-spacing: .04em; }
.join-wrap .code {
  font: 700 26px/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .22em;
  padding: 14px 8px;
  border-radius: var(--radius);
  background: var(--mp-wash);
  user-select: all;
  margin-bottom: 8px;
  color: var(--mp-deep);
}
.join-wrap .btn { display: block; width: 100%; margin-top: 10px; text-align: center; }
.hidden { display: none !important; }
.lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13px;
  margin: 0 0 20px;
  color: var(--mp-muted);
}
.lang-links a[aria-current="page"] { font-weight: 700; color: var(--mp-ink); text-decoration: none; }
.hero + .lang-links, .hero .lang-links { justify-content: center; }
.hero + .lang-links { margin-top: -8px; color: var(--mp-muted); }
.en-block h1, .en-block h2 { font-weight: 650; }

.hero {
  text-align: center;
  margin: -20px -20px 28px;
  padding: 32px 20px 28px;
  background: var(--hero-surface);
  color: var(--mp-ink);
  border-bottom: 1px solid var(--mp-line);
  border-radius: 0 0 20px 20px;
}
.hero h1 { font-size: 28px; margin-bottom: 10px; color: var(--mp-ink); }
.hero .tagline { font-size: 16px; color: var(--mp-muted); margin: 0 0 8px; }
.hero .lead, .hero p { color: var(--mp-muted); }
.hero .lead { margin-top: 12px; color: var(--mp-ink); }
.hero .meta { color: var(--mp-muted); margin-bottom: 0; }
.hero a { color: var(--mp); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; justify-content: center; }
.pill {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mp-wash);
  border: 1px solid var(--mp-tint);
  color: var(--mp-deep);
}
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 56px; width: auto; }
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 8px 0 20px;
  background: #111;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; gap: 18px; margin: 16px 0 28px; }
.video-grid h3 { margin: 0 0 8px; font-size: 15px; }
.center-actions { justify-content: center; }
.faq { margin: 8px 0 28px; }
.faq > div {
  border-bottom: 1px solid var(--mp-line);
  padding: 12px 0;
}
.faq dt { font-weight: 700; margin: 0 0 4px; font-size: 15px; }
.faq dd { margin: 0; color: var(--mp-muted); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 24px;
}
.pager a {
  flex: 1;
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--mp-line);
  border-radius: var(--radius);
  background: var(--mp-bg);
  text-decoration: none;
  color: inherit;
}
.pager a:hover { border-color: var(--mp); background: var(--mp-wash); }
.pager .dir { display: block; font-size: 12px; color: var(--mp-muted); margin-bottom: 2px; }
.pager .ttl { color: var(--mp-deep); font-weight: 700; }
.pager a.next { text-align: right; }

@media (max-width: 620px) {
  .legal-top { flex-wrap: wrap; align-items: flex-start; }
  .legal-top nav { margin-left: 0; width: 100%; }
  .nav-dd { width: 100%; }
  .nav-sub {
    position: static;
    max-height: none;
    box-shadow: none;
    border: 0;
    border-radius: 8px;
    padding: 4px 6px 8px;
    background: var(--mp-soft);
  }
  .nav-sub a { color: var(--mp-ink) !important; }
  .nav-sub a:hover,
  .legal-top nav .nav-sub a:hover,
  .nav-sub a[aria-current="page"] {
    background: var(--mp-chip);
    color: var(--mp-deep) !important;
  }
  .nav-label { color: var(--mp-muted); }
  .nav-dd-mega { width: 100%; }
  .nav-mega {
    position: static;
    width: auto;
    max-width: none;
    padding: 4px 6px 8px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    background: var(--mp-soft);
  }
  .nav-mega-cols { grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .nav-mega-all {
    color: var(--mp-deep) !important;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-bottom-color: var(--mp-line);
  }
  .nav-mega .nav-col-h {
    color: var(--mp-muted);
    margin-top: 6px;
  }
  .nav-mega .nav-col a { color: var(--mp-ink) !important; }
  .nav-mega .nav-col a:hover,
  .nav-mega .nav-col a[aria-current="page"] {
    background: var(--mp-chip);
    color: var(--mp-deep) !important;
  }
  .foot-links { gap: 8px 12px; }
  .cards.cards-3 { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
  .pager a.next { text-align: left; }
}
@media print {
  .app-bar, .legal-top nav, .legal-foot, .actions, .btn, .skip, .play-badge, .pager, .crumbs { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  .doc { padding: 0; max-width: none; background: #fff; }
  .hero { background: none; color: #000; margin: 0; padding: 0; }
}
