@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root {
  --bg: #f5f7fa;
  --panel: rgba(251, 252, 253, 0.9);
  --panel-strong: #fbfcfd;
  --text: #1f2937;
  --muted: #667085;
  --line: #d7dce3;
  --accent: #2b3a67;
  --chip: #eef2f6;
  --chip-line: #d7dce3;
  --warning-bg: #f3e6d2;
  --warning-line: #d9b576;
  --warning-text: #8a5b22;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans KR', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.legal-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.legal-shell::before,
.legal-shell::after {
  content: '';
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(84px);
  pointer-events: none;
  opacity: 0.55;
}

.legal-shell::before {
  top: -120px;
  left: -120px;
  width: 340px;
  height: 340px;
  background: rgba(43, 58, 103, 0.14);
}

.legal-shell::after {
  top: 120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: rgba(124, 139, 122, 0.12);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(245, 247, 250, 0.9);
  border-bottom: 1px solid rgba(215, 220, 227, 0.9);
}

.legal-header-inner,
.legal-main {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 15px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #f5f7fa;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d7dce3;
  background: rgba(251, 252, 253, 0.92);
  color: var(--accent);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 24px -20px rgba(31, 41, 55, 0.38);
}

.legal-main {
  position: relative;
  z-index: 1;
  padding: 22px 0 54px;
}

.hero,
.section-card,
.checklist {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 24px;
  box-shadow: 0 18px 46px -34px rgba(31, 41, 55, 0.22);
  backdrop-filter: blur(14px);
}

.hero {
  padding: 22px 24px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #667085;
}

.hero h1 {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 12px 0 0;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.chip-row,
.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-row {
  margin-top: 14px;
}

.chip {
  border: 1px solid var(--chip-line);
  background: var(--chip);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.nav-row {
  margin-top: 14px;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: #667085;
  border-radius: 999px;
  padding: 7px 11px;
  border: 1px solid #d7dce3;
  background: rgba(251, 252, 253, 0.86);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.nav-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f5f7fa;
}

.stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.section-card {
  padding: 18px 20px;
}

.section-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.section-top h2 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.updated {
  font-size: 11px;
  font-weight: 600;
  color: #98a2b3;
}

.block-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.block {
  border: 1px solid #e4e8ef;
  background: var(--chip);
  border-radius: 18px;
  padding: 14px 16px;
}

.block h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.block p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.72;
  color: #5d6259;
}

.note {
  margin-top: 12px;
  border: 1px solid var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning-text);
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.72;
}

.contact-card {
  margin-top: 12px;
  border: 1px solid #d9d3c5;
  background: #f5f1e7;
  color: var(--text);
  border-radius: 18px;
  padding: 12px 14px;
}

.contact-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.contact-card p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.72;
  color: var(--muted);
}

.contact-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.checklist {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--accent);
  color: #f2efe9;
}

.checklist-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checklist-item {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  font-size: 12px;
  line-height: 1.65;
}

.legal-footer {
  margin-top: 14px;
  font-size: 11px;
  color: #7d8178;
}

@media (max-width: 768px) {
  .legal-header-inner,
  .legal-main {
    width: min(100% - 18px, 980px);
  }

  .hero,
  .section-card,
  .checklist {
    border-radius: 20px;
  }

  .hero,
  .section-card,
  .checklist {
    padding: 16px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.7;
  }

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