:root {
  color-scheme: dark;
  --surface: #1E2349;
  --ink: #F4EFE6;
  --muted: #C9C3D6;
  --glow: #F2C46A;
  --line: rgba(244, 239, 230, 0.28);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--surface); color: var(--ink); }
body {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px calc(40px + env(safe-area-inset-bottom));
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; text-align: center; }
img { display: block; image-rendering: pixelated; }
.wordmark { margin-top: 24px; }
h1 { margin: 28px 0 0; font-size: 22px; line-height: 32px; font-weight: 700; word-break: keep-all; }
p { margin: 10px 0 0; font-size: 16px; line-height: 26px; color: var(--muted); word-break: keep-all; }
.stores { width: 100%; margin-top: 32px; display: grid; gap: 10px; }
.store {
  display: block;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  text-decoration: none;
  color: var(--surface);
  background: var(--glow);
}
.store.secondary { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.store:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.legal { max-width: 680px; align-items: stretch; text-align: left; }
.legal h1 { margin: 0; }
.legal h2 { margin: 36px 0 0; font-size: 18px; line-height: 28px; font-weight: 700; word-break: keep-all; }
.legal p, .legal li, .legal td, .legal th { font-size: 15px; line-height: 25px; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.legal ul, .legal ol { margin: 10px 0 0; padding-left: 20px; }
.legal table { width: 100%; margin-top: 12px; border-collapse: collapse; }
.legal th, .legal td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { color: var(--ink); font-weight: 700; }
.legal th, .legal td { overflow-wrap: break-word; }
.legal a, .footer a { color: var(--glow); }
.legal .home { font-size: 14px; margin-bottom: 20px; }
.footer { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; font-size: 13px; line-height: 20px; }
.soon { margin-top: 32px; color: var(--glow); }
.contact { margin-top: 12px; font-size: 13px; line-height: 20px; }
