:root {
  color-scheme: light;
  --ink: #292720;
  --muted: #6f6b61;
  --line: #e9e4d8;
  --paper: #fffdf8;
  --surface: #ffffff;
  --yellow: #f4b51f;
  --yellow-dark: #9d6500;
  --yellow-soft: #fff4cc;
  --green: #2f7660;
  --green-soft: #eaf6f0;
  --pink: #c95b78;
  --pink-soft: #fff0f4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  margin: 0;
  word-break: keep-all;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(244, 181, 31, 0.5);
  outline-offset: 3px;
}

.site-header {
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1080px;
  min-height: 66px;
  padding: 0 24px;
}

.brand {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.site-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--yellow-soft);
  color: var(--yellow-dark);
}

.page {
  margin: 0 auto;
  max-width: 1080px;
  padding: 58px 24px 84px;
}

.page-intro {
  max-width: 780px;
}

.eyebrow {
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.35;
  margin-top: 0;
}

h1 {
  font-size: 38px;
  margin-bottom: 18px;
}

h2 {
  font-size: 24px;
  margin-bottom: 18px;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.intro-copy {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.effective-date {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 0;
}

.brand-visual {
  aspect-ratio: 16 / 5;
  display: block;
  margin: 34px 0 38px;
  object-fit: cover;
  width: 100%;
}

.page-layout {
  align-items: start;
  display: grid;
  gap: 54px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.toc {
  border-left: 3px solid var(--yellow);
  display: grid;
  gap: 3px;
  padding-left: 16px;
  position: sticky;
  top: 94px;
}

.toc-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 7px;
}

.toc a {
  color: var(--muted);
  font-size: 14px;
  padding: 3px 0;
  text-decoration: none;
}

.toc a:hover {
  color: var(--green);
}

.policy-content > section {
  border-top: 1px solid var(--line);
  padding: 42px 0;
  scroll-margin-top: 84px;
}

.policy-content > section:first-child {
  border-top: 0;
  padding-top: 0;
}

.policy-content p {
  margin: 0 0 14px;
}

.detail-list,
.plain-list,
.steps {
  margin: 18px 0 0;
}

.detail-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.detail-list > li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: 18px 20px;
}

.detail-list > li:nth-child(3n + 2) {
  border-left-color: var(--green);
}

.detail-list > li:nth-child(3n) {
  border-left-color: var(--pink);
}

.detail-list strong {
  display: block;
  margin-bottom: 4px;
}

.plain-list {
  padding-left: 22px;
}

.plain-list li + li {
  margin-top: 8px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  overflow-x: auto;
}

table {
  background: var(--surface);
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--yellow-soft);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.notice {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  margin: 18px 0;
  padding: 18px 20px;
}

.notice.pink {
  background: var(--pink-soft);
  border-left-color: var(--pink);
}

.notice p:last-child {
  margin-bottom: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button-link {
  align-items: center;
  background: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  text-decoration: none;
}

.button-link.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--green);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  min-height: 42px;
  padding-left: 54px;
  position: relative;
}

.steps li::before {
  align-items: center;
  background: var(--yellow-soft);
  border-radius: 50%;
  color: var(--yellow-dark);
  content: counter(step);
  display: flex;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 36px;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 26px 24px 40px;
  text-align: center;
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
    word-break: normal;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .site-nav {
    overflow-x: auto;
    width: 100%;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .page {
    padding: 38px 18px 64px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 21px;
  }

  .brand-visual {
    aspect-ratio: 16 / 7;
    margin: 26px 0 32px;
  }

  .page-layout {
    display: block;
  }

  .toc {
    margin-bottom: 40px;
    position: static;
  }

  .policy-content > section {
    padding: 34px 0;
  }

  .button-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
