/* TESORIN terms page — matched legal-document typography and spacing */
html:not([data-theme="dark"]),
body.terms-document {
  background: #fff !important;
}

body.terms-document {
  color: #1d1d1f !important;
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.terms-document .glow {
  display: none !important;
}

body.terms-document main {
  padding: 0 !important;
  background: #fff !important;
}

.terms-document-shell {
  width: min(calc(100% - 48px), 600px) !important;
  margin: 0 auto !important;
  padding: clamp(156px, 15vw, 202px) 0 120px !important;
}

.terms-document-title {
  margin: 0 0 92px !important;
  color: #1d1d1f !important;
  font-family: var(--font-serif) !important;
  font-size: 40px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: -.01em !important;
}

.terms-document-title strong {
  display: block !important;
  margin-top: 4px !important;
  color: #151515 !important;
  font-family: inherit !important;
  font-size: 40px !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  letter-spacing: -.01em !important;
}

.terms-document-section {
  margin: 0 !important;
}

.terms-document-section + .terms-document-section {
  margin-top: 64px !important;
  padding-top: 58px !important;
  border-top: 1px solid #e6e6e6 !important;
}

.terms-document-section h2 {
  margin: 0 0 27px !important;
  color: #171717 !important;
  font-family: var(--font-serif) !important;
  font-size: 30px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -.01em !important;
}

.terms-document-section h2.terms-document-allcaps {
  font-size: 26px !important;
  line-height: 1.2 !important;
  letter-spacing: -.015em !important;
  text-transform: uppercase !important;
}

.terms-document-section h3 {
  margin: 42px 0 12px !important;
  color: #2e2e2e !important;
  font-family: var(--font-serif) !important;
  font-size: 23px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -.005em !important;
}

.terms-document-section h3[id] {
  scroll-margin-top: 108px;
}

.terms-document-section h4 {
  margin: 35px 0 9px !important;
  color: #333 !important;
  font-family: var(--font-serif) !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -.01em !important;
}

.terms-document-section p,
.terms-document-section li,
.terms-document-meta {
  color: #3d3d3d !important;
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
}

.terms-document-section p {
  margin: 0 0 16px !important;
}

.terms-document-section ul,
.terms-document-section ol {
  margin: 8px 0 20px !important;
  padding-left: 30px !important;
}

.terms-document-section li {
  padding-left: 1px !important;
}

.terms-document-section li + li {
  margin-top: 6px !important;
}

.terms-document-section a,
.terms-document-meta a {
  color: #1d1d1f !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 2px !important;
}

.terms-document-provider {
  margin: 22px 0 24px !important;
}

.terms-document-provider strong,
.terms-document-section strong {
  color: #242424 !important;
  font-weight: 700 !important;
}

.terms-document-note {
  margin: 24px 0 0 !important;
  padding: 16px 0 !important;
  border-top: 1px solid #e6e6e6 !important;
  border-bottom: 1px solid #e6e6e6 !important;
}

.terms-document-meta {
  margin-top: 64px !important;
}

body.terms-document .footer {
  background: #fff !important;
}

@media (max-width: 720px) {
  .terms-document-shell {
    width: min(calc(100% - 36px), 600px) !important;
    padding-top: 126px !important;
    padding-bottom: 88px !important;
  }

  .terms-document-title,
  .terms-document-title strong {
    font-size: 32px !important;
  }

  .terms-document-title {
    margin-bottom: 66px !important;
  }

  .terms-document-section + .terms-document-section {
    margin-top: 50px !important;
    padding-top: 46px !important;
  }

  .terms-document-section h2,
  .terms-document-section h2.terms-document-allcaps {
    font-size: 26px !important;
  }

  .terms-document-section h3 {
    font-size: 21px !important;
  }
}
