/*
 * Shared by the two legal documents the paywall opens.
 *
 * The measurements are the artboard's own: `602 1.0隐私协议` draws its single
 * placeholder line at x = 25 in a 14 pt body face, and the margins and sizes
 * below keep the page where that line sat now that the line has become a
 * document.
 */

/*
 * The one line that makes the page follow the reader's text size.
 *
 * `-apple-system-body` is a Dynamic Type text style and can only be named in
 * this shorthand - there is no `font-size` or `font-family` value for it. It
 * resolves to the system body size for the reader's current setting, so every
 * size below is written as a multiple of it and grows with it.
 */
html {
  font: -apple-system-body;
  /* Without this WebKit inflates text in a way of its own on a wide layout,
     which would put a second, competing answer next to the system's. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 25px 40px;
  background: #ffffff;
  color: #000000;
  font-family: "PingFang SC", -apple-system, system-ui, sans-serif;
  /* 14 pt at the default body size, which is the size the artboard draws. */
  font-size: 0.824rem;
  line-height: 1.5;
  /* A long address or a URL in the middle of a clause must not push the page
     sideways. */
  overflow-wrap: break-word;
}

/* The date under the bar. Muted, and the only line above the first heading. */
.updated {
  margin: 11px 0 0;
  color: #505055;
  font-size: 0.765rem;
}

h1 {
  margin: 18px 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  margin: 24px 0 0;
  font-size: 0.941rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 6px 0 0;
}

/* A blank line's worth of air between paragraphs of the same clause, which is
   how the document is meant to read - one thought per paragraph, not one block
   per heading. */
p + p {
  margin-top: 10px;
}

ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}

li + li {
  margin-top: 6px;
}

/*
 * The app's brand blue, underlined.
 *
 * Underlined because the colour alone is not enough to say `link`: at 14 pt on
 * white the brand is about 2.2:1, which is below the body-text rule, and a
 * reader who cannot tell it apart from the surrounding black would have no way
 * of knowing it was tappable. The underline carries that, so the colour is free
 * to stay the app's.
 */
a {
  color: #0db7f5;
  text-decoration: underline;
}
