:root {
  --paper: #f6f8fb;
  --paper-grid: #dce7f3;
  --card: #ffffff;
  --ink: #233047;
  --muted: #6b7a93;
  --marker: #ffde45;
  --marker-soft: #fff2a6;
  --mint: #ddf4ea;
  --green: #187355;
  --peach: #ffeee5;
  --violet: #7a5cd6;
  --danger: #b43e38;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(220, 231, 243, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 231, 243, 0.46) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

a:hover {
  color: var(--violet);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 36px, 920px);
  min-height: 60px;
  margin: 0 auto;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  box-shadow: 1px 1px 0 rgba(35, 48, 71, 0.16);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.topnav a {
  padding: 5px 9px;
  border: 1.5px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.topnav a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--marker-soft);
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(35, 48, 71, 0.16);
}

main {
  width: min(100% - 36px, 920px);
  margin: 0 auto;
  padding: 46px 0 76px;
}

.hero {
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--marker-soft);
  box-shadow: 4px 4px 0 rgba(35, 48, 71, 0.15);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(31px, 6vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

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

.lead {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: 17px;
}

.summary {
  margin: 24px 0 28px;
  padding: 20px 22px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--mint);
  box-shadow: 3px 3px 0 rgba(35, 48, 71, 0.14);
}

.summary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.summary ul {
  margin: 0;
}

.toc,
.section-card {
  border: 1.7px solid var(--ink);
  background: var(--card);
  box-shadow: 3px 3px 0 rgba(35, 48, 71, 0.12);
}

.toc {
  margin-bottom: 18px;
  padding: 19px 22px;
  border-radius: 10px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  columns: 2;
  margin: 0;
  padding-left: 22px;
}

.toc li {
  break-inside: avoid;
  margin: 3px 0;
}

.section-card {
  margin-top: 18px;
  padding: 25px 26px;
  border-radius: 10px;
  scroll-margin-top: 78px;
}

h2 {
  margin: 0 0 13px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

p {
  margin: 9px 0;
}

ul,
ol {
  padding-left: 22px;
}

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

.table-wrap {
  margin: 14px 0;
  overflow-x: auto;
  border: 1px solid var(--paper-grid);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

th,
td {
  padding: 12px 13px;
  border: 1px solid var(--paper-grid);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.notice {
  margin: 14px 0;
  padding: 14px 16px;
  border-left: 5px solid var(--marker);
  background: #fffbea;
}

.warning {
  margin: 14px 0;
  padding: 14px 16px;
  border-left: 5px solid #ff9d6c;
  background: var(--peach);
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.contact div {
  padding: 12px 14px;
  border: 1px solid var(--paper-grid);
  background: var(--paper);
}

.contact dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.contact dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.request-form {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.request-form label {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 900;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1.7px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.request-form textarea {
  resize: vertical;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  outline: 3px solid var(--marker-soft);
  outline-offset: 1px;
}

.primary-button {
  justify-self: start;
  margin-top: 10px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--marker);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(35, 48, 71, 0.16);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.primary-button:hover {
  transform: translateY(-1px);
}

.confirmation-main {
  min-height: calc(100vh - 151px);
  display: grid;
  align-items: center;
}

.confirmation-card {
  text-align: center;
}

.confirmation-card .lead {
  margin-right: auto;
  margin-left: auto;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  box-shadow: 3px 3px 0 rgba(35, 48, 71, 0.16);
  font-size: 34px;
  font-weight: 900;
}

.sources {
  font-size: 13px;
  color: var(--muted);
}

footer {
  padding: 24px 18px 34px;
  border-top: 2px solid var(--ink);
  background: #fff;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

@media (max-width: 680px) {
  .topbar-inner {
    align-items: flex-start;
    padding: 11px 0;
  }

  .brand {
    padding-top: 4px;
    font-size: 16px;
  }

  .topnav {
    gap: 3px;
  }

  .topnav a {
    padding: 4px 6px;
    font-size: 11px;
  }

  main {
    padding-top: 24px;
  }

  .hero,
  .section-card {
    padding: 21px 19px;
  }

  .toc ol {
    columns: 1;
  }

  .contact {
    grid-template-columns: 1fr;
  }

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

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .toc,
  footer {
    display: none;
  }

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

  .hero,
  .summary,
  .section-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
