:root {
  --ink: #0f2f3a;
  --ink-mid: #174452;
  --canvas: #f8fafc;
  --go: #00ffaa;
  --body: #1e293b;
  --sub: #475569;
  --rim: #d7e0ee;
  --surface: #ffffff;
  --soft: #eef3fb;
  --shadow-soft: 0 2px 12px rgba(15, 47, 58, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-font-smoothing: antialiased; }
body {
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--canvas);
  color: var(--body);
  line-height: 1.72;
}
a { color: var(--ink); font-weight: 700; }
.topbar {
  border-bottom: 1px solid rgba(15, 47, 58, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}
.back-link {
  color: var(--sub);
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { color: var(--ink); }
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px 88px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}
.page-sidebar {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding: 0 14px 0 0;
  scrollbar-color: #b8c6e4 transparent;
  scrollbar-width: thin;
}
.page-sidebar::-webkit-scrollbar { width: 8px; }
.page-sidebar::-webkit-scrollbar-track { background: transparent; }
.page-sidebar::-webkit-scrollbar-thumb { background: #b8c6e4; border-radius: 999px; }
.sidebar-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #536188;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sidebar-title::before {
  content: "";
  width: 12px;
  height: 10px;
  border-top: 2px solid #536188;
  border-bottom: 2px solid #536188;
  box-shadow: 0 4px 0 -2px #536188;
}
.page-nav {
  border-left: 1px solid #cbd8f3;
  padding-left: 14px;
}
.page-nav a {
  display: block;
  color: #40517e;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  padding: 8px 0;
  text-transform: uppercase;
}
.page-nav a:hover { color: var(--ink); }
.document {
  background: var(--surface);
  border: 1px solid rgba(15, 47, 58, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 46px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 255, 170, 0.12);
  border: 1px solid rgba(0, 255, 170, 0.24);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 18px;
}
h1, h2, h3 { color: var(--ink); line-height: 1.22; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
h2 { font-size: 1.45rem; margin: 46px 0 14px; padding-top: 8px; }
h3 { font-size: 1.05rem; margin: 28px 0 10px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 18px 22px; padding: 0; }
li { margin-bottom: 8px; }
strong { color: var(--ink); }
.meta {
  color: var(--sub);
  font-size: 0.94rem;
  margin-bottom: 28px;
}
.notice-box {
  border: 1px solid rgba(15, 47, 58, 0.12);
  border-left: 4px solid var(--go);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  padding: 18px 20px;
  margin: 28px 0;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rim);
  border-radius: var(--radius-sm);
  margin: 20px 0 24px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.92rem;
}
th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rim);
  vertical-align: top;
  text-align: left;
}
th { background: #f1f5f9; color: var(--ink); }
tr:last-child td { border-bottom: none; }
.doc-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 44px;
}
.doc-card {
  min-height: 74px;
  border: 1px solid #cbd8f3;
  border-radius: 4px;
  background: #fff;
  color: var(--body);
  text-decoration: none;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  font-weight: 500;
}
.doc-card:hover { border-color: #9dafdc; box-shadow: var(--shadow-soft); }
.doc-card .arrow { color: #aebbe0; font-size: 2rem; line-height: 1; }
.doc-card .kicker {
  display: block;
  color: #6b779d;
  font-size: 0.78rem;
  margin-bottom: 2px;
}
.doc-card .title {
  display: block;
  color: #2a2f3b;
  font-size: 1rem;
  line-height: 1.3;
}
.doc-card.prev { text-align: right; }
.doc-card.prev .arrow:last-child { visibility: hidden; }
.doc-card.next .arrow:first-child { visibility: hidden; }
.updated-note {
  color: #6b779d;
  font-size: 0.88rem;
  margin-top: 24px;
}
.legal-footer {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--rim);
  color: var(--sub);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; padding-top: 28px; }
  .page-sidebar {
    position: relative;
    top: auto;
    max-height: 280px;
    background: #f3f6fc;
    border: 1px solid #d7e0ee;
    border-radius: var(--radius-sm);
    padding: 16px;
  }
  .document { padding: 32px 24px; }
}

@media (max-width: 620px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; }
  .page-shell { padding: 24px 16px 64px; gap: 22px; }
  .document { padding: 26px 18px; }
  .doc-nav { grid-template-columns: 1fr; }
  .doc-card.prev { text-align: left; }
  .doc-card.prev .arrow:first-child { display: block; }
  .doc-card.prev .arrow:last-child { display: none; }
  .doc-card.next .arrow:first-child { display: none; }
}
