/* The prose pages — terms, privacy and the "common setups" walkthroughs: one column of prose in the same card material
   every other panel on the site uses. No TOC — a dozen short sections do not need one. */

.page {
  padding: 64px 0 110px;
}

/* --container is 1120px, which is far too wide for running text; the shell is the
   measure, the container stays the gutter. */
.page-shell {
  max-width: 780px;
  margin: 0 auto;
}

.page-head {
  margin-bottom: 30px;
}
.page-head h1 {
  font-size: 2rem;
  margin: 8px 0 0;
}
.page-meta {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.page-doc {
  padding: 34px 38px;
}
.page-doc section + section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.page-doc h2 {
  font-size: 1.12rem;
  margin: 0 0 10px;
}
.page-doc p,
.page-doc li {
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.page-doc p {
  margin: 0 0 12px;
}
.page-doc p:last-child {
  margin-bottom: 0;
}
.page-doc ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.page-doc li {
  margin-bottom: 7px;
}
.page-doc li:last-child {
  margin-bottom: 0;
}
/* `a { color: inherit }` in style.css is right for nav and cards and wrong inside
   prose, where a link has to be findable without hovering for it. The :not(.btn)
   matters: without it this beats .btn-primary on specificity and paints a button's
   label ghost-glow on ghost-blue, which reads as a disabled button. */
.page-doc a:not(.btn) {
  color: var(--ghost-glow);
}
.page-doc a:not(.btn):hover {
  text-decoration: underline;
}
.page-doc strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 620px) {
  .page { padding-top: 44px; }
  .page-head h1 { font-size: 1.6rem; }
  .page-doc { padding: 26px 20px; }
}

/* Hostnames read as addresses, not prose — the site has no global code style
   (guide.css's is the guide's), so this is the one rule these pages need. */
.page-doc .mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ── the walkthrough pages ────────────────────────────────────────────────────
   Numbered steps, a comparison table and code, none of which the legal pages
   need. The guide has its own versions of all three in guide.css; these are
   deliberately plainer — a page reached from a search result is read once. */

.page-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.page-steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 26px;
}
.page-steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ghost-glow);
}
.page-steps h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.page-doc figure {
  margin: 16px 0 0;
}
.page-doc figure img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.page-doc figcaption {
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.page-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 12px;
  font-size: 0.92rem;
}
.page-table th,
.page-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
}
.page-table th { color: var(--ink); font-weight: 600; }
.page-table th:first-child,
.page-table td:first-child { padding-left: 0; }

.page-doc pre {
  margin: 0 0 12px;
  padding: 14px 16px;
  overflow-x: auto;
  background: rgba(61, 123, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.page-doc pre,
.page-doc code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
}
.page-doc p code {
  color: var(--ghost-glow);
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

@media (max-width: 560px) {
  /* three columns in a 320px card is about 90px each — pull the type in rather
     than letting every cell become a six-line ribbon */
  .page-table { font-size: 0.85rem; }
  .page-table th,
  .page-table td { padding: 8px 6px; }
  .page-steps > li { padding-left: 34px; }
}
