:root {
  color-scheme: dark;
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  --background: #090713;
  --surface: #151126;
  --surface-strong: #201936;
  --border: #382c55;
  --text: #f7f4ff;
  --muted: #b7afc9;
  --accent: #9b6cff;
  --accent-soft: #c9b5ff;
  --warning: #ffd18a;
  --warning-bg: #38260e;
  --danger: #ff91aa;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgb(114 69 195 / 20%), transparent 28rem), var(--background);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

a {
  color: var(--accent-soft);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  color: #0e0920;
  background: #fff;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.draft-banner {
  padding: 0.65rem 1rem;
  color: var(--warning);
  text-align: center;
  background: var(--warning-bg);
  border-bottom: 1px solid #77501d;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(9 7 19 / 92%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  background: var(--accent);
  border-radius: 0.7rem;
  font-size: 1.25rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

nav a {
  padding: 0.4rem 0.65rem;
  color: var(--muted);
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover,
nav a.active {
  color: var(--text);
  background: var(--surface-strong);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: calc(100vh - 220px);
  margin: 0 auto;
  padding: 4rem 0 6rem;
}

.hero {
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-soft);
  font-weight: 750;
  letter-spacing: 0.04em;
}

h1,
h2,
h3 {
  line-height: 1.3;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.15rem, 7vw, 4rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.02em;
}

h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.08rem;
}

.lede {
  max-width: 65ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.4rem 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 0.92rem;
}

.policy-section {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: rgb(21 17 38 / 82%);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.policy-section p:last-child,
.policy-section ul:last-child,
.policy-section ol:last-child {
  margin-bottom: 0;
}

.policy-section li + li {
  margin-top: 0.45rem;
}

.notice {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  color: #e4d9ff;
  background: #201738;
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
}

.warning {
  color: var(--warning);
  background: var(--warning-bg);
  border-left-color: #d58d2d;
}

.danger {
  color: #ffd7df;
  background: #3a1520;
  border-left-color: var(--danger);
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

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

th {
  color: var(--accent-soft);
  background: rgb(32 25 54 / 80%);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-decoration: none;
}

.link-card:hover {
  background: var(--surface-strong);
  border-color: var(--accent);
}

.link-card strong {
  font-size: 1.15rem;
}

.link-card span {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--accent);
  border-radius: 0.65rem;
  text-decoration: none;
  font-weight: 750;
}

.button:hover {
  background: #ad88ff;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.site-footer div {
  display: flex;
  flex-direction: column;
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

  nav {
    justify-content: flex-start;
  }

  .page-shell {
    padding-top: 2.5rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #111;
    background: #fff;
  }

  .draft-banner,
  .site-header,
  .site-footer {
    position: static;
  }

  .policy-section {
    break-inside: avoid;
    background: #fff;
    border-color: #bbb;
  }
}
