/* Text pages (T1 in docs/design/landing-v3.md): /security, /privacy, /terms, /legal/subprocessors, /legal/dpa.
   On top of site.css. Header with eyebrow, h1 60, mono meta row and a one-line lede over a short static dot field;
   a sticky contents list above 1024 px (a <details> below); numbered h2; label/value tables; a "Not yet" callout;
   a 760 px measure at 16/1.6. No motion. expand.py builds the header, the numbers and the contents from plain source. */

.doc-head { position: relative; padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.doc-head .field { bottom: auto; height: 330px; top: -72px; }
.doc-head h1 { font: 600 60px/1.04 var(--sans); letter-spacing: -.04em; margin-top: 16px; text-wrap: balance; }
.doc-head .upd { font: 13px/1.6 var(--mono); color: var(--ink3); margin-top: 22px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.doc-head .upd a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }
.doc-head .lede { font-size: 19px; line-height: 1.5; color: var(--ink2); max-width: 680px; margin-top: 16px; text-wrap: pretty; }
.doc-head .upd + .lede { margin-top: 14px; }

.doc-body { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 100px; padding-top: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; color: var(--ink2); max-height: calc(100vh - 120px); overflow-y: auto; }
.toc-h { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin-bottom: 10px; }
.toc-l + .toc-h { margin-top: 32px; }
.toc a { display: flex; gap: 8px; padding: 6px 0 6px 14px; border-left: 1px solid var(--line2); line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--ink); border-left: 2px solid var(--accent); padding-left: 13px; font-weight: 500; }
.toc .num { font: 500 12px/1.6 var(--mono); color: var(--ink3); flex: none; }
.toc-m { display: none; }

.doc-text { max-width: 760px; font-size: 16px; line-height: 1.6; color: var(--ink2); }
.doc-text > :first-child { margin-top: 0; }
.doc-text h2 { display: flex; gap: 14px; align-items: baseline; font: 600 28px/1.2 var(--sans); letter-spacing: -.025em; color: var(--ink); margin: 56px 0 6px; scroll-margin-top: 96px; }
.doc-text h2 .num { font: 500 13px var(--mono); color: var(--ink3); letter-spacing: 0; flex: none; }
.doc-text h3 { font: 500 18px/1.35 var(--sans); color: var(--ink); margin: 28px 0 4px; }
.doc-text p { margin-top: 12px; }
.doc-text ul, .doc-text ol { margin-top: 12px; padding-left: 22px; }
.doc-text ul { list-style: disc; }
.doc-text ol { list-style: decimal; }
.doc-text li + li { margin-top: 6px; }
.doc-text b, .doc-text strong { color: var(--ink); font-weight: 600; }
.doc-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--line2); border-radius: 2px; }
.doc-text a:hover { text-decoration-color: currentColor; }
.doc-text address { font-style: normal; margin-top: 12px; }
.doc-text code, .doc-text .m { font: 13.5px var(--mono); color: var(--ink); }

/* label / value tables, and the older three-column tables of /privacy */
.scroll { overflow-x: auto; margin-top: 18px; }
.kv, .tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.kv { margin-top: 18px; }
.scroll .kv, .scroll .tbl { margin-top: 0; }
.kv th, .kv td, .tbl th, .tbl td { padding: 13px 16px 13px 0; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.kv tr:last-child > *, .tbl tr:last-child > * { border-bottom: 1px solid var(--line); }
.kv th { width: 220px; font-weight: 400; color: var(--ink3); }
.kv td { color: var(--ink); }
.tbl th { font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); border-top: 0; padding-bottom: 10px; }
.tbl td { color: var(--ink2); }
.tbl td:first-child { color: var(--ink); min-width: 150px; }
.wide-t th:first-child { min-width: 170px; }

/* six summary cells (/security only) */
.sum { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); overflow: hidden; margin: 0; }
.sum > div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--ink2); }
.sum > div:nth-child(3n) { border-right: 0; }
.sum > div:nth-child(n+4) { border-bottom: 0; }
.sum dt { color: var(--ink); font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.sum dd { margin: 0; }

/* the honest gap */
.gap { margin-top: 22px !important; border: 1px solid var(--line2); border-left: 2px solid var(--ink-solid); border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 15px; color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.gap b { font-weight: 600; }
.draft { border-left-color: var(--accent); }

.doc-docs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0 !important; list-style: none !important; }
.doc-docs li { margin: 0 !important; }
.doc-docs a { display: inline-flex; height: 36px; align-items: center; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); text-decoration: none; }
.doc-docs a:hover { background: var(--hover); }

@media (max-width: 1023px) {
  .doc-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .toc { display: none; }
  .toc-m { display: block; margin-bottom: 24px; border: 1px solid var(--line2); border-radius: 12px; padding: 0 16px; font-size: 14px; color: var(--ink2); }
  .toc-m summary { cursor: pointer; padding: 12px 0; color: var(--ink); font-weight: 500; border-radius: 6px; }
  .toc-m ol, .toc-m ul { padding: 0 0 12px; list-style: none; }
  .toc-m a { display: flex; gap: 8px; padding: 5px 0; }
  .toc-m a[aria-current] { color: var(--ink); }
  .toc-m .num { font: 500 12px/1.6 var(--mono); color: var(--ink3); }
}
@media (max-width: 759px) {
  .doc-head { padding: 40px 0 36px; }
  .doc-head h1 { font-size: 40px; }
  .doc-head .lede { font-size: 17px; }
  .doc-text h2 { font-size: 23px; margin-top: 44px; }
  .sum { grid-template-columns: 1fr 1fr; }
  .sum > div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .sum > div:nth-child(2n) { border-right: 0 !important; }
  .sum > div:nth-child(n+5) { border-bottom: 0 !important; }
  .kv, .kv tbody, .kv tr, .kv th, .kv td { display: block; width: auto; }
  .kv tr { border-top: 1px solid var(--line); padding: 12px 0; }
  .kv tr:last-child { border-bottom: 1px solid var(--line); }
  .kv th, .kv td { border: 0 !important; padding: 0; }
  .kv th { font-size: 13.5px; margin-bottom: 2px; }
}
@media print {
  .nav, .site-foot, .toc, .toc-m, .field, body::before { display: none !important; }
  .doc-body { display: block; padding: 0; }
  body { background: #fff; color: #000; }
}
