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

body {
  background: #09080f;
  color: #e2e0f0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(168,85,247,0.1);
  background: rgba(9,8,15,0.92);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 40px; height: 40px; }
.logo { font-weight: 700; font-size: 18px; color: #fff; }

.nav-back {
  font-size: 13px;
  color: #5a587a;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-back:hover { color: #a855f7; }

.page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.page-label {
  font-size: 11px;
  font-weight: 700;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.page-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 10px;
  line-height: 1.1;
}

.page-date {
  font-size: 13px;
  color: #3a3a55;
  margin-bottom: 48px;
}

.legal-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.legal-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #c4b5fd;
  margin: 24px 0 8px;
}

.legal-body p {
  font-size: 14px;
  color: #5c5c7e;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-body ul {
  padding-left: 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-body li {
  font-size: 14px;
  color: #5c5c7e;
  line-height: 1.75;
}

.legal-body a { color: #a855f7; }
.legal-body a:hover { text-decoration: underline; }

.legal-body strong { color: #e2e0f0; font-weight: 600; }

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: flex-start;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  background: #0e0c24;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 12px;
}

.docs-sidebar-section {
  font-size: 10px;
  font-weight: 700;
  color: #3a3a55;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 12px 4px;
}

.docs-sidebar a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #5a587a;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.docs-sidebar a:hover { background: rgba(255,255,255,0.05); color: #e2e0f0; }
.docs-sidebar a.active { background: rgba(168,85,247,0.14); color: #c4b5fd; }

.docs-content { min-width: 0; }

.docs-section { margin-bottom: 56px; }

.docs-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.docs-section-sub {
  font-size: 13px;
  color: #3a3a55;
  margin-bottom: 24px;
}

.cmd-card {
  background: #0e0c24;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.cmd-card:hover { border-color: rgba(168,85,247,0.3); }

.cmd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.cmd-name {
  font-size: 15px;
  font-weight: 700;
  color: #a855f7;
  font-family: 'Consolas', monospace;
}

.cmd-desc {
  font-size: 13px;
  color: #5a587a;
  flex: 1;
}

.cmd-perm {
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.22);
  padding: 3px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}

.cmd-params {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmd-param {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}

.param-name {
  font-family: 'Consolas', monospace;
  color: #e2e0f0;
  font-weight: 600;
  min-width: 120px;
  flex-shrink: 0;
}

.param-req {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.param-req.required { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.param-req.optional { background: rgba(255,255,255,0.05); color: #5a587a; border: 1px solid rgba(255,255,255,0.1); }

.param-desc { color: #3a3a55; }

.panel-feature-card {
  background: #0e0c24;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 12px;
}

.panel-feature-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.panel-feature-desc {
  font-size: 13px;
  color: #5a587a;
  line-height: 1.7;
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: #3a3a55; transition: color 0.2s; }
.footer-links a:hover { color: #a855f7; }
.footer-copy { font-size: 13px; color: #27272a; }

@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .cmd-header { flex-wrap: wrap; }
}
