/* Document pages — privacy notice, cookie policy, terms, and any other
   StandardPage. A long text is a different job from a marketing page: one
   narrow column at a comfortable measure, a sticky table of contents, and
   headings you can link to. */

.doc-head {
  padding: 72px var(--pad) 40px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}
.doc-head__in { max-width: 760px; }
.doc-head h1 {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 10px 0 0;
}
.doc-head__intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  margin: 18px 0 0;
}
.doc-head__meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 0;
}

.doc-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 64px;
  align-items: start;
  padding: 56px var(--pad) 110px;
}

/* ------------------------------------------------------------------- toc
   Built by static/js/legal.js from the h2s in the body. Without JS the
   element stays hidden and the page reads exactly the same. */

.doc-toc {
  position: sticky;
  top: 24px;
  font-size: 14px;
  line-height: 1.45;
}
.doc-toc__head {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.doc-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.doc-toc li { margin: 0; }
.doc-toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink);
}
.doc-toc a:hover { color: var(--blue); }
.doc-toc a.is-on {
  color: var(--navy);
  font-weight: 500;
  border-left-color: var(--blue);
}

/* ------------------------------------------------------------------ body
   The rich-text block ships its own .section wrapper (100px of padding and
   the page gutter); inside a document column that has to go. */

.doc-body .section,
.doc-body .section.prose { padding: 0; }
.doc-body > .section + .section { margin-top: 44px; }

.doc-body { font-size: 16.5px; line-height: 1.7; color: #3C4560; }
.doc-body > :first-child > :first-child { margin-top: 0; }

.doc-body h2 {
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 56px 0 16px;
  scroll-margin-top: 24px;
}
.doc-body h3 {
  font-family: Archivo, sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--navy);
  margin: 34px 0 10px;
  scroll-margin-top: 24px;
}
.doc-body h4 {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 8px;
}
.doc-body p { margin: 0 0 16px; }
.doc-body ul, .doc-body ol { margin: 0 0 18px; padding-left: 22px; }
.doc-body li { margin: 0 0 9px; }
.doc-body li > p:last-child { margin-bottom: 0; }
.doc-body b, .doc-body strong { color: var(--navy); font-weight: 600; }
.doc-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.doc-body a:hover { color: var(--navy); }
.doc-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 44px 0;
}
.doc-body img { max-width: 100%; height: auto; }

/* An h2 that opens a rich-text block should not double the gap the block
   itself already adds. */
.doc-body > .section > h2:first-child { margin-top: 0; }

/* ------------------------------------------------------- cookie control
   The panel at the end of the cookie policy. Hidden until legal.js has read
   the stored choice, so it never shows a state it has not verified. */

.doc-choice {
  margin-top: 56px;
  padding: 28px 30px 26px;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--blue);
  border-radius: 4px;
  background: var(--paper-alt);
}
.doc-choice[hidden] { display: none; }
.doc-choice h2 { margin-top: 0; }
.doc-body .doc-choice__now { font-size: 17px; margin: 0 0 20px; }
.doc-choice__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.doc-choice__btn {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}
.doc-choice__btn:hover { background: var(--navy); border-color: var(--navy); }
.doc-choice__btn--plain {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.doc-choice__btn--plain:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.doc-choice__btn[disabled] {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}
.doc-choice__btn[disabled]:hover { background: transparent; color: var(--muted); border-color: var(--line); }
.doc-body .doc-choice__note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

@media (max-width: 1100px) {
  .doc-wrap { grid-template-columns: 200px minmax(0, 1fr); gap: 44px; }
}

@media (max-width: 900px) {
  .doc-head { padding: 48px var(--pad) 32px; }
  .doc-head h1 { font-size: 34px; }
  .doc-head__intro { font-size: 16.5px; }
  .doc-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 32px var(--pad) 72px;
  }
  .doc-toc {
    position: static;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }
  .doc-body { font-size: 16px; }
  .doc-body h2 { font-size: 23px; margin-top: 44px; }
}
