/* Páginas simples: 404, docs, termos, uso e privacidade. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: #161616;
  color: #f4f4f4;
  font: 15px/1.65 Manrope, system-ui, sans-serif;
}
a { color: inherit; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #eee;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.3px;
  line-height: 1;
}
.brand-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  margin-right: 3px;
  color: #f4f4f4;
  transform: rotate(22deg);
}
.brand-mark svg { width: 100%; height: 100%; stroke-width: 1.6; }
.brand > span:not(.brand-dot) { color: #9a9a9a; font-weight: 400; }
.brand-dot {
  color: #9a9a9a;
  align-self: flex-start;
  margin-top: 13px;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 500;
}
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.back {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #f4f4f4;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.back:hover { background: rgba(255, 255, 255, .06); }
.links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.links a {
  color: #bdbdbd;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}
.links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.links a[aria-current="page"] { color: #161616; background: #f4f4f4; }
.doc {
  width: min(760px, calc(100% - 40px));
  margin: 8px auto 72px;
}
.kicker {
  margin: 0;
  color: #8d8d8d;
  font: 600 12px/1 "Space Grotesk", Manrope, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.doc h1 {
  margin: 10px 0 0;
  font: 600 40px/1.05 "Space Grotesk", Manrope, sans-serif;
  letter-spacing: -.04em;
}
.updated { margin: 8px 0 0; color: #8d8d8d; font-size: 13px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.jump a {
  color: #d4d4d4;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 5px 10px;
}
.jump a:hover { background: rgba(255, 255, 255, .06); }
.legal-content { margin-top: 28px; }
.legal-intro { margin: 0; color: #c8c8c8; font-size: 16px; }
.legal-content section { margin-top: 32px; }
.legal-content h2 {
  margin: 0 0 8px;
  font: 600 20px/1.3 "Space Grotesk", Manrope, sans-serif;
  letter-spacing: -.03em;
}
.legal-content h2 span {
  display: inline-block;
  margin-right: 10px;
  color: #8d8d8d;
  font-size: 13px;
  letter-spacing: .04em;
}
.legal-content p, .legal-content li { color: #c8c8c8; }
.legal-content ul, .legal-content ol { margin: 8px 0 0; padding-left: 1.2em; }
.legal-content li + li { margin-top: 6px; }
.legal-content a { color: #fff; text-underline-offset: 3px; }
.legal-content code {
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #242424;
  border-radius: 6px;
  padding: 1px 5px;
}
.legal-content pre {
  margin: 12px 0 0;
  padding: 14px 16px;
  overflow: auto;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
}
.legal-content pre code { background: none; padding: 0; color: #ececec; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.doc-table th, .doc-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.doc-table th { color: #8d8d8d; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.legal-contact { margin-top: 36px; color: #8d8d8d; }
@media (max-width: 640px) {
  .top { align-items: flex-start; flex-direction: column; }
  .top-actions { justify-content: flex-start; }
  .doc h1 { font-size: 32px; }
}

/* Blue scrollbar thumbs follow the site's action color; keep each scroller's sizing. */
:root, *, .ch-app-file-tree, .ch-gh-repos {
  scrollbar-color: var(--blue, #2879ed) transparent;
}
*::-webkit-scrollbar-thumb { background-color: var(--blue, #2879ed); }
*::-webkit-scrollbar-thumb:hover { background-color: var(--blue-hover, #3687f6); }
@media (forced-colors: active) {
  :root, *, .ch-app-file-tree, .ch-gh-repos { scrollbar-color: auto; }
  *::-webkit-scrollbar-thumb, *::-webkit-scrollbar-thumb:hover { background-color: revert; }
}
