/* Long-document pages: the two legal agreements and the privacy policy.
   Green title band over a mint body, one centred column. Mobile-first: the base
   rules are the phone layout, overrides ascend in the @media block at the bottom. */

.doc {
  z-index: 1;
  display: flex;
  flex-flow: column;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: min-content;
  position: relative;
}

.doc-header {
  display: flex;
  flex-flow: column;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: min-content;
  padding: 120px 15px 70px;
  position: relative;
  overflow: hidden;
  background: var(--color-green);
}

.doc-header-inner {
  display: flex;
  flex-flow: column;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  height: min-content;
  position: relative;
}

.doc-title {
  flex: none;
  width: 100%;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1em;
  letter-spacing: -0.6px;
  color: #fff;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.doc-main {
  display: flex;
  flex-flow: column;
  flex: none;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: min-content;
  padding: 50px 15px;
  position: relative;
  background: var(--color-mint);
}

.doc-body {
  display: flex;
  flex-flow: column;
  flex: none;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  height: min-content;
  position: relative;
}

.doc-section {
  display: flex;
  flex-flow: column;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
  height: min-content;
  position: relative;
  overflow: hidden;
}

/* Body copy. Everything inside is styled by element, not by class. */
.prose {
  flex: none;
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5em;
  letter-spacing: 0;
  color: #000;
  text-align: start;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* The markers are absolutely positioned against the list, so the list keeps the
   indent and the <li> pays for the marker column. :where() keeps the reset at zero
   specificity so the spacing rules below still win. */
.prose :where(ul, ol) {
  margin: 0;
  padding-inline-start: 0;
  position: relative;
}

.prose li {
  padding-inline-start: 2ch;
  list-style: none;
}

.prose ul > li::before {
  content: "\2022";
  position: absolute;
  inset-inline-start: 0;
}

.prose > * + * {
  margin-top: 20px;
}

.prose strong {
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-weight: 700;
}

/* The export wrapped numbered clauses in <code>; it never rendered as code. */
.prose code {
  font: inherit;
  letter-spacing: inherit;
}

.prose h2 {
  font-family: "Outfit", serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1em;
  letter-spacing: 0;
  color: #333;
}

.prose h3 {
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1em;
  letter-spacing: -0.5px;
  color: #333;
}

.prose > :is(h2, h3):not(:first-child) {
  margin-top: 30px;
}

/* The h2 preset declares no bold face, so its <strong> stays in the heading's own
   family and only steps up a weight. */
.prose h2 strong {
  font-family: inherit;
  font-weight: bolder;
}

/* Links inherit the body colour unless they are marked up as a real link. */
.prose :where(a) {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.doc-link {
  color: var(--color-orange);
  text-decoration: underline;
}

.doc-link:hover {
  color: #08f;
}

@media (width >= 767px) {
  .site-header {
    padding: 20px;
  }
  .site-brand {
    gap: 11px;
  }
  .site-brand-name {
    display: block;
  }
  .site-nav {
    gap: 35px;
  }
  .doc-header-inner {
    width: 750px;
  }
  .doc-body {
    width: 90%;
    max-width: 750px;
  }
}

/* Not a typo: the title is biggest in the middle of the range. 68px at tablet
   widths, 52-53px either side of it. That is what the design does. */
@media (width >= 810px) {
  .doc-title {
    font-size: 68px;
  }
  .prose h2 {
    font-size: 48px;
    line-height: 1em;
  }
}

@media (width >= 1200px) {
  .doc-title {
    font-size: 53px;
  }
  .prose h3 {
    font-size: 36px;
  }
  .doc-body {
    width: 750px;
    max-width: none;
  }
}
