*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #6c63ff;
  --accent-deep: #574fe6;
  --accent-soft: #f2f0ff;
  --ink: #1d1a26;
  --muted: #5f5a6f;
  --quiet: #8a8497;
  --bg: #f8f7f4;
  --panel: #ffffff;
  --panel-soft: #fbfaf8;
  --line: rgba(31, 26, 38, 0.12);
  --shadow: 0 24px 70px rgba(42, 34, 62, 0.1);
  --radius: 8px;
}

:root[data-theme="dark"] {
  --accent-soft: rgba(108, 99, 255, 0.16);
  --ink: #f8f4ff;
  --muted: #c9c0d6;
  --quiet: #9890a7;
  --bg: #121219;
  --panel: #1b1a25;
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 0%, rgba(108, 99, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 360px),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 22% 0%, rgba(108, 99, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 360px),
    var(--bg);
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 820;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(108, 99, 255, 0.22);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-link,
.theme-toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

:root[data-theme="dark"] .top-link,
:root[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.055);
}

.top-link {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  text-decoration: none;
}

.theme-toggle {
  width: 38px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
}

.top-link:hover,
.theme-toggle:hover {
  background: var(--panel);
  text-decoration: none;
}

.theme-toggle .theme-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .theme-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .theme-moon {
  display: inline;
}

.hero {
  display: block;
  margin-bottom: 26px;
}

.hero-main,
.hero-side,
.toc,
.legal-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

:root[data-theme="dark"] .hero-main,
:root[data-theme="dark"] .hero-side,
:root[data-theme="dark"] .toc,
:root[data-theme="dark"] .legal-card {
  background: rgba(27, 26, 37, 0.82);
}

.hero-main {
  padding: 42px;
}

.eyebrow {
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  max-width: 780px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin-top: 18px;
}

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

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 700;
}

.hero-side {
  padding: 24px;
}

.hero-side h2 {
  color: var(--ink);
  font-size: 17px;
  margin: 0 0 14px;
}

.fact-list {
  display: grid;
  gap: 13px;
}

.fact {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fact span {
  display: block;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 780;
  margin-bottom: 3px;
}

.fact strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 22px;
}

.toc-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 860;
  margin-bottom: 12px;
}

.toc nav {
  display: grid;
  gap: 4px;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-deep);
}

.legal-card {
  padding: 42px;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 28px;
}

.notice {
  background: var(--accent-soft);
  border: 1px solid rgba(108, 99, 255, 0.22);
  border-radius: 8px;
  padding: 16px;
}

.notice strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 7px;
}

.notice span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

h2 {
  color: var(--ink);
  font-size: 25px;
  line-height: 1.32;
  margin-bottom: 14px;
}

h3 {
  color: var(--ink);
  font-size: 17px;
  margin: 20px 0 8px;
}

p,
li {
  color: var(--muted);
  font-size: 15px;
}

p {
  margin-bottom: 12px;
}

ul,
ol {
  margin: 8px 0 16px 22px;
}

li {
  margin-bottom: 7px;
}

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

.info-table {
  width: 100%;
  margin: 16px 0 20px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  table-layout: fixed;
}

.info-table th,
.info-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.info-table th {
  width: 26%;
  color: var(--ink);
  background: var(--panel-soft);
  font-weight: 820;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.info-table th:last-child,
.info-table td:last-child {
  border-right: 0;
}

.callout {
  margin: 18px 0;
  padding: 17px 18px;
  border: 1px solid rgba(108, 99, 255, 0.24);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
}

.callout p {
  margin: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--quiet);
  font-size: 13px;
  margin-top: 22px;
  padding: 0 2px;
}

.footer a {
  color: var(--quiet);
}

@media (max-width: 900px) {
  .hero,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

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

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 30px, 1160px);
    padding-top: 20px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 26px;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .hero-main,
  .hero-side,
  .legal-card,
  .toc {
    padding: 22px 18px;
  }

  .toc nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 22px;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .info-table td {
    border-right: 0;
  }
}

@media print {
  :root {
    --bg: #ffffff;
    --panel: #ffffff;
    --panel-soft: #f7f7f7;
    --ink: #111111;
    --muted: #333333;
    --quiet: #555555;
    --line: #dddddd;
  }

  body {
    background: #ffffff;
  }

  .site-shell {
    width: 100%;
    padding: 0;
  }

  .topbar,
  .toc,
  .footer {
    display: none;
  }

  .hero,
  .legal-layout {
    display: block;
  }

  .hero-main,
  .hero-side,
  .legal-card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }

  .hero-side {
    margin: 18px 0;
  }

  section {
    break-inside: avoid;
  }
}
