/* ===========================================================================
   정적 문서 스타일 (소유: idol-publisher)
   about.html · legal/terms.html · legal/privacy.html · legal/refund.html 이 함께 쓴다.
   앱 번들과 별개로 동작해야 하므로 필요한 토큰만 여기에 다시 정의한다
   (값은 `app/src/styles/tokens.css` 와 **동일**하다 — 색을 바꿀 때는 두 곳을 함께 고친다).
   =========================================================================== */

:root {
  color-scheme: light;

  --brand-500: #ee3b82;
  --brand-600: #d42169;
  --brand-700: #af1755;
  --brand-ink: #c41c63;
  --brand-50: #fff0f6;
  --sec-500: #7c5ce8;
  --sec-ink: #5b3bc4;

  --bg: #fff8fb;
  --surface: #ffffff;
  --surface-2: #fbf1f6;
  --surface-3: #f5e8f0;
  --border: #ecdce6;
  --border-strong: #dcc5d5;
  --text-strong: #1e1524;
  --text: #4a4055;
  --text-muted: #736a80;
  --text-on-fill: #ffffff;

  --success-tint: #e3f4eb;
  --success-ink: #0d7a44;
  --warning-tint: #f7eee0;
  --warning-ink: #8f5800;

  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-display: 'Gothic A1', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-full: 999px;

  --sh-sm: 0 1px 2px rgba(60, 20, 45, 0.06);
  --sh-md: 0 2px 8px rgba(60, 20, 45, 0.08);

  --focus-ring: 0 0 0 3px rgba(124, 92, 232, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text-strong);
  letter-spacing: -0.015em;
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.25;
}

h2 {
  font-size: 21px;
  line-height: 1.35;
  margin-top: 40px;
  margin-bottom: 8px;
}

h3 {
  font-size: 17px;
  line-height: 1.4;
  margin-top: 24px;
  margin-bottom: 4px;
  font-weight: 700;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

li {
  margin-bottom: 4px;
}

a {
  color: var(--brand-ink);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-700);
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

code,
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 15px;
}

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

th {
  background: var(--surface-2);
  color: var(--text-strong);
  font-weight: 700;
}

/* ── 머리말 ─────────────────────────────────────────────────────────── */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.site-head img {
  display: block;
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

/* ── 버튼 ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-full);
  background: var(--brand-600);
  color: var(--text-on-fill);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  box-shadow: var(--sh-md);
}

.btn:hover {
  background: var(--brand-700);
  color: var(--text-on-fill);
}

.btn-secondary {
  background: var(--surface);
  color: var(--brand-ink);
  box-shadow: inset 0 0 0 1.5px var(--brand-500);
  min-height: 44px;
  font-size: 16px;
}

.btn-secondary:hover {
  background: var(--brand-50);
  color: var(--brand-ink);
}

/* ── 카드·배지 ─────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 16px;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--success-tint);
  color: var(--success-ink);
  font-size: 14px;
  font-weight: 700;
}

.badge-warn {
  background: var(--warning-tint);
  color: var(--warning-ink);
}

.note {
  background: var(--surface-2);
  border-left: 3px solid var(--brand-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 15px;
}

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

/* 스크린샷 자리 — 실제 이미지가 오기 전에도 레이아웃이 흔들리지 않게 비율을 잡아 둔다 */
.shots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 16px 0;
  scroll-snap-type: x mandatory;
}

.shot {
  flex: none;
  width: 200px;
  aspect-ratio: 9 / 19.5;
  border-radius: var(--r-lg);
  background: var(--surface-3);
  box-shadow: var(--sh-sm);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 12px;
  scroll-snap-align: start;
}

/* ── FAQ 아코디언 ──────────────────────────────────────────────────── */
details {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-strong);
  list-style: none;
  min-height: 28px;
  display: flex;
  align-items: center;
}

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

summary::after {
  content: '+';
  margin-left: auto;
  color: var(--brand-500);
  font-size: 20px;
  line-height: 1;
}

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

details > p,
details > ul {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--text);
}

summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

/* ── 푸터 ──────────────────────────────────────────────────────────── */
.site-foot {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.site-foot p {
  margin: 0 0 6px;
}

.site-foot a {
  color: var(--text-muted);
  text-decoration: underline;
}

.legal-box {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
