/* Signet Preclear — the legal and trust pages (/privacy/, /terms/, /trust/).
   Same monochrome system as the landing page; tokens come from /brand.css.
   These pages are public even while the pre-launch access gate is on. */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }  /* clip, not hidden: hidden would break the sticky header and tabs */
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(5,5,5,.14); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* header — mirrors the landing page */
header.site { display: flex; align-items: center; gap: 6px; padding: 16px 40px; border-bottom: 1px solid var(--hair-2); position: sticky; top: 0; z-index: 40; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
header .spacer { flex: 1; }
header nav { display: flex; gap: 2px; }
header nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 8px 14px; border-radius: var(--r-sm); transition: background .2s var(--ease), color .2s var(--ease); }
header nav a:hover { background: var(--tint); color: var(--ink); }
header nav a[aria-current="page"] { background: var(--ink); color: var(--white); }

/* page head */
.page-head { max-width: 1140px; margin: 0 auto; padding: 72px 40px 40px; }
.eyebrow { margin-bottom: 16px; }
.page-head h1 { font-size: clamp(38px, 5.5vw, 62px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; max-width: 18ch; }
.page-head .lede { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 58ch; }
.meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* document layout: sticky contents rail + body */
.doc { max-width: 1140px; margin: 0 auto; padding: 8px 40px 80px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 13.5px; border-top: 1px solid var(--hair); padding-top: 14px; }
.toc .label { margin-bottom: 10px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--muted); margin-right: 10px; }
.toc a:hover { color: var(--ink); }

.body { max-width: 72ch; }
.body section { padding-top: 8px; margin-bottom: 44px; scroll-margin-top: 90px; }
.body h2 { font-size: 24px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 14px; padding-top: 18px; border-top: 1px solid var(--hair); }
.body h3 { font-size: 16.5px; font-weight: 600; margin: 22px 0 8px; }
.body p, .body li { color: var(--ink-2); }
.body p + p { margin-top: 12px; }
.body ul, .body ol.list { margin: 12px 0 0 22px; }
.body li + li { margin-top: 6px; }
.body strong { color: var(--ink); font-weight: 600; }
.body code { font-family: var(--mono); font-size: .88em; background: var(--tint); padding: 1px 6px; border-radius: 6px; }

/* the plain-language summary box at the top of a legal doc */
.summary { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: 26px 28px; box-shadow: var(--shadow-1); margin-bottom: 44px; }
.summary .label { margin-bottom: 12px; }
.summary ul { list-style: none; margin: 0; }
.summary li { padding-left: 22px; position: relative; color: var(--ink); }
.summary li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 1.5px; background: var(--ink); }

/* tables (data inventory, subprocessors, encryption) */
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--hair-2); }
th { font-family: var(--sans); font-weight: 600; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--card-2); }
tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 500; }

/* status chips — monochrome: solid = in place, outline = in progress, dashed = planned */
.chip { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 980px; white-space: nowrap; border: 1px solid var(--ink); }
.chip.on { background: var(--ink); color: var(--white); }
.chip.progress { background: transparent; color: var(--ink); }
.chip.planned { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--muted); }

/* ── trust portal ── */
.trust-hero { max-width: 1140px; margin: 0 auto; padding: 72px 40px 36px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.trust-hero h1 { font-size: clamp(38px, 5.5vw, 62px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.trust-hero .lede { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 52ch; }
.contact-card { background: var(--ink); color: var(--white); border-radius: var(--r); padding: 26px 28px; }
.contact-card .label { color: rgba(250,250,248,.55); margin-bottom: 12px; }
.contact-card p { font-size: 15px; color: rgba(250,250,248,.82); }
.contact-card a { color: var(--white); font-weight: 500; }
.contact-card dl { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.contact-card dt { color: rgba(250,250,248,.55); }

.tabs { max-width: 1140px; margin: 0 auto; padding: 0 40px; display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); position: sticky; top: 67px; z-index: 30; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.tabs a { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 14px 14px 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); border-bottom-color: var(--hair); }

.band { max-width: 1140px; margin: 0 auto; padding: 56px 40px 8px; scroll-margin-top: 120px; }
.band > h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.025em; }
.band > .lede { margin-top: 10px; color: var(--ink-2); max-width: 64ch; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.stat { border-top: 2px solid var(--ink); padding-top: 14px; }
.stat .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.stat .k { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--hair-2); border-radius: var(--r); padding: 24px 24px 22px; box-shadow: var(--shadow-1); }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card > p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }
.card ul { list-style: none; margin-top: 14px; border-top: 1px solid var(--hair-2); }
.card li { font-size: 14px; padding: 9px 0 9px 24px; border-bottom: 1px solid var(--hair-2); position: relative; color: var(--ink); }
.card li:last-child { border-bottom: 0; padding-bottom: 0; }
.card li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.card li.todo::before { background: transparent; border: 1.5px dashed var(--muted); }
.card li.todo { color: var(--ink-2); }
.card li small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); margin-right: 8px; vertical-align: -1px; }
.legend span.todo::before { background: transparent; border: 1.5px dashed var(--muted); }

.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin-top: 22px; border-top: 1px solid var(--hair); }
.docs a, .docs div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 2px; border-bottom: 1px solid var(--hair); text-decoration: none; font-weight: 500; }
.docs a:hover { background: var(--tint); }
.docs .how { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }

details { border-bottom: 1px solid var(--hair); }
details:first-of-type { border-top: 1px solid var(--hair); margin-top: 22px; }
summary { cursor: pointer; list-style: none; padding: 17px 36px 17px 2px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 22px; font-weight: 300; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); padding: 0 2px 18px; max-width: 72ch; }

/* footer */
footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: 1140px; margin: 40px auto 0; padding: 26px 40px 70px; border-top: 1px solid var(--hair-2); font-size: 12px; color: var(--muted); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .trust-hero { grid-template-columns: 1fr; align-items: start; }
  .grid, .stats { grid-template-columns: repeat(2, 1fr); }
  header.site { padding: 16px 22px; }
}
@media (max-width: 640px) {
  header.site { padding: 12px 16px; gap: 4px; }
  header nav a { padding: 7px 9px; font-size: 13px; }
  .lockup img { height: 22px; }
  .page-head, .trust-hero, .doc, .band, .tabs { padding-left: 16px; padding-right: 16px; }
  .page-head, .trust-hero { padding-top: 44px; }
  .tabs { top: 55px; overflow-x: auto; flex-wrap: nowrap; }
  .tabs a { white-space: nowrap; }
  .grid, .grid.two, .stats, .docs { grid-template-columns: 1fr; }
  footer { padding-left: 16px; padding-right: 16px; }
}
@media print {
  header.site, .toc, .tabs, footer { display: none; }
  .doc { display: block; }
  body { background: #fff; }
}
