:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #302f30;
  --muted: #665f63;
  --line: #e2ded9;
  --accent: #614285;
  --focus: #7752a1;
  --pet-stage: #eef3e9;
  --pet-line: #d8e1d3;
  font: 1rem/1.6 "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

p, h1, h2 { margin: 0; }

:lang(ko) p {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.shell {
  width: min(60rem, calc(100% - 4rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand img, .pet-stage img { image-rendering: pixelated; }

.language {
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}

.language:hover { background: #f0ebf4; }

main { margin-top: clamp(2rem, 6vw, 4.5rem); }

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border-radius: 7px;
  padding: .6rem .95rem;
  background: var(--accent);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}

.store-link:hover { background: #52356f; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .45rem 1.25rem;
  padding: 1.35rem 0 1.75rem;
  color: var(--muted);
  font-size: .8125rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a { text-underline-offset: .18em; }

.policy {
  max-width: 47rem;
  margin-bottom: 3rem;
}

.policy section {
  margin-block: 1rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefa;
}

.policy h1 { font-size: 2rem; }
.policy h2 { margin-top: 1.2rem; font-size: 1rem; }
.policy p { margin-top: .65rem; }

@media (max-width: 42rem) {
  .shell { width: calc(100% - 2rem); }
  .site-header { padding-block: .85rem; }
  main { margin-top: 1.25rem; }
}
