:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #16181d;
  --muted: #5d6472;
  --line: #e3e7ef;
  --accent: #2f6bf2;
  --accent-soft: #e8efff;
  --ok: #16834a;
  --ok-soft: #e6f6ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #181b21;
    --text: #eef1f6;
    --muted: #a2a9b6;
    --line: #2a2f39;
    --accent: #6f9bff;
    --accent-soft: #1d2843;
    --ok: #4cc983;
    --ok-soft: #15291e;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header.hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

header.hero img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(31, 90, 230, 0.25);
  flex: none;
}

header.hero .app { color: var(--muted); font-size: 14px; margin: 0; }
header.hero h1 { font-size: 26px; line-height: 1.3; margin: 2px 0 0; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 24px;
}

.lang a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.summary {
  background: var(--ok-soft);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.summary strong { color: var(--ok); }
.summary ul { margin: 8px 0 0; padding-left: 20px; }

section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

section h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 10px;
}

section h3 { font-size: 16px; margin: 16px 0 6px; }
section p { margin: 8px 0; }
section ul { margin: 8px 0; padding-left: 20px; }
section li { margin: 4px 0; }

.table-wrap { overflow-x: auto; margin: 8px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

th { color: var(--muted); font-weight: 600; white-space: nowrap; }

a { color: var(--accent); }

footer {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin-top: 32px;
}

@media (max-width: 480px) {
  .wrap { padding-top: 24px; }
  header.hero h1 { font-size: 22px; }
  section { padding: 16px; }
  th, td { padding: 8px 6px; font-size: 14px; }
}

/* 페이지 탭 (고객지원 / 개인정보 처리방침 / 언어) */
.tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 20px 0 24px;
  border-bottom: 1px solid var(--line);
}

.tabs a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
  padding: 10px 14px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.tabs a:hover { color: var(--text); }

.tabs a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tabs .lang-link {
  margin-left: auto;
  align-self: center;
  margin-bottom: 6px;
  padding: 4px 12px;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 480px) {
  .tabs { gap: 0; }
  .tabs a { padding: 10px 10px; font-size: 15px; }
  .tabs .lang-link { padding: 4px 10px; font-size: 13px; }
}

/* 고객지원 */
.contact .mail {
  font-size: 20px;
  font-weight: 700;
  margin: 12px 0;
}

.contact .mail a { text-decoration: none; }

.warn {
  background: color-mix(in srgb, #e5484d 10%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
}

.faq-title { font-size: 20px; margin: 28px 0 12px; }

.note { color: var(--muted); font-size: 14px; margin: -4px 0 12px; }

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  margin-bottom: 10px;
}

details[open] { padding-bottom: 12px; }

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 28px 16px 0;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}

details[open] summary::after { content: "−"; }

details p, details ul { margin: 4px 0 8px; }
