:root {
  color-scheme: light dark;
  --background: #f4f4f1;
  --surface: rgba(255, 255, 255, 0.88);
  --text: #151515;
  --muted: #656560;
  --border: rgba(21, 21, 21, 0.1);
  --accent: #111111;
  --accent-text: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.65;
  background: var(--background);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 40px;
}

.hero,
.page-header {
  padding: 12px 4px 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.15rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero > p {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.card {
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(20, 20, 20, 0.04);
}

.card h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.card h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.item + .item {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.primary-link {
  display: inline-flex;
  margin-top: 18px;
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 20px 4px 8px;
}

.footer-nav a,
.back-link {
  font-weight: 650;
  text-underline-offset: 4px;
}

footer {
  padding: 28px 4px 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.policy .page-header h1 {
  margin-top: 24px;
  font-size: clamp(2rem, 6vw, 3.25rem);
}

.effective-date {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 24px, 720px);
    padding-top: 36px;
  }

  .card {
    padding: 20px;
    border-radius: 17px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #10100f;
    --surface: rgba(29, 29, 27, 0.9);
    --text: #f5f5f2;
    --muted: #b5b5ae;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #f5f5f2;
    --accent-text: #151515;
  }

  .card {
    box-shadow: none;
  }
}
