:root {
  color-scheme: light;
  font-family: "Aptos", "Segoe UI Variable", "Noto Sans", "Noto Sans KR", "Yu Gothic UI", sans-serif;
  --ink: #171a18;
  --ink-soft: #343a36;
  --muted: #626962;
  --line: #d3d9d4;
  --line-strong: #b7c0b9;
  --paper: #f6f7f4;
  --canvas: #eef1ee;
  --wash: #e8ece8;
  --brand: #238b5b;
  --brand-dark: #176b45;
  --brand-soft: #e9f4ee;
  --warning: #d99a3d;
  --radius: 4px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 244, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 780;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 34px;
  height: 34px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.header-actions a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.header-actions a:hover {
  color: var(--brand-dark);
}

select {
  height: 38px;
  max-width: 180px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(35, 139, 91, 0.18);
}

.document-nav {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  gap: 30px;
  min-height: 54px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(232, 236, 232, 0.97);
  backdrop-filter: blur(8px);
}

.document-nav a {
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.document-nav a:hover {
  color: var(--ink);
}

.document-nav a[aria-current="page"] {
  border-bottom-color: var(--brand);
  color: var(--ink);
}

.legal-content {
  width: min(840px, calc(100% - 48px));
  min-height: 70vh;
  margin: 0 auto;
  padding: 76px 0 100px;
}

.document-heading {
  padding-bottom: 50px;
}

.eyebrow,
.section-index {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
}

h1 {
  max-width: 780px;
  margin: 11px 0 20px;
  font-size: 48px;
  font-weight: 780;
  line-height: 1.12;
  text-wrap: balance;
}

.summary {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.68;
  text-wrap: pretty;
}

.effective-date {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.draft-notice {
  margin: 0 0 46px;
  padding: 17px 20px;
  border-left: 4px solid var(--warning);
  background: var(--brand-soft);
  color: #6f501f;
}

.draft-notice p {
  margin: 5px 0 0;
}

.legal-section {
  position: relative;
  padding: 42px 0 44px 64px;
  border-top: 1px solid var(--line);
}

.section-index {
  position: absolute;
  top: 48px;
  left: 0;
  font-variant-numeric: tabular-nums;
}

h2 {
  margin: 0 0 17px;
  font-size: 26px;
  font-weight: 740;
  line-height: 1.3;
  text-wrap: balance;
}

.legal-section p,
.legal-section li {
  color: #47433f;
  font-size: 15px;
  line-height: 1.78;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-section li::marker {
  color: var(--brand);
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 27px max(24px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  background: var(--wash);
  color: var(--muted);
  font-size: 12px;
}

.legal-footer > span:first-child {
  color: var(--ink);
  font-weight: 750;
}

.legal-footer a {
  color: inherit;
  text-underline-offset: 3px;
}

.loading {
  display: flex;
  gap: 8px;
  padding: 30px 0;
}

.loading span {
  width: 8px;
  height: 8px;
  background: var(--brand);
  animation: pulse 1s infinite alternate;
}

.loading span:nth-child(2) {
  animation-delay: 150ms;
}

.loading span:nth-child(3) {
  animation-delay: 300ms;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes pulse {
  to { opacity: 0.25; }
}

@media (max-width: 640px) {
  .legal-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .brand {
    font-size: 16px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions a {
    display: none;
  }

  select {
    max-width: 148px;
    height: 36px;
  }

  .document-nav {
    top: 64px;
    gap: 22px;
    min-height: 50px;
    padding: 0 16px;
    overflow-x: auto;
  }

  .legal-content {
    width: calc(100% - 32px);
    padding: 52px 0 74px;
  }

  .document-heading {
    padding-bottom: 42px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.17;
  }

  .summary {
    font-size: 16px;
  }

  .legal-section {
    padding: 36px 0 38px;
  }

  .section-index {
    position: static;
    display: block;
    margin-bottom: 8px;
  }

  h2 {
    font-size: 23px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 14.5px;
  }

  .legal-footer {
    display: grid;
    padding: 22px 16px 26px;
  }
}

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

  .loading span {
    animation: none;
  }
}

/* Enlarged editorial treatment shared with the main guide. */
.legal-header {
  min-height: 88px;
}

.brand {
  gap: 13px;
  font-size: 22px;
}

.brand img {
  width: 48px;
  height: 48px;
}

.header-actions {
  gap: 24px;
  font-size: 16px;
}

select {
  height: 46px;
  max-width: 210px;
  padding: 0 36px 0 14px;
  border-radius: 14px;
  font-size: 15px;
}

.document-nav {
  top: 88px;
  gap: 38px;
  min-height: 62px;
}

.document-nav a {
  font-size: 16px;
}

.legal-content {
  width: min(920px, calc(100% - 56px));
  padding: 92px 0 124px;
}

.document-heading {
  padding-bottom: 62px;
}

.eyebrow,
.section-index {
  font-size: 14px;
}

h1 {
  margin: 14px 0 24px;
  font-size: 56px;
}

.summary {
  max-width: 760px;
  font-size: 21px;
  line-height: 1.7;
}

.effective-date {
  margin-top: 28px;
  font-size: 16px;
}

.draft-notice {
  padding: 22px 26px;
  border-left-width: 6px;
  border-radius: 0 18px 18px 0;
  font-size: 17px;
}

.legal-section {
  padding: 52px 0 56px 76px;
}

.section-index {
  top: 60px;
}

h2 {
  margin-bottom: 20px;
  font-size: 30px;
}

.legal-section p,
.legal-section li {
  font-size: 17px;
  line-height: 1.82;
}

.legal-footer {
  display: grid;
  grid-template-columns: 220px minmax(360px, 1fr) 280px;
  align-items: start;
  gap: 44px;
  padding: 52px max(28px, calc((100vw - 1180px) / 2));
  border-top: 0;
  background: var(--ink);
  color: #c5cdc7;
  font-size: 14px;
}

.legal-footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.legal-footer-brand img {
  width: 46px;
  height: 46px;
}

.legal-footer-brand strong {
  color: #fff;
  font-size: 21px;
}

.legal-footer address {
  display: grid;
  gap: 6px;
  margin: 0;
  font-style: normal;
  line-height: 1.55;
}

.legal-footer address strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 17px;
}

.legal-footer > div:last-child {
  display: grid;
  gap: 14px;
}

.legal-footer a {
  color: #79c89f;
}

@media (max-width: 820px) {
  .legal-header {
    min-height: 78px;
    padding: 0 18px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand {
    font-size: 20px;
  }

  .header-actions a {
    display: none;
  }

  select {
    max-width: 170px;
    height: 44px;
  }

  .document-nav {
    top: 78px;
    gap: 26px;
    min-height: 58px;
    padding-inline: 18px;
  }

  .legal-content {
    width: calc(100% - 36px);
    padding: 64px 0 86px;
  }

  h1 {
    font-size: 42px;
  }

  .summary {
    font-size: 19px;
  }

  .legal-section {
    padding: 44px 0 48px;
  }

  .section-index {
    position: static;
    display: block;
    margin-bottom: 10px;
  }

  .legal-footer {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 42px 20px;
  }
}

@media (max-width: 520px) {
  .document-nav a {
    font-size: 15px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 17px;
  }
}
