:root {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: #111318;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --agreement-blue: #2872f5;
  --agreement-blue-deep: #1558d6;
  --agreement-blue-soft: #edf4ff;
  --agreement-ink: #111318;
  --agreement-muted: #6b7280;
  --agreement-line: #e2e7ef;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--agreement-ink);
  -webkit-font-smoothing: antialiased;
}

body.directory-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(40 114 245 / 28%);
  outline-offset: 4px;
}

.agreement-shell {
  min-height: 100vh;
}

.agreement-progress-track {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.agreement-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--agreement-blue);
  transition: width 120ms linear;
}

.agreement-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 92px;
  background: rgb(237 244 255 / 96%);
  border-bottom: 1px solid #dce6f6;
  backdrop-filter: blur(16px);
}

.agreement-header-inner {
  width: min(calc(100% - 72px), 1360px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.agreement-title-lockup,
.agreement-brand,
.agreement-header-actions,
.font-controls {
  display: flex;
  align-items: center;
}

.agreement-brand {
  flex: 0 0 auto;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.agreement-brand img {
  width: 43px;
  height: 43px;
  display: block;
  object-fit: contain;
  filter: invert(1);
}

.agreement-divider {
  width: 1px;
  height: 30px;
  margin: 0 24px;
  background: #cdd8e8;
}

.agreement-title-lockup > strong {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.agreement-header-actions {
  gap: 30px;
}

.font-controls {
  gap: 17px;
}

.font-controls button,
.agreement-back {
  min-width: 48px;
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.font-controls button {
  color: var(--agreement-blue-deep);
  font-size: 20px;
  line-height: 1;
}

.font-controls button:disabled {
  color: #9facbf;
  cursor: not-allowed;
}

.font-controls > span {
  width: 1px;
  height: 24px;
  background: #cdd8e8;
}

.agreement-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f5a6b;
  font-size: 15px;
}

.agreement-back:hover {
  color: var(--agreement-blue-deep);
}

.agreement-mobile-meta,
.agreement-mobile-selector {
  display: none;
}

.agreement-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.agreement-layout {
  width: min(calc(100% - 72px), 1360px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 760px) 208px;
  justify-content: space-between;
  gap: clamp(32px, 4vw, 62px);
}

.agreement-left-rail,
.agreement-right-rail {
  position: sticky;
  top: 132px;
  align-self: start;
  padding-top: 34px;
}

.agreement-left-rail > p {
  margin: 0 0 23px;
  color: #8992a1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.agreement-chapters {
  display: grid;
  gap: 3px;
}

.agreement-chapters button {
  position: relative;
  width: 100%;
  min-height: 47px;
  padding: 8px 12px 8px 19px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.agreement-chapters button::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  border-radius: 2px;
  background: transparent;
}

.agreement-chapters button span {
  color: #a2aab6;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.agreement-chapters button strong {
  color: #667080;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.45;
}

.agreement-chapters button:hover {
  background: #f8faff;
}

.agreement-chapters button.is-active {
  background: #f2f6ff;
}

.agreement-chapters button.is-active::before {
  background: var(--agreement-blue);
}

.agreement-chapters button.is-active span,
.agreement-chapters button.is-active strong {
  color: var(--agreement-blue-deep);
}

.agreement-document {
  min-width: 0;
  padding: 35px 0 120px;
}

.agreement-desktop-meta {
  min-height: 58px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--agreement-line);
  color: #798291;
  font-size: 14px;
}

.agreement-section {
  scroll-margin-top: 126px;
  padding-bottom: 84px;
  border-bottom: 1px solid var(--agreement-line);
}

.agreement-section + .agreement-section {
  padding-top: 78px;
}

.agreement-section-heading {
  margin-bottom: 44px;
  display: flex;
  align-items: baseline;
  gap: 32px;
}

.agreement-section-number {
  flex: 0 0 auto;
  margin: 0;
  color: var(--agreement-blue);
  font-size: 64px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: -0.055em;
}

.agreement-section h1 {
  margin: 0;
  font-size: clamp(34px, 3vw, 43px);
  line-height: 1.22;
  font-weight: 790;
  letter-spacing: -0.045em;
}

.agreement-section-content,
.agreement-introduction {
  font-size: var(--reader-font-size);
  line-height: 2.02;
  color: #292d34;
}

.agreement-section-content p,
.agreement-introduction p,
.agreement-section-content li {
  margin: 0 0 24px;
}

.agreement-section-content ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agreement-section-content li {
  padding-left: 26px;
}

.agreement-keyed-block {
  margin: 36px 0 29px;
}

.agreement-keyed-block:first-child {
  margin-top: 0;
}

.agreement-keyed-block h3 {
  margin: 0 0 23px;
  padding-left: 14px;
  border-left: 4px solid var(--agreement-blue);
  color: var(--agreement-ink);
  font-size: calc(var(--reader-font-size) + 5px);
  line-height: 1.42;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.agreement-introduction .agreement-keyed-block {
  margin-top: 0;
}

.agreement-callout {
  margin: 24px 0;
  padding: 18px 24px 19px;
  display: block;
  border-left: 4px solid #5a92f7;
  border-radius: 4px;
  background: #f1f6ff;
  color: #202936;
  font-size: var(--reader-font-size);
  line-height: 1.9;
}

.agreement-callout strong {
  font-weight: 760;
  text-decoration: none !important;
}

.agreement-section-content strong,
.agreement-introduction strong {
  font-weight: 720;
}

.agreement-right-rail {
  padding-top: 70px;
}

.reading-card {
  padding: 22px 0 24px;
  border-top: 1px solid var(--agreement-line);
  border-bottom: 1px solid var(--agreement-line);
}

.reading-card-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #667080;
  font-size: 13px;
}

.reading-card-label strong {
  color: var(--agreement-blue-deep);
  font-size: 22px;
  font-weight: 760;
}

.reading-card-track {
  height: 4px;
  margin: 13px 0 18px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4eaf3;
}

.reading-card-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--agreement-blue);
}

.reading-card p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7a8493;
  font-size: 13px;
}

.back-to-top {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #697485;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.back-to-top:hover {
  color: var(--agreement-blue-deep);
}

.agreement-document-footer {
  padding-top: 78px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.agreement-document-footer img {
  width: 40px;
  height: 40px;
  margin-bottom: 13px;
  filter: invert(1);
}

.agreement-document-footer p {
  margin: 0;
  color: #27303d;
  font-size: 17px;
  font-weight: 700;
}

.agreement-document-footer span {
  margin-top: 7px;
  color: #929aa7;
  font-size: 12px;
}

.agreement-directory-fab {
  position: fixed;
  right: 34px;
  bottom: 34px;
  z-index: 45;
  width: 58px;
  height: 58px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--agreement-blue);
  color: #fff;
  box-shadow: 0 14px 30px rgb(40 114 245 / 32%);
  cursor: pointer;
}

.agreement-directory-fab .agreement-icon {
  width: 28px;
  height: 28px;
}

.agreement-directory-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.agreement-directory-layer.is-open {
  visibility: visible;
  opacity: 1;
}

.agreement-directory-backdrop {
  grid-area: 1 / 1;
  border: 0;
  background: rgb(15 23 42 / 42%);
  cursor: pointer;
}

.agreement-directory-sheet {
  grid-area: 1 / 1;
  align-self: end;
  width: min(100%, 520px);
  max-height: min(78vh, 720px);
  margin-inline: auto;
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
  overflow: auto;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -20px 50px rgb(17 28 47 / 18%);
  transform: translateY(24px);
  transition: transform 220ms ease;
}

.agreement-directory-layer.is-open .agreement-directory-sheet {
  transform: translateY(0);
}

.agreement-directory-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.agreement-directory-heading span {
  color: var(--agreement-blue-deep);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.12em;
}

.agreement-directory-heading h2 {
  margin: 3px 0 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.agreement-directory-heading button {
  min-width: 48px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #566172;
  cursor: pointer;
}

.agreement-mobile-chapters {
  display: grid;
  gap: 5px;
}

.agreement-mobile-chapters button {
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.agreement-mobile-chapters button.is-active {
  background: var(--agreement-blue-soft);
}

.agreement-mobile-chapters button span {
  color: #8c96a5;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.agreement-mobile-chapters button strong {
  font-size: 15px;
  font-weight: 610;
}

.agreement-mobile-chapters button.is-active span,
.agreement-mobile-chapters button.is-active strong {
  color: var(--agreement-blue-deep);
}

@media (max-width: 1120px) {
  .agreement-layout {
    grid-template-columns: 220px minmax(0, 720px);
    justify-content: center;
  }

  .agreement-right-rail {
    display: none;
  }

  .agreement-directory-fab {
    display: flex;
  }
}

@media (max-width: 820px) {
  .agreement-header {
    height: 64px;
  }

  .agreement-header-inner {
    width: 100%;
    padding-inline: 20px;
    gap: 8px;
  }

  .agreement-brand {
    gap: 8px;
    font-size: 20px;
  }

  .agreement-brand img {
    width: 34px;
    height: 34px;
  }

  .agreement-divider {
    height: 24px;
    margin: 0 13px;
  }

  .agreement-title-lockup > strong {
    font-size: 17px;
  }

  .agreement-header-actions {
    gap: 8px;
  }

  .agreement-back {
    display: none;
  }

  .font-controls {
    gap: 11px;
  }

  .font-controls button {
    min-width: 43px;
    min-height: 44px;
    font-size: 19px;
  }

  .agreement-mobile-meta {
    min-height: 46px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--agreement-line);
    color: #707988;
    font-size: 14px;
  }

  .agreement-mobile-selector {
    position: sticky;
    top: 64px;
    z-index: 50;
    width: 100%;
    min-height: 52px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 0;
    border-bottom: 1px solid var(--agreement-line);
    background: rgb(255 255 255 / 96%);
    cursor: pointer;
    backdrop-filter: blur(16px);
  }

  .agreement-mobile-selector::after {
    content: "";
    position: absolute;
    inset: auto auto -1px 18px;
    width: 102px;
    height: 3px;
    border-radius: 3px;
    background: var(--agreement-blue);
  }

  .agreement-mobile-selector span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 640;
  }

  .agreement-mobile-selector b {
    color: var(--agreement-blue);
    font-weight: 720;
  }

  .agreement-mobile-selector > .agreement-icon {
    width: 21px;
    height: 21px;
  }

  .agreement-layout {
    width: 100%;
    display: block;
  }

  .agreement-left-rail {
    display: none;
  }

  .agreement-document {
    width: min(100% - 44px, 700px);
    margin-inline: auto;
    padding: 39px 0 100px;
  }

  .agreement-desktop-meta {
    display: none;
  }

  .agreement-section {
    scroll-margin-top: 126px;
    padding-bottom: 66px;
  }

  .agreement-section + .agreement-section {
    padding-top: 64px;
  }

  .agreement-section-heading {
    margin-bottom: 46px;
    display: block;
  }

  .agreement-section-number {
    margin-bottom: 24px;
    font-size: 58px;
  }

  .agreement-section h1 {
    font-size: clamp(31px, 8vw, 38px);
  }

  .agreement-keyed-block h3 {
    font-size: calc(var(--reader-font-size) + 5px);
  }

  .agreement-directory-fab {
    right: 22px;
    bottom: 24px;
  }
}

@media (max-width: 520px) {
  .agreement-header-inner {
    padding-inline: 16px 12px;
  }

  .agreement-title-lockup {
    min-width: 0;
  }

  .agreement-brand {
    font-size: 18px;
  }

  .agreement-brand img {
    width: 32px;
    height: 32px;
  }

  .agreement-divider {
    margin-inline: 12px;
  }

  .agreement-title-lockup > strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .font-controls {
    gap: 2px;
  }

  .font-controls > span {
    display: none;
  }

  .font-controls button {
    min-width: 39px;
    padding: 0 4px;
    font-size: 18px;
  }

  .agreement-mobile-meta {
    min-height: 46px;
    padding-inline: 20px;
  }

  .agreement-mobile-selector {
    min-height: 52px;
    padding-inline: 20px;
  }

  .agreement-document {
    width: calc(100% - 40px);
    padding-top: 38px;
  }

  .agreement-section-number {
    font-size: 54px;
  }

  .agreement-section h1 {
    font-size: 32px;
  }

  .agreement-section-content,
  .agreement-introduction {
    line-height: 1.98;
  }

  .agreement-section-content p,
  .agreement-introduction p,
  .agreement-section-content li {
    margin-bottom: 22px;
  }

  .agreement-callout {
    padding: 17px 18px 18px 20px;
  }

  .agreement-directory-fab {
    width: 54px;
    height: 54px;
    right: 18px;
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Word-export cleanup and long-form document refinements. */
body[data-legal-type] {
  width: auto !important;
  margin: 0 !important;
  background: #fff !important;
}

.agreement-title-lockup {
  min-width: 0;
}

.agreement-title-lockup > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agreement-brand:link,
.agreement-brand:visited,
.agreement-back:link,
.agreement-back:visited {
  color: inherit;
  text-decoration: none;
}

.agreement-brand:link,
.agreement-brand:visited {
  color: var(--agreement-ink);
}

.agreement-back:link,
.agreement-back:visited {
  color: #4f5a6b;
}

.agreement-left-rail {
  max-height: calc(100vh - 164px);
}

.agreement-chapters {
  max-height: calc(100vh - 220px);
  padding-right: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c8d2e0 transparent;
}

.agreement-chapters::-webkit-scrollbar {
  width: 5px;
}

.agreement-chapters::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #c8d2e0;
}

.agreement-introduction {
  margin-bottom: 44px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--agreement-line);
}

.agreement-introduction:empty {
  display: none;
}

.agreement-meta-line {
  width: fit-content;
  margin-bottom: 10px !important;
  padding: 7px 11px;
  border: 1px solid #d8e4f6;
  border-radius: 6px;
  background: #f7faff !important;
  color: #5e6a7c !important;
  font-size: calc(var(--reader-font-size) - 3px) !important;
  line-height: 1.5 !important;
}

.agreement-subheading {
  margin: 38px 0 21px;
  padding-left: 14px;
  border-left: 4px solid var(--agreement-blue);
  color: var(--agreement-ink);
  font-size: calc(var(--reader-font-size) + 4px);
  line-height: 1.5;
  font-weight: 760;
  letter-spacing: -0.015em;
}

.agreement-section-content .MsoNormal,
.agreement-introduction .MsoNormal,
.agreement-section-content p,
.agreement-introduction p {
  margin: 0 0 24px !important;
  background: transparent !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
  text-indent: 0 !important;
}

.agreement-section-content span,
.agreement-introduction span,
.agreement-section-content b,
.agreement-introduction b,
.agreement-section-content strong,
.agreement-introduction strong {
  background: transparent !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.agreement-section-content b,
.agreement-introduction b,
.agreement-section-content strong,
.agreement-introduction strong {
  font-weight: 720 !important;
}

.agreement-section-content a,
.agreement-introduction a {
  color: var(--agreement-blue-deep) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agreement-section-content table,
.agreement-introduction table {
  width: 100% !important;
  max-width: 100%;
  margin: 30px 0;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: calc(var(--reader-font-size) - 2px) !important;
}

.agreement-section-content td,
.agreement-section-content th,
.agreement-introduction td,
.agreement-introduction th {
  min-width: 140px;
  padding: 12px 14px !important;
  border: 1px solid var(--agreement-line) !important;
  background: #fff !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: 1.65 !important;
  vertical-align: top;
}

.agreement-section-content img,
.agreement-introduction img {
  max-width: 100%;
  height: auto;
}

.agreement-section-content br + br,
.agreement-introduction br + br {
  display: none;
}

.agreement-section-content o\:p,
.agreement-introduction o\:p {
  display: none;
}

@media (max-width: 820px) {
  .agreement-introduction {
    margin-bottom: 38px;
  }

  .agreement-meta-line {
    width: 100%;
  }

  .agreement-subheading {
    margin-top: 34px;
  }

  .agreement-mobile-chapters {
    padding-bottom: 8px;
  }
}

@media (max-width: 390px) {
  .agreement-header-inner {
    padding-inline: 12px 8px;
  }

  .agreement-brand span {
    display: none;
  }

  .agreement-divider {
    margin-inline: 9px;
  }

  .agreement-title-lockup > strong {
    max-width: 118px;
    font-size: 15px;
  }
}
