/* ============================================================
   Steerly - document pages (privacy, terms, security, contact)
   Depends on instrument.css for every token and primitive.

   These pages are read, not scanned, so the register softens:
   one measured column, generous leading, hairline section rules,
   and a sticky contents rail that reports where you are. No
   scroll scenes, no canvas, no motion beyond a reveal.
   ============================================================ */

.doc {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: clamp(48px, 7vw, 84px) 0 clamp(72px, 9vw, 112px);
}

.doc__grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 900px) {
  .doc__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ---- masthead ---- */
.doc__head {
  border-top: 1px solid var(--rule-strong);
  padding-top: 14px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.doc__head h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.006em;
  line-height: 1.05;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  margin: 14px 0 0;
}

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---- contents rail ---- */
.doc__toc {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .doc__toc {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 14px;
  }
}

.doc__toclabel {
  font-family: var(--ui);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 0 10px 14px;
}

.doc__toc a {
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--dimmer);
  transition:
    color var(--dur-move) var(--ease-snap),
    border-color var(--dur-move) var(--ease-snap);
}

.doc__toc a:hover {
  color: var(--text);
}

.doc__toc a[aria-current="true"] {
  color: var(--text);
  border-left-color: var(--accent);
}

/* ---- prose ---- */
.doc__body {
  max-width: 74ch;
}

.doc__body section {
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}

.doc__body section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.doc__body h2 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.018em;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.doc__body h3 {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 22px 0 10px;
}

.doc__body p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--dim);
}

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

.doc__body a:not(.btn) {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in oklch, var(--accent) 40%, transparent);
}

.doc__body a:not(.btn):hover {
  border-bottom-color: var(--accent);
}

.doc__body ul,
.doc__body ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* A grid list item puts every inline child in its own cell, so a <strong>
   or a <code> inside the sentence breaks onto its own row. The marker is
   positioned instead, leaving the item in normal inline flow. */
.doc__body li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--dim);
}

.doc__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--rule-strong);
}

.doc__body strong {
  color: var(--text);
  font-weight: 600;
}

.doc__body code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

.doc__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 13.5px;
}

.doc__body th,
.doc__body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--dim);
}

.doc__body th {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom-color: var(--rule-strong);
}

/* a table on a phone scrolls in its own box, never the page */
.doc__scroll {
  overflow-x: auto;
}


/* legacy inline-code span carried over from the original pages */
.mono-inl {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

/* the section number that prefixes each heading */
.doc__body h2 .n {
  font-family: var(--mono);
  font-size: 0.72em;
  color: var(--faint);
  margin-right: 8px;
  font-variant-numeric: var(--num);
}
