:root {
  --pink: #f48fb1;
  --lilac: #c9a0f0;
  --purple: #9b51e0;
  --accent: #a748b8;
  --ink: #2b2233;
  --muted: #6f6480;
}

html {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  min-height: 100%;
  padding: 48px 20px 64px;
  box-sizing: border-box;
  background: linear-gradient(160deg, #fce6f1 0%, #f3e3fb 45%, #e9e6fd 100%);
  background-attachment: fixed;
  overflow-wrap: break-word;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 36px 32px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(120, 60, 150, 0.12);
}

.icon {
  width: 84px;
  height: 84px;
  border-radius: 19px;
  display: block;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px rgba(120, 60, 150, 0.18);
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 6px;
}

h2 {
  font-size: 20px;
  margin-top: 34px;
  margin-bottom: 8px;
}

p.subtitle {
  font-size: 19px;
  color: var(--muted);
  margin: 0;
}

h3 {
  font-size: 17px;
  margin-top: 26px;
  margin-bottom: 6px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

ul.lettered {
  list-style: none;
  padding-left: 22px;
}

ul.lettered li {
  text-indent: -22px;
}

.lead {
  background: rgba(164, 72, 184, 0.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 24px 0 32px;
  font-size: 16px;
}

.lead p {
  margin: 0 0 10px;
}

.lead p:last-child {
  margin-bottom: 0;
}

.legal p {
  margin: 0 0 12px;
}

.closing {
  margin-top: 32px;
  font-weight: 600;
}

.toc {
  list-style: none;
  padding: 18px 22px;
  margin: 28px 0 36px;
  background: rgba(164, 72, 184, 0.06);
  border-radius: 12px;
  font-size: 16px;
}

.toc li {
  margin-bottom: 4px;
}

.toc li:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15px;
  line-height: 1.5;
}

th, td {
  border: 1px solid #e2d6ec;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(164, 72, 184, 0.08);
  font-weight: 600;
  white-space: nowrap;
}

td:nth-child(2) {
  white-space: nowrap;
}

.links li {
  margin-bottom: 4px;
}

.links a {
  overflow-wrap: anywhere;
}

h2[id] {
  scroll-margin-top: 16px;
}

a {
  color: var(--accent);
}

.badge {
  display: inline-block;
  margin: 26px 0 6px;
}

.badge img {
  height: 54px;
  width: auto;
  display: block;
}

hr {
  border: 0;
  border-top: 1px solid rgba(120, 60, 150, 0.18);
  margin: 40px 0 20px;
}

footer {
  font-size: 15px;
  color: var(--muted);
}

footer a {
  margin-right: 18px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
    padding: 24px 12px 48px;
  }

  main {
    padding: 26px 20px 22px;
    border-radius: 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 19px;
    margin-top: 30px;
  }

  p.subtitle {
    font-size: 17px;
  }

  .icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  ul,
  ul.lettered {
    padding-left: 20px;
  }

  ul.lettered li {
    text-indent: -20px;
  }

  .toc {
    padding: 14px 16px;
  }

  .lead {
    padding: 12px 14px;
  }

  table {
    min-width: 480px;
  }

  footer a {
    display: inline-block;
    padding: 9px 0;
    margin-right: 16px;
  }
}
