.page-disclaimer {
  --doc-rule: rgba(74, 93, 107, .18);
  --doc-rule-strong: rgba(74, 93, 107, .32);
  --doc-grid: rgba(74, 93, 107, .045);
  --doc-paper: rgba(255, 255, 255, .55);
  --doc-night: #1D2A31;
}

.page-disclaimer .breadcrumb {
  margin-bottom: 24px;
}

.disclaimer-hero {
  padding: 8px 0 24px;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 14px;
}

.disclaimer-hero h1 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.3;
  color: var(--c-ink);
  margin: 0 0 18px;
  max-width: 17em;
  letter-spacing: -.01em;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-muted);
  max-width: 66ch;
  margin: 0;
}

.hero-lead a {
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 89, 12, .4);
  transition: border-color .2s var(--ease);
}

.hero-lead a:hover {
  border-color: var(--c-accent);
}

.doc-toc {
  margin: 32px 0 40px;
  padding: 20px 22px;
  background: var(--doc-paper);
  border: 1px solid var(--doc-rule);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.toc-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 12px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.toc-list a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-mid);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.toc-list a:hover,
.toc-list a:focus-visible {
  color: var(--c-accent);
  border-color: var(--c-accent);
  outline: none;
}

.disclaimer-body {
  position: relative;
}

.disclaimer-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--doc-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--doc-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.doc-chapter {
  position: relative;
  border-top: 1px solid var(--doc-rule);
  padding: 28px 0 36px;
}

.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}

.chapter-index {
  position: relative;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-mid);
  letter-spacing: -.02em;
  padding-top: 10px;
}

.chapter-index::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 4px;
  background: var(--c-accent);
}

.chapter-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
  margin: 0;
}

.chapter-body {
  max-width: 780px;
}

.chapter-body p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-ink);
  margin: 0 0 14px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color .28s var(--ease);
}

.chapter-body p:hover {
  text-decoration-color: rgba(74, 93, 107, .48);
}

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

.table-wrap {
  margin: 20px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--doc-rule);
  border-radius: var(--radius-card);
  background: var(--doc-paper);
}

.browser-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.browser-table caption {
  text-align: left;
  padding: 14px 16px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.browser-table th,
.browser-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid var(--doc-rule);
}

.browser-table thead th {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-mid);
  border-top: 0;
  letter-spacing: .04em;
}

.browser-table tbody th {
  font-weight: 600;
  color: var(--c-ink);
}

.support-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-ink);
}

.support-mark::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(232, 89, 12, .16);
}

.doc-diagram {
  margin: 20px 0 4px;
  border: 1px solid var(--doc-rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
}

.doc-diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.doc-icp-panel {
  position: relative;
  margin-top: 48px;
  padding: 36px 24px 32px;
  background: var(--doc-night);
  color: #F2F4F3;
  text-align: center;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.doc-icp-panel::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(232, 89, 12, .28), transparent 68%);
  border-radius: 50%;
}

.doc-icp-panel::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(242, 244, 243, .08);
  border-radius: 50%;
}

.icp-code {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #fff;
}

.icp-domain {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(242, 244, 243, .68);
}

.icp-copy {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 244, 243, .16);
  font-size: 14px;
  color: rgba(242, 244, 243, .86);
}

.icp-tip {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242, 244, 243, .55);
}

@media (min-width: 768px) {
  .disclaimer-hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .doc-toc {
    padding: 22px 28px;
  }

  .toc-list {
    grid-template-columns: repeat(5, minmax(0, auto));
    gap: 0 24px;
  }

  .doc-chapter {
    display: grid;
    grid-template-columns: minmax(140px, 170px) 1fr;
    gap: 24px 40px;
    padding: 36px 0 44px;
  }

  .chapter-head {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
  }

  .chapter-index {
    font-size: 48px;
  }

  .chapter-title {
    font-size: 24px;
  }

  .chapter-body {
    grid-column: 2;
  }

  .chapter-body p {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .doc-icp-panel {
    padding: 44px 32px 36px;
  }

  .icp-code {
    font-size: 24px;
  }
}
