/* Gaffo AI: the trust pages (/security, /privacy, /terms, /refunds). Uses tokens.css, base.css, y2k.css, suite.css. */

/* ---------- shared: page head meta, draft box, to-do marks ---------- */
/* .page-head's 900px max-width would centre the head on .wrap; keep it on the page's left edge, like the text below */
.page-head.wrap { max-width: var(--max); }
.page-head.wrap > * { max-width: 900px; }
.page-head .meta .when { font-size: var(--t-small); color: var(--ink-3); }
.draft-box { display: grid; gap: 10px; max-width: 70ch; margin-top: 8px; }
.draft-box p { color: var(--ink-2); }
.todo { padding: .05em .35em; border-radius: 4px; background: var(--green-wash); color: var(--green-hi); font-size: .95em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- legal documents: a sticky contents list beside the text at desktop ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: clamp(48px, 6vw, 88px); }
.doc .prose { max-width: 70ch; }
.doc .prose > h2:first-child { margin-top: 0; }
.doc .prose h2 { font-size: clamp(1.375rem, 1.15rem + .6vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15; }
.toc { align-self: start; }
.toc .px-label { margin-bottom: 14px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: var(--t-small); line-height: 1.3; transition: color var(--d-hover) ease, background-color var(--d-hover) ease; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--ink); background: var(--panel); } }
@media (min-width: 1024px) {
  .doc.has-toc { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
  .doc.has-toc .toc { position: sticky; top: 96px; }
  .doc.has-toc .toc a { padding-left: 0; }
  @media (hover: hover) and (pointer: fine) { .doc.has-toc .toc a:hover { padding-left: 0; background: transparent; } }
}
@media (max-width: 1023px) {
  .toc { padding: 18px 20px; border-radius: var(--r-card); background: var(--bg-2); }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
  .toc a { padding-left: 0; }
}

/* tables inside legal text use the full text column */
.prose .table-wrap { margin-top: 1.4em; }
.prose .table { font-size: .9375rem; }
.prose .table td, .prose .table th { line-height: 1.45; }
.prose .table-wrap + p { margin-top: 1.2em; }
/* small screens: each row becomes a block, each cell labelled from its column (data-k) */
@media (max-width: 760px) {
  .prose .table-wrap { overflow: visible; }
  .prose .table, .prose .table tbody, .prose .table tr, .prose .table th, .prose .table td { display: block; width: auto; }
  .prose .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose .table tr { padding: 16px 18px; }
  .prose .table tbody tr + tr { border-top: 1px solid var(--edge); } /* taste-skill-ignore: row separator of a real data table */
  .prose .table th, .prose .table td { padding: 0; border: 0; }
  .prose .table td { margin-top: 10px; }
  .prose .table td[data-k]::before { content: attr(data-k); display: block; margin-bottom: 2px; font-size: .8125rem; font-weight: 600; color: var(--ink-3); }
}

/* ---------- /security ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--panel); color: var(--ink-2); text-decoration: none; font-size: var(--t-small); transition: color var(--d-hover) ease, background-color var(--d-hover) ease, transform var(--d-press) var(--ease-out); }
.jump a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .jump a:hover { color: var(--ink); background: var(--panel-2); } }

.sec { scroll-margin-top: 80px; }
.sec .s-head { max-width: 820px; }
.split { display: grid; gap: clamp(40px, 5vw, 80px); align-items: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.wide-r { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .split .stick { position: sticky; top: 96px; }
}

/* claims: short, checkable statements, one per row, separated by space */
.claims { list-style: none; display: grid; gap: 30px; max-width: 60ch; }
.claims li { position: relative; padding-left: 26px; }
.claims li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--green); }
.claims li.caveat::before { background: transparent; border: 2px solid var(--ink-3); }
.claims h3 { font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.25; }
.claims p { margin-top: 6px; color: var(--ink-2); }
.claims code { font: 500 .9em/1 var(--f-mono); color: var(--ink); background: var(--panel-2); padding: .15em .35em; border-radius: 4px; }

/* "what Gaffo can reach": a layer stack with switches (suite.css .layers / .layer / .sw-i) */
.reach .win-bar .px-label { color: var(--green); }
.reach .layers { list-style: none; }
.reach .layer { grid-template-columns: 22px 22px 28px minmax(0, 1fr) auto; gap: 4px; height: auto; min-height: 58px; padding: 10px 14px 10px 10px; }
.reach .layer .n { display: grid; gap: 3px; white-space: normal; padding-left: 6px; }
.reach .layer .n b { color: var(--ink); font: 600 .9375rem/1.25 var(--f-text); }
.reach .layer .n small { color: var(--ink-3); font-size: .8125rem; line-height: 1.35; }
.reach .layer .st { justify-self: end; padding-left: 10px; font-size: .9375rem; color: var(--ink-2); white-space: nowrap; }
.reach .layer .st.on { color: var(--green); }
.reach .layer.sel .n small, .reach .layer.sel .idx { color: var(--ink-2); }
.reach .layer.off .n b { color: var(--ink-2); }
.reach .layer.off { background: var(--well); }
.reach .layer .idx { font-size: .75rem; }
.reach .sw-i, .reach .sw-i svg { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .reach .layer { grid-template-columns: 20px 20px minmax(0, 1fr); row-gap: 4px; padding-right: 12px; }
  .reach .layer .idx { display: none; }
  .reach .layer .st { grid-column: 3; justify-self: start; padding-left: 6px; font-weight: 600; }
}
.reach .foot-note { padding: 12px 14px; font-size: .8125rem; color: var(--ink-3); background: var(--panel-2); }

/* the approval prompt, as the Gaffo panel shows it (decorative; the claims carry the text) */
.ask { margin-top: clamp(40px, 5vw, 64px); }
.ask .gp-chat { gap: 12px; padding: 14px; }
.ask .msg { max-width: 100%; font-size: .8125rem; }
.ask-card { display: grid; gap: 10px; padding: 12px; border-radius: 10px; background: var(--panel-2); }
.ask-card .q { color: var(--ink); font-weight: 600; font-size: .8125rem; }
.ask-card pre { margin: 0; padding: 10px 12px; overflow: hidden; border-radius: var(--r-ui); background: var(--well); font: 500 .75rem/1.6 var(--f-mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.ask-card pre .c { color: var(--ink-3); }
.ask-card pre .hl { color: var(--green-hi); }
.ask-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-btns span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 7px; font-weight: 600; font-size: .75rem; background: var(--panel-3); color: var(--ink); }
.ask-btns span.yes { background: var(--green); color: var(--green-ink); }

/* your media: what stays, what is sent, what the AI sees */
.media-lead { max-width: 62ch; font-size: var(--t-lead); line-height: 1.45; color: var(--ink); }
.media-lead + p { margin-top: 18px; max-width: 62ch; color: var(--ink-2); }
.mt { margin-top: clamp(40px, 5vw, 64px); }
.mt .table th[scope="row"] { width: 18%; }
.mt .table td { width: 27%; }
.mt .table td.ai { color: var(--ink); }
@media (max-width: 760px) {
  .mt .table-wrap { overflow: visible; border: 0; background: transparent; }
  .mt .table, .mt .table tbody, .mt .table tr, .mt .table th, .mt .table td { display: block; width: auto; }
  .mt .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mt .table tbody { display: grid; gap: 12px; }
  .mt .table tr { padding: 16px 18px; border-radius: var(--r-card); background: var(--bg-2); }
  .mt .table th, .mt .table td { padding: 0; border: 0; }
  .mt .table th[scope="row"] { width: auto; font-size: 1.0625rem; margin-bottom: 8px; }
  .mt .table td { width: auto; margin-top: 10px; }
  .mt .table td::before { content: attr(data-k); display: block; margin-bottom: 2px; font-size: .8125rem; font-weight: 600; color: var(--ink-3); }
}

/* the life of an upload, on a small timeline (suite.css .tl kit) */
.life { margin: clamp(40px, 5vw, 64px) 0 0; }
.life .tl { --head: 88px; --row: 34px; }
.life .tl-head b { width: auto; font: 600 .6875rem/1 var(--f-text); color: var(--ink-2); }
.life .clip { font-size: .6875rem; padding: 7px 7px; }
.life .clip.cut { background: var(--well); color: var(--pink); box-shadow: inset 0 0 0 2px var(--pink); }
.life .tl-ruler .tick { white-space: nowrap; }
.life .mark { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--green); z-index: 3; }
.life .mark span { position: absolute; top: 3px; left: 6px; padding: 3px 6px; border-radius: 4px; background: var(--green); color: var(--green-ink); font: 600 .625rem/1 var(--f-text); white-space: nowrap; }
@media (max-width: 560px) {
  .life .tl { --head: 52px; }
  .life .win-bar .px-label, .life .tl-ruler .tick.wide, .life .tl-corner .tc { display: none; }
  .life .clip { font-size: 0; padding: 0; } /* too narrow for words: the lanes speak through their colours and the note below */
  .life .tl-ruler .tick:last-child { left: auto !important; right: 4px; transform: none; }
}
.life figcaption { margin-top: 12px; color: var(--ink-3); font-size: var(--t-small); }

/* what we keep: retention table with status pills */
.keep .table th[scope="row"] { width: 34%; }
.keep .table td:last-child { width: 26%; }
.keep .table small { display: block; margin-top: 4px; color: var(--ink-3); font-size: .8125rem; }
.keep .badge { height: auto; min-height: 24px; padding: 4px 10px; font-size: .8125rem; white-space: normal; line-height: 1.2; }
.keep .badge.open { border-style: dashed; color: var(--ink); }
@media (max-width: 760px) {
  .keep .table-wrap { overflow: visible; }
  .keep .table, .keep .table tbody, .keep .table tr, .keep .table th, .keep .table td { display: block; width: auto; }
  .keep .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .keep .table tr { padding: 16px 18px; }
  .keep .table tbody tr + tr { border-top: 1px solid var(--edge); } /* taste-skill-ignore: row separator of a real data table */
  .keep .table th, .keep .table td { padding: 0; border: 0; }
  .keep .table th[scope="row"], .keep .table td:last-child { width: auto; }
  .keep .table td { margin-top: 8px; }
}

/* accounts: a spec panel styled like effect controls (stopwatch on = in place today) */
.spec { max-width: 640px; }
.spec dl { margin: 0; }
.spec[data-ui] .row { display: grid; grid-template-columns: 16px minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; align-items: start; padding: 13px 14px; border-bottom: 1px solid var(--edge); }
.spec[data-ui] .row:last-child { border-bottom: 0; }
.spec .stopwatch { margin-top: 4px; }
.spec dt { color: var(--ink-2); font-size: .9375rem; line-height: 1.4; }
.spec dd { margin: 0; color: var(--green-hi); font-size: .9375rem; line-height: 1.4; }
@media (max-width: 560px) {
  .spec[data-ui] .row { grid-template-columns: 16px minmax(0, 1fr); }
  .spec dd { grid-column: 2; }
}

/* payments and the AI provider: two different surfaces side by side */
.duo { display: grid; gap: 20px; }
@media (min-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.duo .card { padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.duo h3 { font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.1; }
.duo .big { font: 600 clamp(1.25rem, 1.05rem + .7vw, 1.625rem)/1.25 var(--f-display); letter-spacing: -0.02em; color: var(--ink); max-width: 30ch; }
.duo p { color: var(--ink-2); }
.duo ul { list-style: none; display: grid; gap: 10px; }
.duo li { position: relative; padding-left: 20px; color: var(--ink-2); }
.duo li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--green-lo); }
.none-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 20px; padding: 18px 22px; border-radius: var(--r-card); background: var(--bg-2); }
.none-row p { color: var(--ink-2); }
.none-row strong { color: var(--ink); font-weight: 600; }

/* what we're still building: an honest list in its own box */
.building { position: relative; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-card); background: var(--bg-2); }
.building > .px-label { position: absolute; top: 18px; right: 20px; }
.building h2 { font-size: var(--t-h2); max-width: 16ch; }
.building .lead { margin-top: 18px; color: var(--ink-2); max-width: 52ch; }
.todo-list { list-style: none; display: grid; gap: 4px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 1024px) {
  .building { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(40px, 5vw, 80px); align-items: start; }
  .building .b-head { position: sticky; top: 96px; }
  .building .todo-list { margin-top: 0; }
  .building .todo-list li:first-child { padding-top: 0; }
}
.todo-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
.todo-list .box { width: 14px; height: 14px; margin-top: 4px; border-radius: 3px; border: 2px solid var(--ink-3); }
.todo-list h3 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }
.todo-list p { margin-top: 4px; color: var(--ink-2); max-width: 70ch; }
.todo-list p em { font-style: normal; color: var(--ink); }

.closing { display: grid; gap: 16px; max-width: 62ch; }
.closing h2 { font-size: var(--t-h3); letter-spacing: -0.02em; }
.closing p { color: var(--ink-2); }
.closing a:not(.link-arrow) { color: var(--ink); text-decoration-color: var(--green-lo); }
.closing .links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .jump a:active { transform: none; }
}
/* the last short section: no double gap before the footer */
.section.closing-sec { padding-top: clamp(80px, 9vw, 128px); padding-bottom: 0; }
/* surfaces on these pages are defined by their fill, not a 1px outline */
.duo .card, .mt .table-wrap, .keep .table-wrap { border-color: transparent; }
