:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #98989d;
    --line: #38383a;
    --link: #2997ff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Helvetica Neue", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.brand {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover { text-decoration: none; }

.lang {
  font-size: 14px;
  color: var(--muted);
}

.lang a { margin-left: 12px; }
.lang .current { margin-left: 12px; color: var(--text); font-weight: 600; }

main { padding: 56px 0 72px; }

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
}

section { margin-top: 56px; }

h2 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

h3 {
  margin: 28px 0 8px;
  font-size: 19px;
}

p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 22px 24px;
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  vertical-align: middle;
}

.meta {
  color: var(--muted);
  font-size: 15px;
}

/* 개인정보 처리방침 */
.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.doc h2 { margin-top: 44px; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 15px;
}

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

.doc th { font-weight: 600; white-space: nowrap; }

/* 좁은 화면에서는 표를 세로로 쌓는다. */
@media (max-width: 560px) {
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .doc th, .doc td { padding: 0 0 4px; border-bottom: 0; white-space: normal; }
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 20px 0 40px;
  font-size: 13px;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
}

footer.site nav a { margin-right: 16px; }
