/* Shared by the legal, support and 404 pages (the landing keeps its own inline styles). Every rule
   comes from the approved landing draft (web/src/draft-approved.html), with the old green replaced by
   #1F5C39 (decision 3) and links in cream for contrast (saffron on verde is 3.77:1). */
:root {
  --saffron: #F2A227;
  --ink: #2A2018;
  --pimenton: #E8502E;
  --verde: #1F5C39;
  --night: #17110C;
  --cream: #FBF3E6;
  --g: #1F5C39;
  --f-d: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: #1F5C39; color: var(--cream); font-family: var(--f-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ul, dl { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
.label { font: 500 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }

footer .in { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 500 14px/1 var(--f-body); }
footer nav a { text-decoration: none; padding: 15px 0; }
footer nav a:hover { text-decoration: underline; }
footer small { font: 500 13px/1.3 var(--f-mono); }

.docs { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 104px); }
.doc { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; font: 400 17px/1.65 var(--f-body); }
.doc .back { justify-self: start; font: 600 15px/1 var(--f-body); text-decoration: none; padding: 12px 16px; margin-left: -16px; border-radius: 999px; transition: background .25s; }
.doc .back:hover { background: rgba(251,243,230,.1); }
.doc .label { color: var(--cream); margin-top: 12px; }
.doc h1 { font: 800 clamp(44px, 6vw, 80px)/.95 var(--f-d); font-stretch: 80%; letter-spacing: -0.03em; margin: 4px 0 12px; }
.doc h2 { font: 800 clamp(26px, 2.6vw, 34px)/1.05 var(--f-d); font-stretch: 84%; margin: 28px 0 4px; }
.doc h3 { font: 700 20px/1.25 var(--f-body); margin: 16px 0 0; }
.doc p, .doc ul { margin: 0; }
.doc ul { padding-left: 1.2em; display: grid; gap: 8px; }
.doc li { list-style: disc; }
.doc b, .doc strong { font-weight: 700; }
.doc blockquote { margin: 0; padding: 16px 20px; border-left: 4px solid var(--saffron); background: rgba(23,17,12,.18); border-radius: 0 12px 12px 0; display: grid; gap: 10px; }
.doc .tbl { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(251,243,230,.2); }
.doc th { font-weight: 700; border-bottom: 2px solid var(--cream); }
/* phones: each row becomes a block, each cell names its column (data-label), so nothing scrolls sideways */
@media (max-width: 600px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  /* stacked, the cells read as paragraphs, so they take the paragraphs' size and spacing */
  .doc table { font-size: inherit; line-height: inherit; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc tr { padding: 14px 0; border-bottom: 1px solid rgba(251,243,230,.2); }
  .doc td { padding: 4px 0; border: 0; }
  .doc td::before { content: attr(data-label); display: block; font: 500 12px/1.6 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(251,243,230,.85); } /* 5.71:1 on #1F5C39 */
}
.doc a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.doc .lead-in { font-size: 20px; }
.doc .mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 18px; background: rgba(23,17,12,.2); font: 600 clamp(20px, 2.4vw, 28px)/1.2 var(--f-body); }
.doc .mail span { user-select: all; }
.doc .mail button { appearance: none; border: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--ink); cursor: pointer; transition: transform .2s; }
.doc .mail button:hover { transform: scale(1.06); }
.doc .mail button svg { width: 20px; height: 20px; }
.doc .mail .i-ok, .doc .mail button.done .i-copy { display: none; }
.doc .mail button.done .i-ok { display: block; }
.doc details { border-bottom: 1px solid rgba(251,243,230,.2); padding: 6px 0; }
.doc summary { cursor: pointer; font: 700 19px/1.3 var(--f-body); padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.doc summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: .8; transition: transform .3s; }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc details p { padding: 0 0 14px; }
.doc .faq-tl { padding: 6px 0 20px; max-width: 460px; }

.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; width: 100%; position: relative; }
.tl-line { position: absolute; left: 31px; top: 0; width: 2px; height: 0; background: var(--saffron); transform: scaleY(0); transform-origin: top; transition: transform .8s cubic-bezier(.45,0,.2,1); border-radius: 2px; }
.tl li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; padding: 10px 0; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .6s cubic-bezier(.32,.72,0,1); }
.tl li.on { opacity: 1; transform: none; }
.tl li i { justify-self: center; z-index: 1; font: 600 12px/1 var(--f-mono); font-style: normal; padding: 7px 9px; border-radius: 999px; background: var(--g); border: 1.5px solid var(--cream); white-space: nowrap; }
.tl li.on i { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.tl li span { display: grid; gap: 2px; font: 500 15px/1.35 var(--f-body); }
.tl li span b { font: 800 22px/1.05 var(--f-d); font-stretch: 82%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
