:root {
  --bg: #050b15;
  --panel: #0c1524;
  --line: rgba(182, 204, 230, 0.28);
  --text: #edf5ff;
  --muted: #afc3d9;
  --primary: #5cc8d5;
  --primary-dark: #1f7f99;
  --radius: 20px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "Noto Sans KR", "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, #10223d 0%, var(--bg) 58%);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }

.page {
  width: min(100% - 28px, var(--max));
  margin: 16px auto 42px;
  display: grid;
  gap: 18px;
}

.section-card {
  background: linear-gradient(160deg, rgba(17, 28, 44, 0.86), rgba(10, 17, 30, 0.78));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 30px);
  backdrop-filter: blur(8px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.brand span { display: block; color: var(--muted); font-size: 0.88rem; }

.eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(130, 184, 211, 0.56);
  border-radius: 999px;
  color: #c9e7ff;
  font-size: 0.86rem;
}

h1 { margin: 14px 0 10px; line-height: 1.18; font-size: clamp(2rem, 4.8vw, 3.6rem); }
h2 { margin: 0 0 12px; font-size: clamp(1.25rem, 2.5vw, 2rem); }
h3 { margin: 12px 0 6px; }
.lead, .muted, li, p { color: var(--muted); }
.lead { font-size: 1.08rem; max-width: 78ch; }

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 750;
  max-width: 100%;
  text-align: center;
}
.btn.primary { background: linear-gradient(145deg, #7ed3e0, var(--primary-dark)); color: #06101c; }
.btn.secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.06); }
.btn.ai { border-color: rgba(104, 189, 197, 0.7); background: rgba(70, 164, 173, 0.16); color: #d8f8ff; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 31, 49, 0.72);
  padding: 16px;
}
.legal { border-left: 4px solid var(--primary); background: rgba(92, 200, 213, 0.08); }

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 31, 49, 0.68);
  padding: 12px 14px;
  margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 800; color: #e7f6ff; }

.related {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.related a {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #d8f8ff;
}

.footer { text-align: center; }
.small { font-size: 0.92rem; }

@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cta-row .btn { width: 100%; white-space: normal; }
  .topbar { align-items: flex-start; }
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.language-select {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.language-select > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.language-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border: 1px solid rgba(202, 222, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #eaf3ff;
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 10px 28px rgba(2, 8, 23, 0.18);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lang-btn img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 72% 24%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #eaf7ff;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(73, 169, 255, 0.18), 0 14px 30px rgba(0, 0, 0, 0.24);
  outline: none;
  transform: translateY(-2px);
}

.lang-btn.active,
.lang-btn[aria-pressed="true"] {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(125, 211, 252, 1);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.72), 0 0 0 3px rgba(73, 169, 255, 0.24);
}

@media (max-width: 760px) {
  .topbar-actions,
  .language-select,
  .language-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-actions .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .language-buttons { gap: 8px; }
  .lang-btn {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  }
  .lang-btn img {
    width: 42px;
    height: 42px;
  }
}

.language-buttons{gap:18px}.lang-btn{width:96px;height:96px}.lang-btn img{width:78px;height:78px}
@media (max-width:768px){.language-buttons{gap:10px;justify-content:center}.lang-btn{width:68px;height:68px}.lang-btn img{width:56px;height:56px}}

/* unified language character ui */
.language-character-group{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.lang-character-btn{width:88px;height:88px;padding:3px;border-radius:999px;border:1px solid rgba(135,190,255,.45);background:rgba(8,24,48,.72);box-shadow:0 10px 28px rgba(0,0,0,.32);display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease}
.lang-character-btn img,.lang-character-img{width:82px;height:82px;border-radius:50%;object-fit:contain!important;background:transparent!important;display:block;box-shadow:none!important}
.lang-character-btn:hover{transform:translateY(-3px);border-color:rgba(90,220,255,.95);box-shadow:0 0 30px rgba(70,205,255,.4)}
.lang-character-btn.active,.lang-character-btn[aria-pressed="true"],.lang-character-btn.is-active{border-color:rgba(115,255,230,.98);background:rgba(12,42,72,.9);box-shadow:0 0 0 3px rgba(115,255,230,.18),0 0 34px rgba(90,220,255,.58)}
@media (max-width:768px){.language-character-group{justify-content:center;gap:10px}.lang-character-btn{width:64px;height:64px;padding:2px}.lang-character-btn img,.lang-character-img{width:60px;height:60px}}
