/* The documents: privacy, terms, support, account deletion, the 404. A sheet of paper pinned on the page. */

.doc-page {
  position: relative;
  z-index: 1;
  padding: var(--s-6) var(--gutter) var(--s-8);
}

.doc {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 56px);
  background: var(--paper-white);
  box-shadow: var(--lift-shadow);
}

.doc__head {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 3px solid var(--ink);
}

.doc__icon {
  width: 40px;
  height: 40px;
}

.doc h1 {
  font-size: var(--step-title);
}

.doc__updated {
  color: var(--muted);
}

.draft {
  display: flex;
  gap: var(--s-3);
  align-items: start;
  margin-bottom: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border: var(--border) solid var(--stamp);
  border-radius: var(--radius-md);
  color: var(--stamp);
  font-size: var(--step-small);
}

.draft .icon {
  margin-top: 2px;
}

.draft p {
  color: var(--ink);
}

.draft strong {
  color: var(--stamp);
}

.doc__intro {
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.45;
}

.doc__toc {
  margin: var(--s-5) 0 0;
  padding: var(--s-4) var(--s-5);
  background: var(--paper);
}

.doc__toc .meta {
  color: var(--muted);
}

.doc__toc ol {
  display: grid;
  gap: 0 var(--s-5);
  margin: var(--s-2) 0 0;
  padding-left: 1.4em;
}

.doc__toc a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
}

@media (min-width: 640px) {
  .doc__toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.doc__section {
  padding-top: var(--s-6);
  scroll-margin-top: var(--s-4);
}

.doc h2 {
  margin-bottom: var(--s-3);
  font-size: var(--step-heading);
}

.doc p,
.doc li {
  max-width: 66ch;
}

.doc__section p + p {
  margin-top: var(--s-3);
}

.doc ul {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-3) 0 0;
  padding-left: 1.2em;
}

.doc li::marker {
  color: var(--muted);
}

.doc a {
  color: var(--stamp);
}

.doc .button {
  margin-top: var(--s-5);
}

.doc .button,
.doc .button a {
  color: var(--paper);
}

.doc--short {
  max-width: 560px;
}

.doc--short h1 {
  margin-bottom: var(--s-4);
}
