:root {
  color-scheme: light dark;
  --accent: #ff6b6b;
  --accent-soft: #fff0f0;
  --background: #f7f7fa;
  --surface: #ffffff;
  --text: #202124;
  --muted: #62646b;
  --border: #e6e6eb;
  --shadow: 0 12px 32px rgb(32 33 36 / 8%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: #d94343;
}

a:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

main {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero,
.policy-section,
.contact-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  padding: 48px 24px;
  text-align: center;
}

.shield {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 30px;
  font-weight: 900;
}

.eyebrow,
.date {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}

h1 {
  margin: 4px 0 12px;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.summary-card {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.summary-card strong {
  font-size: 0.95rem;
  line-height: 1.45;
}

.introduction {
  margin: 18px 0;
  padding: 24px;
  border-radius: 20px;
  background: var(--accent-soft);
}

.introduction p {
  margin: 0;
}

.introduction p + p {
  margin-top: 10px;
}

.policy-section {
  margin-top: 18px;
  padding: 32px;
}

h2,
h3 {
  line-height: 1.45;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 22px;
  font-size: 1.35rem;
}

h3 {
  margin: 26px 0 8px;
  font-size: 1.05rem;
}

.policy-section p {
  margin: 12px 0;
  color: var(--muted);
}

ul {
  margin: 12px 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 7px;
}

.definition-list {
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.definition-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2fr);
  gap: 18px;
  padding: 16px 18px;
}

.definition-row + .definition-row {
  border-top: 1px solid var(--border);
}

dt {
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--muted);
}

.link-list {
  display: grid;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
}

.contact-card {
  display: flex;
  margin-top: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
}

.contact-card div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-card span {
  color: var(--muted);
}

.contact-card a {
  flex: none;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

footer {
  padding-top: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
}

footer p {
  margin: 2px 0;
}

@media (max-width: 760px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 880px);
    padding-top: 20px;
  }

  .hero,
  .policy-section {
    border-radius: 20px;
  }

  .hero {
    padding: 36px 18px;
  }

  .summary-card {
    min-height: 98px;
    padding: 15px;
  }

  .policy-section {
    padding: 24px 20px;
  }

  .definition-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-card {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .contact-card a {
    text-align: center;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff8080;
    --accent-soft: #361f24;
    --background: #111214;
    --surface: #1c1d20;
    --text: #f4f4f5;
    --muted: #b7b8bd;
    --border: #34363b;
    --shadow: 0 12px 32px rgb(0 0 0 / 28%);
  }

  a {
    color: #ff9292;
  }
}

@media print {
  :root {
    --background: #ffffff;
    --surface: #ffffff;
    --text: #000000;
    --muted: #333333;
    --border: #cccccc;
    --shadow: none;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .summary-card,
  .hero,
  .policy-section,
  .contact-card {
    break-inside: avoid;
  }
}
