:root {
  --ink: #493d34;
  --muted: #786e65;
  --paper: #fffdf8;
  --paper-soft: #fbf6ed;
  --line: rgba(91, 76, 61, 0.16);
  --blue: #6f9fc1;
  --blue-soft: #e8f4fb;
  --green: #8ea070;
  --green-soft: #edf2df;
  --gold: #e3c671;
  --rose: #e9c8bb;
  --shadow: 0 24px 70px rgba(73, 61, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.94), transparent 26rem),
    radial-gradient(circle at 85% 10%, rgba(111, 159, 193, 0.12), transparent 26rem),
    radial-gradient(circle at 12% 82%, rgba(142, 160, 112, 0.14), transparent 28rem),
    linear-gradient(135deg, #fffefd 0%, #fbf8f1 62%, #f7fbfd 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(rgba(91, 76, 61, 0.055) 0.7px, transparent 0.7px),
    linear-gradient(rgba(111, 159, 193, 0.035) 1px, transparent 1px);
  background-size: 18px 18px, 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
}

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

.legal-shell {
  position: relative;
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-family: "AppleMyungjo", "Nanum Myeongjo", serif;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(111, 159, 193, 0.16);
}

.brand small {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a {
  padding: 10px 14px;
  border: 1px solid rgba(111, 159, 193, 0.34);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(16px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 26px;
}

.hero-card,
.quick-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: clamp(30px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-family: "AppleMyungjo", "Nanum Myeongjo", serif;
  font-size: 1.08rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: "AppleMyungjo", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.lead {
  max-width: 44rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.84;
  word-break: keep-all;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #426f8f;
  font-size: 0.88rem;
  font-weight: 700;
}

.quick-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 26px;
}

.quick-card strong {
  font-family: "AppleMyungjo", "Nanum Myeongjo", serif;
  font-size: 1.45rem;
  line-height: 1.32;
}

.quick-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #2e2b27;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(46, 43, 39, 0.18);
}

.content-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.72);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
}

.toc a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.content-card {
  padding: clamp(24px, 4vw, 42px);
}

section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 16px;
  font-family: "AppleMyungjo", "Nanum Myeongjo", serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
}

h3 {
  margin: 22px 0 10px;
  font-size: 1.06rem;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.82;
  word-break: keep-all;
}

ul,
ol {
  padding-left: 1.2rem;
}

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

.notice {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(142, 160, 112, 0.28);
  border-radius: 18px;
  background: rgba(237, 242, 223, 0.64);
}

.notice strong {
  color: var(--ink);
}

.steps {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(91, 76, 61, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.step strong {
  display: block;
  margin-bottom: 4px;
}

.step p {
  margin: 0;
}

.mail-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px dashed rgba(111, 159, 193, 0.42);
  border-radius: 20px;
  background: rgba(232, 244, 251, 0.52);
}

.mail-card code {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-weight: 800;
}

.footer {
  margin-top: 30px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .topbar,
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 560px) {
  .legal-shell {
    width: min(100% - 24px, 1060px);
    padding-top: 18px;
  }

  .brand {
    font-size: 1.7rem;
  }

  .hero-card,
  .quick-card,
  .content-card {
    border-radius: 24px;
  }

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