:root {
  color-scheme: light;
  --night: #0d0b0e;
  --night-soft: #171419;
  --plum: #3a1728;
  --rose: #d16a96;
  --rose-deep: #8e2c56;
  --rose-pale: #f3dde7;
  --paper: #f2f1f3;
  --surface: #ffffff;
  --ink: #1a181d;
  --muted: #68636e;
  --line: #d7d2da;
  --danger: #a23a4e;
  --max: 1180px;
  --ease: cubic-bezier(.2, .82, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.76;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rose-deep); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--danger); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: .8rem; left: .8rem; padding: .65rem 1rem; background: #fff; color: #111; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; z-index: 80; inset: 0 0 auto; height: 3px; background: var(--rose); transform: scaleX(0); transform-origin: left; }

.topbar {
  position: absolute;
  z-index: 40;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  padding: 0 clamp(1rem, 4vw, 3.25rem);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.wordmark { display: inline-flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.wordmark-mark { position: relative; width: 2rem; height: 2rem; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: radial-gradient(circle at 68% 68%, #a93a69 0 9%, transparent 10%), linear-gradient(145deg, #242028, #09080a); box-shadow: inset 0 0 0 5px rgba(255,255,255,.025); }
.wordmark-mark::after { content: ""; position: absolute; width: .42rem; height: .42rem; right: .3rem; bottom: .35rem; border-radius: 50%; background: var(--rose); box-shadow: 0 0 16px rgba(209,106,150,.72); }
.wordmark-text { font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif; font-size: 1.25rem; line-height: 1; letter-spacing: -.02em; }
.top-actions { display: flex; gap: 1.2rem; align-items: center; }
.top-actions a { color: rgba(255,255,255,.82); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.top-actions a:hover { color: #fff; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(82svh, 54rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f8f4f6;
  background: var(--night);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 78% 36%, rgba(142,44,86,.42), transparent 24%),
    radial-gradient(circle at 72% 58%, rgba(58,23,40,.7), transparent 32%),
    linear-gradient(122deg, #09080a 0 42%, #171419 64%, #0d0b0e 100%);
}
.hero::after { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .17; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; pointer-events: none; }
.hero-orbit { position: absolute; z-index: -1; width: min(50vw, 35rem); aspect-ratio: 1; right: clamp(-9rem, -4vw, -1rem); top: 15%; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; animation: orbit-in 1.2s var(--ease) both; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.hero-orbit::before { inset: 12%; border: 1px solid rgba(209,106,150,.28); background: radial-gradient(circle at 42% 38%, rgba(209,106,150,.18), rgba(13,11,14,.88) 62%); box-shadow: 0 38px 100px rgba(0,0,0,.45), inset -25px -22px 70px rgba(142,44,86,.18); }
.hero-orbit::after { width: 2.8%; aspect-ratio: 1; top: 23%; left: 11%; background: var(--rose); box-shadow: 0 0 28px rgba(209,106,150,.9); }
.hero-inner { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 9rem 0 clamp(3rem, 8vh, 5.75rem); }
.hero-copy { max-width: 47rem; animation: rise-in .85s var(--ease) .08s both; }
.eyebrow { margin: 0 0 .75rem; color: var(--rose); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 12ch; margin: 0; font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif; font-size: clamp(3.1rem, 8.2vw, 7.6rem); font-weight: 400; line-height: .92; letter-spacing: -.055em; text-wrap: balance; }
.hero-lead { max-width: 43rem; margin: 1.5rem 0 0; color: rgba(248,244,246,.75); font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.55; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.75rem; margin-top: 2rem; color: rgba(255,255,255,.66); font-size: .82rem; }
.hero-meta strong { color: #fff; font-weight: 700; }

.quick-nav { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); backdrop-filter: blur(16px); }
.quick-nav-inner { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; display: flex; gap: 1.8rem; overflow-x: auto; scrollbar-width: none; }
.quick-nav a { flex: 0 0 auto; padding: 1.05rem 0 .9rem; color: var(--muted); border-bottom: 2px solid transparent; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.quick-nav a:hover, .quick-nav a.is-active { color: var(--ink); border-color: var(--rose-deep); }

.document-shell { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: clamp(3.2rem, 8vw, 7rem) 0 6rem; display: grid; grid-template-columns: minmax(11rem, 15rem) minmax(0, 47rem); gap: clamp(2rem, 7vw, 7rem); justify-content: center; }
.toc { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100svh - 3rem); overflow: auto; }
.toc-title { margin: 0 0 1rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: .42rem 0 .42rem 1rem; color: var(--muted); border-left: 2px solid transparent; transform: translateX(-1px); font-size: .82rem; line-height: 1.35; text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--rose-deep); }

.document { min-width: 0; }
.document-intro { margin-bottom: 4rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.document-intro p { margin: 0; font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.38; letter-spacing: -.02em; }
.contact-line { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; margin-top: 1.35rem; color: var(--muted); font-size: .88rem; }
.policy-section { scroll-margin-top: 5.5rem; padding: 0 0 clamp(2.7rem, 6vw, 4.5rem); opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.policy-section.is-visible { opacity: 1; transform: none; }
.section-number { display: block; margin-bottom: .8rem; color: var(--rose-deep); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h2 { margin: 0 0 1.25rem; font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif; font-size: clamp(1.85rem, 4vw, 2.7rem); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
h3 { margin: 2rem 0 .7rem; font-size: 1rem; line-height: 1.4; }
p { margin: .7rem 0 1.15rem; }
ul, ol { margin: .8rem 0 1.2rem; padding-left: 1.25rem; }
li { padding-left: .28rem; margin: .48rem 0; }
li::marker { color: var(--rose-deep); font-weight: 700; }
.notice { margin: 1.6rem 0; padding: 1.1rem 0 1.1rem 1.3rem; border-left: 3px solid var(--rose-deep); color: #39343c; }
.notice strong { color: var(--ink); }
.notice.danger { border-color: var(--danger); }
.data-list { margin: 1.35rem 0; border-top: 1px solid var(--line); }
.data-row { display: grid; grid-template-columns: minmax(8rem, .8fr) minmax(0, 1.8fr); gap: 1.4rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.data-row dt { font-weight: 800; }
.data-row dd { margin: 0; color: #4d4852; }
.action-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; margin-top: .45rem; padding: .55rem 1rem; border: 1px solid var(--ink); border-radius: .6rem; color: var(--ink); font-weight: 800; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.action-link::after { content: "\2197"; }
.action-link:hover { color: #fff; background: var(--ink); transform: translateY(-2px); }
.small { color: var(--muted); font-size: .84rem; }

.page-footer { color: #d9d3dc; background: var(--night); }
.footer-inner { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 3rem 0; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.footer-brand { font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif; font-size: 1.7rem; color: #fff; }
.footer-copy { margin-top: .5rem; color: #8f8793; font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem 1.4rem; }
.footer-links a { color: #d9d3dc; font-size: .8rem; }

@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } }
@keyframes orbit-in { from { opacity: 0; transform: scale(.82) rotate(-8deg); } }
@media (max-width: 780px) {
  .top-actions a:not(.language-link) { display: none; }
  .hero { min-height: 72svh; }
  .hero-orbit { width: 27rem; right: -15rem; top: 18%; opacity: .78; }
  .hero-inner { padding-top: 8rem; }
  .document-shell { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem .6rem; }
  .data-row { grid-template-columns: 1fr; gap: .25rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 450px) {
  body { font-size: 15px; }
  .wordmark-text { font-size: 1.1rem; }
  .hero h1 { font-size: clamp(3rem, 17vw, 4.5rem); }
  .toc ol { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .policy-section { opacity: 1; transform: none; }
}
