/* /contact/, /privacy/ and the 404 page on the new design system: loaded on top of site.css (build.mjs, newDesign).
   Contact keeps the brief builder's ids (app.js); privacy keeps its text and headings exactly (analytics team). */

/* ---------- Contact (redesign, 13 Nov 2026) ----------
   Three routes as rows (the action in columns 1 to 9, when to use it in the margin), then the brief: the form in columns 1 to 6,
   its short introduction in 7 to 9. The form prepares an email the visitor sends from their own app (app.js). */
.contact-routes { padding-top: 0; }
.contact-routes::before { display: none; }
.routes { margin-top: var(--s4); }
.routes .row { padding-block: var(--s3); align-items: center; }
.routes .row:last-child { border-bottom: 0; }  /* the brief's section rule follows: one hairline, not two */
.routes .row-title, .route-mail { grid-column: 1 / 10; }
.routes .row-title { font-size: var(--t-h3); }
/* a 44px target at every width (18px titles on phones): padding with an equal negative margin keeps the line's height */
.routes .row-title a { padding-block: 12px; margin-block: -12px; }
.routes .row-side { align-self: center; margin-block: 0; }
.route-mail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
.route-mail .mail-addr { display: inline; min-height: 0; font-weight: inherit; }
.brief-intro { grid-column: 7 / 10; grid-row: 1; align-self: start; }
.brief-intro > * + * { margin-top: var(--s2); }
.brief-intro h2 { font-size: var(--t-h2); font-weight: 600; line-height: 1.15; }
.brief-card { grid-column: 1 / 7; grid-row: 1; max-width: 36em; }
html:not(.has-js) #brief-form { display: none; }
.brief-types { margin: 0 0 var(--s3); padding: 0; border: 0; }
.brief-types legend { margin-bottom: var(--s1); padding: 0; font-weight: 600; }
.brief-types label { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; margin: 0 var(--s1) var(--s1) 0; padding: 0 14px; border: 1px solid var(--rule); border-radius: 6px; cursor: pointer; }
.brief-types label:has(input:checked) { border-color: var(--ink); font-weight: 600; }
.brief-types input { accent-color: var(--ink); margin: 0; }
.brief-actions { margin-top: var(--s3); display: grid; gap: var(--s1); justify-items: start; }
.brief-output { margin-top: var(--s3); }
.brief-output[hidden] { display: none; }
.brief-output h3 { font-size: var(--t-lead); font-weight: 600; }
.brief-output pre { max-width: 100%; margin: var(--s2) 0 0; padding: var(--s2); border: 1px solid var(--rule); border-radius: 2px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.brief-output .actions { margin-top: var(--s2); display: flex; flex-wrap: wrap; gap: var(--s1); }
.small { font-size: var(--t-small); }

/* ---------- Privacy: the legal text in columns 1 to 9 ---------- */
.legal { padding-top: var(--s4); }
.legal > * { max-width: calc((100% - 11 * var(--gap)) / 12 * 9 + 8 * var(--gap)); }
.legal h1 { font-size: 52px; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.legal-date { margin-top: var(--s2); color: var(--muted); }
.legal-summary { margin-top: var(--s3); font-size: var(--t-lead); }
.legal h2 { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); font-size: var(--t-h3); font-weight: 600; line-height: 1.2; }
.legal h2 + *, .legal p + p, .legal p + ul, .legal ul + p { margin-top: var(--s2); }
.legal ul { padding-left: 1.2em; list-style: disc; display: grid; gap: 4px; }
.legal a { text-underline-offset: 4px; }
.legal .cookie-settings { min-height: 44px; font-size: var(--t-body); font-weight: 600; }

/* ---------- 404: four places to go, each a row you can click ---------- */
.nf-links { border-top: 1px solid var(--rule); }
.nf-links li { border-bottom: 1px solid var(--rule); }
.nf-links a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--gap); padding-block: var(--s2); text-decoration: none; }
.nf-links a b { font-size: var(--t-lead); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--muted); }
.nf-links a:hover b, .nf-links a:focus-visible b { text-decoration-color: var(--ink); }
.nf-links a span { color: var(--muted); }

@media (max-width: 899px) {
  .routes { margin-top: var(--s3); }
  .routes .row { padding-block: var(--s2); }
  .routes .row-title { font-size: var(--t-lead); }
  .brief-intro, .brief-card { grid-column: 1 / -1; grid-row: auto; }
  .brief-card { margin-top: var(--s3); max-width: none; }
  .legal > * { max-width: none; }
  .legal h1 { font-size: clamp(32px, 9vw, 36px); }
  .nf-links a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
