:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f5f6f8;
}

body {
  margin: 0;
  color: #24262b;
  background: #f5f6f8;
}

.legal-shell {
  width: 100%;
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top))
    calc(20px + env(safe-area-inset-right))
    calc(40px + env(safe-area-inset-bottom))
    calc(20px + env(safe-area-inset-left));
  background: #fff;
}

.legal-document {
  overflow-wrap: anywhere;
  word-break: normal;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  display: none;
  margin-bottom: 18px;
  color: #17181c;
  font-size: clamp(24px, 6.4vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
}

.legal-meta {
  margin: 0;
  color: #747983;
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.legal-meta + :not(.legal-meta) {
  margin-top: 22px;
}

h2 {
  margin: 30px 0 12px;
  padding-left: 10px;
  border-left: 3px solid #2f6feb;
  color: #17181c;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

h3 {
  margin: 22px 0 9px;
  color: #24262b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

p,
li {
  color: #34373d;
  font-size: 15px;
  line-height: 1.85;
  text-align: justify;
  text-justify: inter-ideograph;
}

[lang="en"] p,
[lang="en"] li {
  line-height: 1.72;
  text-align: left;
}

p {
  margin-bottom: 12px;
}

ul {
  margin-bottom: 14px;
  padding-left: 0.3em;
  list-style: none;
}

li {
  margin-bottom: 8px;
  padding-left: 0.15em;
}

strong {
  color: #202228;
  font-weight: 650;
}

h1 strong,
h2 strong,
h3 strong {
  color: inherit;
  font-weight: inherit;
}

.manual-bullet {
  padding-left: 1.05em;
  text-indent: -1.05em;
}

em {
  font-style: normal;
}

a {
  color: #2468d8;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (min-width: 640px) {
  .legal-shell {
    margin-top: 24px;
    margin-bottom: 24px;
    padding-right: 42px;
    padding-left: 42px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgb(26 32 44 / 7%);
  }
}

@media print {
  html,
  body {
    background: #fff;
  }

  .legal-shell {
    max-width: none;
    min-height: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }
}
