:root {
  color-scheme: light;
  --primary: #5b45f4;
  --primary-soft: #f2efff;
  --text: #111111;
  --text-secondary: #666472;
  --border: #e4e0f3;
  --surface: #ffffff;
  --surface-muted: #faf9ff;
  --warning: #8b5b00;
  --warning-bg: #fff8e8;
  --warning-border: #f0d49b;
  --radius: 16px;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--surface);
  font-size: 16px;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(91, 69, 244, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #ffffff;
  transform: translateY(-150%);
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner,
.content,
.footer-inner {
  width: calc(100% - 40px);
  max-width: 760px;
  margin: 0 auto;
}

.header-inner {
  padding: 22px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
}

.brand-description {
  color: var(--text-secondary);
  font-size: 13px;
}

.site-nav {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.content {
  padding: 48px 0 80px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 750;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: -0.025em;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 850;
}

.lead {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
}

.draft-notice {
  margin: 28px 0 40px;
  padding: 16px 18px;
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  background: var(--warning-bg);
  color: #5f430b;
}

.draft-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--warning);
}

.policy-section {
  margin-top: 44px;
}

.policy-section h2 {
  margin: 0 0 16px;
  font-size: 23px;
}

.policy-section h3 {
  margin: 26px 0 10px;
  font-size: 18px;
}

.policy-section p,
.policy-section ul,
.policy-section ol {
  margin-top: 0;
}

.policy-section li + li {
  margin-top: 7px;
}

.card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

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

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

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

th {
  background: var(--surface-muted);
  font-weight: 750;
}

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

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

.steps li {
  position: relative;
  min-height: 48px;
  padding: 11px 14px 11px 58px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 10px;
  left: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.disabled-action,
.email-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f4f3f7;
  color: #777480;
  font-weight: 700;
}

.disabled-action {
  cursor: not-allowed;
}

.email-action {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
}

.email-action:hover {
  background: #4933e3;
}

.meta-list {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) 1fr;
  gap: 0;
  margin: 18px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.meta-list dt,
.meta-list dd {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.meta-list dt {
  background: var(--surface-muted);
  font-weight: 750;
}

.meta-list dt:last-of-type,
.meta-list dd:last-of-type {
  border-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.footer-inner {
  padding: 28px 0 36px;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
}

.footer-nav a {
  color: var(--text);
  font-weight: 650;
}

@media (max-width: 480px) {
  .header-inner,
  .content,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .content {
    padding-top: 36px;
  }

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

  .site-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .site-nav a {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
  }

  .lead {
    font-size: 16px;
  }

  .policy-section {
    margin-top: 38px;
  }

  .policy-section h2 {
    font-size: 21px;
  }

  .card {
    padding: 17px;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }

  .meta-list dt,
  .meta-list dd {
    border-bottom: 1px solid var(--border);
  }
}

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