/*
 * Content pages in the 2026-09-20 look: contact, terms of service, 404.
 * Loaded on top of css/fmx.css.
 *
 * Same method as css/fmx-account.css: the class names are the ones the markup already carries
 * (cx-page, cx-h1, cx-prose, ct-form, nf-code...). They are restyled here rather than renamed, so
 * the pages themselves change only their <link> and <script> lines. The contact form still posts to
 * Netlify exactly as before.
 */

/* ── the page frame the markup inherited ──────────────────────────────────────────────────── */
.cx-page { padding-block: clamp(30px, 4.4vw, 58px) clamp(46px, 6vw, 86px); }
/* the head spans the page like the content below it (its .cx-wrap centres on the same 1280 px),
   only its text is held to a reading width; it was capped whole at 72ch and sat flush left */
.cx-page-head { padding-top: clamp(30px, 4.4vw, 58px); margin-bottom: clamp(24px, 3.2vw, 40px); }
.cx-page-head .cx-wrap > * { max-width: 72ch; }
.cx-h1 {
  font-family: Manrope, sans-serif; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.06; margin: 10px 0 12px; color: var(--ink);
}
.cx-lede { font-size: 15px; line-height: 1.62; color: var(--body); margin: 0; max-width: 66ch; }

/* long-form text: terms, and anything else that is simply read */
.cx-prose { max-width: 76ch; font-size: 14px; line-height: 1.75; color: var(--body); }
.cx-prose h2 {
  font-family: Manrope, sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); margin: 30px 0 10px;
}
.cx-prose h3 { font-family: Manrope, sans-serif; font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 20px 0 7px; }
.cx-prose p, .cx-prose li { margin: 0 0 11px; }
.cx-prose ul, .cx-prose ol { margin: 0 0 14px; padding-left: 20px; }
.cx-prose a { color: var(--blue); }
.cx-prose strong { color: var(--ink); font-weight: 600; }
.cx-prose hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.tos-content { max-width: 76ch; }
.tos-updated { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--mute); margin: 0 0 8px; }

/* form controls, written by the contact page and by the account forms before it */
.cx-field { display: grid; gap: 6px; }
.cx-field label { font-size: 12.5px; font-weight: 600; color: var(--body); }
.cx-field input, .cx-field select, .cx-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--ink); font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 14px;
}
.cx-field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.cx-field input:focus, .cx-field select:focus, .cx-field textarea:focus {
  outline: 2px solid rgba(27,77,166,.35); outline-offset: 1px; border-color: var(--blue);
}

/* ── contact ──────────────────────────────────────────────────────────────────────────────── */
.ct-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
.ct-info { display: grid; border-top: 1px solid var(--line); }
.ct-item { padding: 15px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.ct-item p { margin: 0; color: var(--body); font-size: 13px; line-height: 1.6; }
.ct-item a { color: var(--blue); font-size: 13px; text-decoration: none; }
.ct-item a:hover { text-decoration: underline; }
.ct-form {
  display: grid; gap: 14px; padding: clamp(18px, 2.4vw, 26px); background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(11,27,43,.05), 0 16px 40px rgba(11,27,43,.07);
}
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-send { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ── 404 ──────────────────────────────────────────────────────────────────────────────────── */
.nf { min-height: calc(100vh - 54px - 240px); display: flex; align-items: center; padding-block: 56px; }
.nf-code {
  font-family: Manrope, sans-serif; font-size: clamp(52px, 8vw, 92px); font-weight: 800;
  letter-spacing: -.055em; line-height: .9; color: var(--blue); margin: 8px 0 0;
}
.nf-term { margin: 18px 0 24px; max-width: 40em; font-size: 13.5px; line-height: 1.8; color: var(--body); }
.nf-term b { color: #9A3412; font-weight: 600; }
.nf-term .ok { color: var(--teal); font-weight: 600; }
.nf-acts { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .ct-grid, .ct-row { grid-template-columns: 1fr; }
}
