:root {
  color-scheme: light;
  --brand: #7a40fb;
  --chrome: #242329;
  --ink: #25232b;
  --muted: #61606a;
  --line: #e6e3ec;
  --header-offset: 86px;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #faf9fc;
}
* { box-sizing: border-box; }
html { scroll-padding-block-start: var(--header-offset); }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: #6232cc; text-underline-offset: .16em; }
a:hover { color: var(--brand); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; min-height: 66px; gap: 9px; padding-inline: clamp(16px,3vw,48px); background: var(--chrome); color: #fff; box-shadow: 0 1px 0 #17171a; }
.bar :focus-visible, footer :focus-visible { outline-color: #d9c7ff; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-size: 21px; font-weight: 720; letter-spacing: -.045em; }
.brand:hover { color: white; }
.brand img { border-radius: 24%; }
.section-nav { display: flex; align-items: center; gap: clamp(14px,2vw,30px); margin-inline-start: clamp(9px,2.4vw,39px); }
.section-nav a { color: #dcdbe2; text-decoration: none; font-size: 13px; line-height: 1.35; font-weight: 550; padding-block: 11px; }
.section-nav a:hover, .section-nav a:focus-visible { color: #fff; text-decoration: underline; text-decoration-color: #bd9dff; text-underline-offset: 5px; }
.header-download { margin-inline-start: auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 13px; min-height: 35px; border: 1px solid transparent; border-radius: 8px; color: #fff; background: var(--brand); font-size: 13px; font-weight: 620; line-height: 1.35; text-decoration: none; }
.header-download:hover { background: #6e32ed; color: white; }
.header-download svg { width: 16px; height: 16px; flex: none; }
.languages { position: relative; min-width: 0; }
.languages summary { min-height: 35px; display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 6px 10px; border: 1px solid #4f4e58; border-radius: 8px; color: #f5f5f8; background: #35343c; list-style: none; font-size: 13px; font-weight: 550; line-height: 1.35; }
.languages summary::-webkit-details-marker { display: none; }
.languages summary::after { content: ""; width: 5px; height: 5px; margin-inline-start: 3px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); }
.languages[open] summary { border-color: #a790c8; }
.menu { position: absolute; z-index: 2; inset-block-start: calc(100% + 6px); inset-inline-end: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; width: min(270px,calc(100vw - 32px)); max-height: calc(100dvh - 70px); overflow-y: auto; padding: 9px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 32px #25143a1a; }
.menu a { padding: 5px 9px; border-radius: 6px; color: var(--ink); font-size: 14px; text-decoration: none; text-align: start; }
.menu a:hover, .menu a[aria-current] { color: #542abc; background: #f2ecff; }
.bar .menu a:focus-visible { outline-color: var(--brand); outline-offset: -2px; }

main { width: min(750px, calc(100% - 44px)); margin-inline: auto; padding-block: clamp(36px,5.6vw,80px) 25px; }
.document-heading { border-bottom: 1px solid var(--line); margin-bottom: 29px; padding-bottom: 24px; }
h1 { margin: 0; font-size: clamp(29px,4.3vw,45px); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.legal-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 14px; }
.prose { overflow-wrap: anywhere; line-height: 1.75; }
.prose h2, .prose h3 { line-height: 1.4; letter-spacing: -.02em; }
.prose h2 { margin: 34px 0 10px; font-size: 23px; }
.prose h3 { margin: 22px 0 8px; font-size: 18px; }
.prose p { margin: 0 0 15px; }
.prose ul, .prose ol { padding-inline-start: 1.55em; }
.prose li + li { margin-top: 6px; }
.prose code { padding: 2px 4px; background: #f0ebfa; border-radius: 3px; font-size: .89em; }
footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 18px; margin-block-start: 20px; padding-block: 24px; padding-inline: max(22px,calc((100% - 750px)/2)); background: var(--chrome); color: #c6c4ce; font-size: 13px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: #dcdbe2; text-decoration: none; }
footer a:hover, footer a[aria-current] { color: white; text-decoration: underline; }

@media (max-width: 880px) {
  :root { --header-offset: 120px; }
  .bar { flex-wrap: wrap; padding-block: 10px 0; row-gap: 3px; }
  .section-nav { order: 3; width: 100%; overflow-x: auto; gap: 19px; margin: 0; }
  .section-nav a { flex: none; white-space: nowrap; padding-block: 9px; }
}
@media (max-width: 520px) {
  main { width: calc(100% - 32px); }
  footer { padding-inline: 16px; }
  .prose h2 { font-size: 21px; }
  .bar { column-gap: 6px; row-gap: 1px; }
  .brand { font-size: 18px; gap: 7px; }
  .brand img { width: 29px; height: 29px; }
  .section-nav { gap: 16px; }
  .header-download { padding: 6px 8px; font-size: 12px; }
  .header-download svg, .languages summary svg { display: none; }
  .languages summary { padding: 6px 8px; }
}
@media (max-width: 369px) {
  :root { --header-offset: 145px; }
  .bar { padding-inline: 10px; }
  .brand { font-size: 16px; gap: 5px; }
}
[dir="rtl"] .document-heading h1, [dir="rtl"] .prose h2, [dir="rtl"] .prose h3 { letter-spacing: normal; }
