:root {
  color-scheme: dark;
  --bg: #090b11;
  --surface: #151822;
  --surface-soft: #1b1e2a;
  --line: #34384a;
  --text: #f7f5ff;
  --muted: #bcb9ca;
  --accent: #ff6a38;
  --accent-strong: #ff5420;
  --lavender: #a69aff;
  --danger: #ff526b;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: #c9c3ff; text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 3px; }
.shell, .frame, .page, .content { width: min(100% - 32px, 920px); margin: 0 auto; }
header { border-bottom: 1px solid rgba(255,255,255,.09); background: var(--bg); }
header .shell, header .frame, header .page, header .content { padding: 24px 0 20px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 78px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: var(--bg);
}
.topbar .shell { width: min(100% - 32px, 720px); padding: 0; }
.topbar-inner { display: grid; grid-template-columns: 48px 1fr 96px; align-items: center; height: 100%; }
.menu-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}
.menu-button:hover { background: var(--surface); }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 25px;
  height: 3px;
  border-radius: 4px;
  background: var(--text);
  content: "";
}
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -8px; }
.menu-icon::after { position: absolute; top: 8px; }
.page-title { margin: 0; color: var(--text); font-size: 1.25rem; font-weight: 800; text-align: center; letter-spacing: .01em; }
.wordmark { color: var(--accent); font-size: 1.25rem; font-weight: 900; letter-spacing: -.04em; text-align: right; }
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0,0,0,.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 11;
  width: min(82vw, 310px);
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  background: #11131c;
  transform: translateX(-100%);
  transition: transform .22s ease;
}
.drawer-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.drawer-title { margin: 0; font-weight: 850; }
.close-button { border: 0; color: var(--text); background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.drawer nav { display: grid; gap: 18px; }
.drawer nav a { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; color: var(--muted); background: transparent; font-weight: 700; }
.drawer nav a:hover { color: var(--text); background: transparent; }
body.menu-open { overflow: hidden; }
body.menu-open .drawer { transform: translateX(0); }
body.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.brand, .mast { margin: 0 0 15px; color: var(--accent); font-size: 1.1rem; font-weight: 900; letter-spacing: -.02em; }
nav, .links, .foot-links, .footer-links { display: flex; flex-wrap: wrap; gap: 8px 10px; }
nav a, .links a, .foot-links a, .footer-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 750;
  text-decoration: none;
}
nav a:hover, .links a:hover, .foot-links a:hover, .footer-links a:hover, nav a[aria-current="page"] {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}
.safety-banner {
  display: block;
  width: min(100%, 612px);
  height: auto;
  margin: 0 auto 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
}
main { padding: 42px 0 64px; }
.kicker, .eyebrow, .category, .overline {
  margin: 0 0 12px;
  color: var(--lavender);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 { margin: 0; color: var(--text); font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.08; letter-spacing: -.04em; }
.date, .stamp { margin: 14px 0 0; color: var(--muted); }
.lead, .agreement, .promise, .warning {
  margin: 28px 0 38px;
  padding: 19px 21px;
  border: 1px solid rgba(255,255,255,.1);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
}
section { padding: 27px 0 23px; border-top: 1px solid rgba(255,255,255,.12); }
h2 { margin: 0 0 12px; color: var(--text); font-size: 1.43rem; line-height: 1.3; }
h3 { margin: 21px 0 7px; color: var(--text); font-size: 1.08rem; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: 7px; }
strong { color: #fff; }
.scroller { margin: 17px 0; overflow-x: auto; }
table { min-width: 650px; width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--text); background: var(--surface-soft); }
.notice, .contact, .path { border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: var(--surface); }
.notice { padding: 15px 17px; border-left: 4px solid var(--danger); }
.path { display: block; margin: 15px 0; padding: 14px 16px; color: var(--text); font-weight: 750; }
.contact { padding: 17px 19px; }
.rule { padding-left: 15px; border-left: 4px solid var(--accent); }
address { font-style: normal; }
footer { border-top: 1px solid rgba(255,255,255,.09); color: var(--muted); }
footer .shell, footer .frame, footer .page, footer .content { padding: 25px 0 39px; }
.links, .foot-links, .footer-links { margin-bottom: 12px; }
@media (max-width: 620px) {
  .shell, .frame, .page, .content { width: min(100% - 24px, 920px); }
  main { padding-top: 34px; }
  .lead, .agreement, .promise, .warning { padding: 16px; }
  .topbar { height: 70px; }
  .topbar .shell { width: min(100% - 24px, 720px); }
  .topbar-inner { grid-template-columns: 44px 1fr 82px; }
  .page-title, .wordmark { font-size: 1.05rem; }
  nav a, .links a, .foot-links a, .footer-links a { flex: 1 1 calc(50% - 10px); justify-content: center; }
}
