:root {
  --bg: #0B0B10;
  --surface: #15151C;
  --line: #2B2B36;
  --ink: #F5F5F8;
  --sub: #A6A6B3;
  --faint: #6E6E7C;
  --hi: #D4F84A; /* 앱 다크 모드 강조색(lime). 강조는 이 한 색만 */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; }
main { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.top {
  max-width: 960px; margin: 0 auto; padding: 20px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark { font-weight: 900; font-size: 24px; letter-spacing: -0.035em; text-decoration: none; line-height: 1; }
.wordmark span { color: var(--hi); }
.top nav { display: flex; gap: 16px; font-size: 14px; color: var(--sub); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* 첫 화면: 활동 사진 모자이크 위 굵은 한 문장(앱 SC01과 같은 구성) */
.hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; }
.mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,.13) 30%, rgba(11,11,16,.9) 62%, var(--bg) 100%);
}
.hero-text { position: relative; z-index: 1; padding: 32px 24px; }
.hero h1 { font-size: clamp(32px, 7vw, 52px); line-height: 1.2; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 12px; }
.hero p { color: rgba(255,255,255,.8); margin: 0 0 20px; max-width: 34em; }
.promises { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.promises li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); }
.soon { font-size: 14px; color: var(--hi) !important; font-weight: 600; margin: 0 !important; }

.steps, .rules { padding: 48px 8px 8px; }
h2 { font-size: 22px; letter-spacing: -0.035em; margin: 0 0 16px; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 4px; align-content: start; }
.steps li::before { content: counter(s); font-weight: 800; color: var(--hi); }
.steps li span { color: var(--sub); font-size: 15px; }
.rules p { color: var(--sub); margin: 0; max-width: 44em; }
@media (min-width: 720px) { .steps ol { grid-template-columns: repeat(3, 1fr); } }

/* 법률 문서 */
.legal { max-width: 760px; margin: 0 auto; padding: 8px 0 32px; }
.legal h1 { font-size: 28px; letter-spacing: -0.035em; line-height: 1.25; margin: 16px 0 8px; }
.legal h2 { font-size: 19px; margin: 36px 0 8px; }
.legal h3 { font-size: 16px; margin: 20px 0 4px; }
.legal p, .legal li { color: var(--sub); font-size: 15px; margin: 4px 0; }
.legal ul { padding-left: 20px; margin: 4px 0; }
.legal li.nested { margin-left: 20px; }
.legal strong { color: var(--hi); font-weight: 700; } /* 개인정보 보호법 시행령 제17조제3항 '중요한 내용' 표시 */
.table { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--sub); }
th { color: var(--ink); background: var(--surface); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
/* 휴대폰 폭: 3열 이상 표는 행마다 카드로(앱과 같은 방식) */
@media (max-width: 640px) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* 화면에서만 숨김(스크린리더는 읽음) */
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 4px 12px; }
  td::before { content: attr(data-label); display: block; color: var(--ink); font-weight: 700; font-size: 13px; }
}

.notfound { padding: 80px 0; text-align: center; }
.foot { max-width: 960px; margin: 48px auto 0; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--sub); font-size: 13px; }
.foot p { margin: 4px 0; }
.foot strong { color: var(--ink); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
