:root {
  --bg: #f7f3ea;
  --paper: #fffdf8;
  --ink: #1d2733;
  --muted: #637083;
  --line: #e5dccb;
  --brand: #24476f;
  --brand-dark: #18304d;
  --gold: #c79a3b;
  --gold-soft: #f1dfb7;
  --green: #4d7258;
  --shadow: 0 24px 70px rgba(31, 45, 61, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(199, 154, 59, 0.18), transparent 34rem),
    linear-gradient(180deg, #f9f4e8 0%, #f7f3ea 52%, #f3efe6 100%);
  line-height: 1.75;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--brand);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 70px;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255,255,255,0.72), rgba(255,255,255,0)),
    repeating-linear-gradient(90deg, rgba(36,71,111,0.035) 0 1px, transparent 1px 84px);
  pointer-events: none;
}

.topbar,
.hero,
.page,
.site-footer {
  max-width: var(--max);
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(229, 220, 203, 0.82);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(31, 45, 61, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--green));
  box-shadow: 0 10px 24px rgba(36, 71, 111, 0.24);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: var(--brand);
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #455467;
  font-size: 0.92rem;
}

.nav-links a.is-active,
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand-dark);
  background: var(--gold-soft);
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 36px;
  align-items: end;
  padding-top: 74px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  color: var(--brand-dark);
  font-size: clamp(2.15rem, 5vw, 4.55rem);
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.hero-desc {
  max-width: 760px;
  margin: 24px 0 0;
  color: #4e5f73;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 16px 30px rgba(36, 71, 111, 0.24);
}

.button.ghost {
  color: var(--brand-dark);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
}

.hero-card {
  border: 1px solid rgba(229, 220, 203, 0.9);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card dl {
  margin: 0;
}

.hero-card div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.hero-card div:last-child {
  border-bottom: 0;
}

.hero-card dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card dd {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  padding: 0 20px 64px;
}

.toc {
  position: sticky;
  top: 18px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 14px 34px rgba(31, 45, 61, 0.06);
}

.toc p {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-weight: 900;
}

.toc a {
  display: block;
  padding: 9px 10px;
  border-radius: 12px;
  color: #5a6879;
  font-size: 0.92rem;
  line-height: 1.35;
}

.toc a.is-active,
.toc a:hover,
.toc a:focus-visible {
  color: var(--brand-dark);
  background: #f3e5c4;
}

.policy {
  min-width: 0;
}

.section-card {
  margin-bottom: 22px;
  border: 1px solid rgba(229, 220, 203, 0.92);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 16px 44px rgba(31, 45, 61, 0.07);
}

.section-card.highlight {
  background:
    linear-gradient(135deg, rgba(36, 71, 111, 0.08), rgba(199, 154, 59, 0.08)),
    rgba(255, 253, 248, 0.96);
}

.section-card h2 {
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-size: clamp(1.42rem, 3vw, 2.05rem);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.section-card h3 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 1.04rem;
}

.section-card p {
  margin: 0 0 14px;
  color: #3d4856;
}

.section-card p:last-child,
.section-card ul:last-child {
  margin-bottom: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.summary-grid > div {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.66);
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #fff;
  background: var(--brand);
}

.data-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.data-table [role="row"] {
  display: grid;
  grid-template-columns: 0.8fr 1.55fr 1.3fr;
  border-bottom: 1px solid var(--line);
}

.data-table [role="row"]:last-child {
  border-bottom: 0;
}

.data-table span {
  padding: 16px;
  border-right: 1px solid var(--line);
  color: #465364;
}

.data-table span:last-child {
  border-right: 0;
}

.data-table .table-head {
  background: var(--brand);
}

.data-table .table-head span {
  color: #fff;
  font-weight: 800;
}

.notice {
  margin-top: 16px !important;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: #fbf1da;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #3d4856;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(199, 154, 59, 0.16);
}

.service-links,
.agency-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.service-links a,
.agency-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fffaf0;
  font-weight: 750;
}

.permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.permission-list article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fffaf0;
}

.permission-list h3 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
}

.contact-card {
  background:
    linear-gradient(135deg, rgba(36, 71, 111, 0.08), rgba(77, 114, 88, 0.08)),
    rgba(255, 253, 248, 0.98);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 18px 0 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fffaf0;
}

.contact-box span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-box strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.04rem;
}

.copy-button,
.to-top {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  color: white;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.copy-button.is-copied {
  background: var(--green);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 20px 42px;
  color: #607084;
}

.site-footer p {
  margin: 0;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 14px 28px rgba(36, 71, 111, 0.24);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    border-radius: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

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

  .toc {
    position: relative;
    top: auto;
  }

  .summary-grid,
  .permission-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  body {
    word-break: normal;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-text small {
    display: none;
  }

  .hero-card div,
  .data-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .hero-card dt,
  .data-table .table-head {
    display: none;
  }

  .data-table span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .data-table span:last-child {
    border-bottom: 0;
  }

  .data-table [role="row"] {
    padding: 0;
  }

  .data-table [role="row"] span:first-child {
    color: var(--brand-dark);
    font-weight: 900;
    background: #fff5dc;
  }

  .page {
    padding-inline: 14px;
  }

  .section-card {
    border-radius: 22px;
  }
}

@media print {
  .topbar,
  .toc,
  .hero-actions,
  .to-top,
  .copy-button {
    display: none !important;
  }

  body {
    background: white;
  }

  .site-header,
  .page,
  .site-footer {
    padding: 0;
  }

  .hero,
  .page {
    display: block;
  }

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

