/*
  FLUXTEE site stylesheet. No build step, no JS, CSP: style-src 'self'. System fonts only (no web font).
  Design contract: plans/261103-2032-fluxtee-legal-simplify-and-ui-redesign/design-contract.md

  Palette (owner-fixed, white/cream -> navy):
  #FFFFFF white (light page)  #F9F8E2 cream (dark-theme text, logo)  #E6F5FA mist-40 (#C1E6F2 at 40% on white)
  #C1E6F2 mist  #A0C4F1 sky  #4F81E0 signal (decor only)
  #3E64B3 cobalt #2C4A88 indigo #1D3265 navy #121F39 deep #0A1B2A night

  WCAG 2.1 contrast of every pair in use (text >= 4.5:1, UI/large >= 3:1):
  light  ink      #121F39 / paper #FFFFFF 16.4 · / panel #E6F5FA 14.7
         ink-soft #2C4A88 / paper 8.6 · / panel 7.7
         link     #3E64B3 / paper 5.7 · / panel 5.1
         button   #FFFFFF on #1D3265 12.4 (hover #2C4A88 8.6) · focus ring #1D3265 / paper 12.4
         icon     #1D3265 on #C1E6F2 9.4 (hover #FFFFFF on #1D3265 12.4)
  dark   ink      #F9F8E2 / paper #0A1B2A 16.3 · / panel #121F39 15.3
         ink-soft #C1E6F2 / paper 13.2 · / panel 12.4
         link     #A0C4F1 / paper 9.7 · / panel 9.1
         button   #0A1B2A on #A0C4F1 9.7 · focus ring #A0C4F1 / paper 9.7
         icon     #A0C4F1 on #1D3265 6.9 (hover #0A1B2A on #A0C4F1 9.7)
  band   light #FFFFFF / dark #F9F8E2 on #1D3265 12.4 / 11.5 · #C1E6F2 on #1D3265 9.4
         button #A0C4F1 vs band 6.9 (UI) · its text #0A1B2A on #A0C4F1 9.7
  foot   light #FFFFFF / dark #F9F8E2 on #121F39 16.4 / 15.3 · link #A0C4F1 9.1 · #C1E6F2 12.4
  decor  #4F81E0: borders, markers, text >= 24px only (3.8 on white, 3.4 on panel, 4.6 on night)
*/

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --paper: #FFFFFF;
  --panel: #E6F5FA;
  --ink: #121F39;
  --ink-soft: #2C4A88;
  --link: #3E64B3;
  --accent: #1D3265;
  --accent-ink: #FFFFFF;
  --accent-hover: #2C4A88;
  --ring: #1D3265;
  --line: #A0C4F1;
  --line-strong: #2C4A88;
  --signal: #4F81E0;
  --band: #1D3265;
  --band-ink: #FFFFFF;
  --band-soft: #C1E6F2;
  --band-btn: #A0C4F1;
  --band-btn-ink: #0A1B2A;
  --foot: #121F39;
  --foot-ink: #FFFFFF;
  --ico-bg: #C1E6F2;
  --ico-ink: #1D3265;
  --foot-soft: #C1E6F2;
  --foot-link: #A0C4F1;

  --font-display: var(--font-text);
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shell: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-pill: 999px;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  --step-4: clamp(2.375rem, 1.4rem + 4.6vw, 5rem);
  --space-sec: clamp(3rem, 2rem + 5vw, 6.5rem);
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --tile: 1440px; /* flow wave tile width = one drift cycle */
  --lift: 0 18px 32px -22px rgba(10, 27, 42, 0.7);
  --tab-pad: 1rem; /* legal tab padding; the first tab is pulled back by the same amount to align text */
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A1B2A;
    --panel: #121F39;
    --ink: #F9F8E2;
    --ink-soft: #C1E6F2;
    --link: #A0C4F1;
    --accent: #A0C4F1;
    --accent-ink: #0A1B2A;
    --accent-hover: #C1E6F2;
    --ring: #A0C4F1;
    --line: #2C4A88;
    --line-strong: #A0C4F1;
    --band-ink: #F9F8E2;
    --foot-ink: #F9F8E2;
    --ico-bg: #1D3265;
    --ico-ink: #A0C4F1;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 4.75rem;
}

html:has(.fx-tabs) { scroll-padding-top: 7.75rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-text);
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; letter-spacing: 0; }

p, ul, ol, dl, address, table { margin: 0 0 1rem; }
address { font-style: normal; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover, a:focus-visible { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

strong { font-weight: 700; }

.fx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.fx-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.fx-skip:focus { top: 1rem; }

.fx-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.fx-main { flex: 1 0 auto; }

/* ---------- Header ---------- */
.fx-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(1px)) {
  .fx-head {
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: blur(12px);
  }
}

.fx-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 0.5rem;
}

.fx-brand {
  display: inline-flex;
  margin-right: auto;
  border-radius: 12px;
  min-height: 2.75rem; /* = pill height minus its 2px border; keeps the brand row 2.75rem + 2px */
  align-items: center;
}

.fx-brand img { width: 144px; }

.fx-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.625rem;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  border-radius: 8px;
}

/* Sliding underline: a bar revealed left to right with clip-path (no transform, no layout shift) */
.fx-nav a::after,
.fx-foot__links a::after,
.fx-tabs a::after {
  content: "";
  position: absolute;
  left: var(--u-x, 0);
  right: var(--u-x, 0);
  bottom: var(--u-y, 8px);
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.3s var(--ease);
}

.fx-nav a { --u-x: 0.625rem; }
.fx-nav a:hover, .fx-nav a:focus-visible { color: var(--link); }

:is(.fx-nav, .fx-foot__links, .fx-tabs) a:is(:hover, :focus-visible, [aria-current="page"])::after {
  clip-path: inset(0);
}

.fx-nav a[aria-current="page"]::after { height: 3px; background: var(--signal); }

.fx-lang {
  display: inline-flex;
  padding: 0.1875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
}

.fx-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 2.375rem;
  padding-inline: 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.fx-lang a { transition: background-color 0.2s, color 0.2s; }
.fx-lang a:not([aria-current]):is(:hover, :focus-visible) { background: var(--panel); color: var(--link); }

.fx-lang a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
}

@media (max-width: 47.99em) {
  /* hide exactly the brand row when stuck: padding-top 0.5rem + row (2.75rem + 2px) + row gap 0.5rem */
  .fx-head { top: calc(-3.75rem - 2px); }
  .fx-head__row > nav:first-of-type { order: 3; flex-basis: 100%; min-width: 0; }
  .fx-nav {
    flex-wrap: nowrap;
    margin-inline: -0.625rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .fx-nav { gap: 0; } /* 4 VI items fit 360px without scrolling */
  .fx-nav li { flex: none; }
  .fx-nav a:focus-visible { outline-offset: -3px; }
  /* tabs: one row that scrolls sideways at large text sizes, like the nav (header stays compact) */
  .fx-tabs ul { overflow-x: auto; scrollbar-width: none; }
  .fx-tabs li { flex: none; }
  .fx-tabs a:focus-visible { outline-offset: -3px; }
}

/* Legal tab strip (privacy/terms only) */
.fx-tabs {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.fx-tabs ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* align the tab strip with the centred 72ch document column (first tab's text on the column edge) */
@media (min-width: 48em) {
  .fx-tabs ul { max-width: 72ch; margin-inline: auto; }
  .fx-tabs li:first-child { margin-left: calc(-1 * var(--tab-pad)); }
}

.fx-tabs a {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 48px;
  padding-inline: var(--tab-pad);
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  --u-x: 0.5rem;
  --u-y: 0;
}

.fx-tabs a::after { height: 3px; background: var(--line-strong); }
.fx-tabs a:is(:hover, :focus-visible) { color: var(--ink); background: var(--paper); }
.fx-tabs a[aria-current="page"] { color: var(--ink); }
.fx-tabs a[aria-current="page"]::after { background: var(--signal); }

/* ---------- Buttons ---------- */
.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transition: translate 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.fx-btn:is(:hover, :focus-visible) {
  translate: 0 -2px;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--lift);
}

.fx-btn:active { translate: none; box-shadow: none; }

/* ---------- Homepage: hero band ---------- */
.fx-hero {
  position: relative;
  overflow: hidden;
  background: var(--band);
  color: var(--band-ink);
  padding-block: clamp(3.5rem, 2rem + 8vw, 8.5rem) clamp(8rem, 5rem + 9vw, 13rem);
}

.fx-hero > .fx-shell { position: relative; z-index: 1; }

/* Hero illustration (decorative phone + chips): hidden on small screens so the CTA stays high,
   second column from 48em; slow float, off under reduced motion (global rule below). */
.fx-hero__art { display: none; }

@media (min-width: 48em) {
  .fx-hero > .fx-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
  }
  .fx-hero__art {
    display: block;
    justify-self: end;
    width: 100%;
    max-width: 30rem;
    height: auto;
    margin-block: -2rem -4rem;
    animation: fx-float 9s ease-in-out infinite alternate;
  }
}

@keyframes fx-float { to { translate: 0 -14px; } }

/* Flow: three ribbon layers drift right-to-left at different speeds (depth), the middle one
   also swells; a paper-coloured wave edge closes the band. Each SVG tiles seamlessly every
   --tile px, so translating by exactly one tile loops with no jump. Continuous by owner decision
   (WCAG 2.2.2 accepted risk: decorative, slow, off under prefers-reduced-motion). */
.fx-flow {
  position: absolute;
  inset: auto 0 0;
  height: clamp(9.5rem, 6rem + 12vw, 17rem);
  overflow: hidden;
  pointer-events: none;
}

.fx-flow span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% + var(--tile));
  background: url("/img/flow-back.svg") repeat-x 0 0 / var(--tile) 100%;
  animation: fx-drift 96s linear infinite;
}

.fx-flow span:nth-child(2) {
  background-image: url("/img/flow-mid.svg");
  animation: fx-drift 58s linear infinite, fx-swell 9s ease-in-out infinite alternate;
}

.fx-flow span:nth-child(3) { background-image: url("/img/flow-front.svg"); animation-duration: 36s; }

/* Wave edges: the hero flows into #services (paper), the tinted section rises into it as a
   panel-coloured wave, and flows out into #company (paper, drifting the other way) */
.fx-flow::after,
.fx-sec--panel::before,
.fx-sec--panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  background: var(--paper);
  -webkit-mask: url("/img/flow-edge.svg") repeat-x 0 calc(100% + 2px) / var(--tile) 320%;
  mask: url("/img/flow-edge.svg") repeat-x 0 calc(100% + 2px) / var(--tile) 320%;
  animation: fx-edge 120s linear infinite;
}

@keyframes fx-drift { to { transform: translateX(calc(-1 * var(--tile))); } }
@keyframes fx-swell { from { translate: 0 -0.5rem; } to { translate: 0 0.75rem; } }
@keyframes fx-edge {
  to { -webkit-mask-position: calc(-1 * var(--tile)) calc(100% + 2px); mask-position: calc(-1 * var(--tile)) calc(100% + 2px); }
}

@media (max-width: 47.99em) {
  :root { --tile: 960px; }
}

.fx-hero h1 {
  max-width: 15ch;
  margin-bottom: 1.5rem;
}

.fx-hero__lede {
  max-width: 38rem;
  color: var(--band-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}

.fx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.fx-hero .fx-btn {
  border-color: var(--band-btn);
  background: var(--band-btn);
  color: var(--band-btn-ink);
}

.fx-hero .fx-btn:is(:hover, :focus-visible) { background: var(--band-ink); border-color: var(--band-ink); }

.fx-hero a:not(.fx-btn) { color: var(--band-ink); font-weight: 600; }
.fx-hero :focus-visible { outline-color: var(--band-ink); }

/* ---------- Homepage: sections ---------- */
.fx-sec { padding-block: var(--space-sec); }
.fx-sec--panel {
  position: relative;
  padding-bottom: calc(var(--space-sec) + 2.5rem);
  background: var(--panel);
}

.fx-sec--panel::before { inset: auto 0 calc(100% - 1px); background: var(--panel); pointer-events: none; }
.fx-sec--panel::after { animation-direction: reverse; }
.fx-sec:has(+ .fx-sec--panel) { padding-bottom: calc(var(--space-sec) + 2rem); } /* room for the rising wave */

.fx-sec__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 3rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.fx-sec__head > * { min-width: 0; }
.fx-sec__head h2 { margin: 0; overflow-wrap: anywhere; } /* long single words at 200% text */
.fx-sec__head p { margin: 0; max-width: 40rem; color: var(--ink-soft); font-size: var(--step-1); }

@media (min-width: 56em) {
  .fx-sec__head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; }
}

/* ---------- Icons (own set, 24px grid, see design contract §8) ---------- */
.fx-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--ico-bg);
  color: var(--ico-ink);
  transition: translate 0.3s var(--ease), background-color 0.3s, color 0.3s;
}

.fx-ico svg, .fx-arrow {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:is(.fx-services li, .fx-pledges li, .fx-id address, .fx-doc section):is(:hover, :focus-within) .fx-ico {
  background: var(--accent);
  color: var(--accent-ink);
}

.fx-arrow { width: 1.25rem; height: 1.25rem; transition: translate 0.2s var(--ease); }
.fx-btn:is(:hover, :focus-visible) .fx-arrow { translate: 3px 0; }

/* Services: three cards on the page colour - outlined, icon tile top-left (pledges are filled with a left bar) */
.fx-services {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-services li {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: translate 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.fx-services li:is(:hover, :focus-within) { border-color: var(--line-strong); box-shadow: var(--lift); }
.fx-services .fx-ico { width: 3rem; height: 3rem; margin-bottom: 0.25rem; border-radius: 14px; }
.fx-services h3, .fx-services p { margin: 0; }
.fx-services p { color: var(--ink-soft); }

@media (min-width: 56em) {
  .fx-services { grid-template-columns: repeat(3, 1fr); }
}

/* Privacy-first: three pledges */
.fx-pledges {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pledge;
}

.fx-pledges li {
  counter-increment: pledge;
  position: relative;
  padding: 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  border-left: 6px solid var(--signal);
  transition: translate 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.fx-pledges li:is(:hover, :focus-within) {
  border-left-color: var(--accent);
  box-shadow: 0 0 0 1px var(--line-strong), var(--lift);
}

.fx-pledges li::before {
  content: counter(pledge, decimal-leading-zero);
  display: flex;
  align-items: center;
  min-height: 2.75rem; /* same row as the icon */
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
  font: 700 var(--step--1)/1 var(--font-display);
  letter-spacing: 0.08em;
}

.fx-pledges p { margin: 0; }

@media (min-width: 56em) {
  /* five commitments: 3 + 2 on a 6-track grid */
  .fx-pledges { grid-template-columns: repeat(6, 1fr); }
  .fx-pledges li { grid-column: span 2; }
  .fx-pledges li:nth-child(n + 4) { grid-column: span 3; }
}

@media (min-width: 40em) and (max-width: 55.99em) {
  .fx-pledges { grid-template-columns: repeat(2, 1fr); }
  .fx-pledges li:last-child { grid-column: 1 / -1; }
}

.fx-pledges .fx-ico { position: absolute; top: 1.5rem; right: 1.5rem; }

/* Company: registration slip */
.fx-id {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.fx-id dl {
  margin: 0;
  padding: 1.5rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  transition: translate 0.3s var(--ease), background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.fx-id address:is(:hover, :focus-within) dl {
  background: var(--panel);
  border-color: var(--signal);
  box-shadow: var(--lift);
}

/* Lifts: keyboard focus always; pointer hover only where hover is real (no stuck lift after a tap) */
.fx-services li:focus-within, .fx-pledges li:focus-within, .fx-id address:focus-within dl { translate: 0 -4px; }
:is(.fx-services li, .fx-pledges li, .fx-id address, .fx-doc section):focus-within .fx-ico { translate: 0 -2px; }

@media (hover: hover) {
  .fx-services li:hover, .fx-pledges li:hover, .fx-id address:hover dl { translate: 0 -4px; }
  :is(.fx-services li, .fx-pledges li, .fx-id address, .fx-doc section):hover .fx-ico { translate: 0 -2px; }
}

.fx-id dl > div {
  position: relative;
  min-height: 3.5rem;
  padding: 0.625rem 0 0.625rem 3rem;
  border-bottom: 1px dashed var(--line);
}

.fx-id .fx-ico { position: absolute; left: 0; top: 0.75rem; width: 2.25rem; height: 2.25rem; border-radius: 10px; }
.fx-id .fx-ico svg { width: 1.25rem; height: 1.25rem; }
.fx-id dl > div:last-child { border-bottom: 0; }

.fx-id dt {
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 600;
}

.fx-id dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

@media (min-width: 56em) {
  .fx-id { grid-template-columns: 5fr 7fr; align-items: start; }
}

/* ---------- Footer ---------- */
.fx-foot {
  background: var(--foot);
  color: var(--foot-ink);
  padding-block: 2rem;
  font-size: var(--step--1);
}

.fx-foot a { color: var(--foot-link); }
.fx-foot :focus-visible { outline-color: var(--foot-ink); }

.fx-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.fx-foot__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.fx-foot__id { margin: 0; color: var(--foot-soft); }
.fx-foot__id span + span::before { content: " · "; }

@media (max-width: 47.99em) {
  .fx-foot__id span { display: block; }
  .fx-foot__id span + span::before { content: none; }
}

/* ---------- Documents (legal, support, delete account) ---------- */
.fx-main--doc { padding-block: clamp(2rem, 1rem + 4vw, 4rem) var(--space-sec); }

.fx-doc { max-width: 72ch; margin-inline: auto; } /* centred column: equal side margins on wide screens */

.fx-doc__intro {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--line-strong);
}

.fx-doc__intro h1 { font-size: var(--step-3); }
.fx-doc__intro p { color: var(--ink-soft); }
.fx-doc__date { font-size: var(--step--1); font-weight: 600; }

.fx-doc section { margin-top: 2.5rem; }

.fx-doc h2 {
  font-size: var(--step-2);
  scroll-margin-top: 1rem;
}

@supports not selector(:has(a)) {
  .fx-doc h2 { scroll-margin-top: 4rem; } /* 4.75rem padding + 4rem > 112px header with tabs */
}

.fx-doc h2:has(> .fx-ico) { display: flex; align-items: center; gap: 0.875rem; }

.fx-doc h3 { margin-top: 1.5rem; }
.fx-doc ul, .fx-doc ol { padding-left: 1.5rem; }
.fx-doc li { margin-bottom: 0.375rem; }
.fx-doc li::marker { color: var(--ink-soft); }

.fx-doc address {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.fx-doc address p { margin: 0; }

.fx-doc__note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border-left: 6px solid var(--signal);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.fx-doc__note > :last-child { margin-bottom: 0; }

.fx-doc__table {
  margin: 0 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fx-doc table {
  width: 100%;
  min-width: 32rem;
  margin: 0;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.fx-doc caption {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
}

.fx-doc th, .fx-doc td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.fx-doc thead th { background: var(--panel); border-top: 0; }
.fx-doc tbody th { font-weight: 600; }

/* ---------- 404 ---------- */
.fx-lost { max-width: 40rem; }
.fx-lost h1 { font-size: var(--step-3); }
.fx-lost .fx-hero__actions { margin-top: 1.5rem; }

/* ---------- Motion & print ---------- */
@media (forced-colors: active) {
  :is(.fx-nav, .fx-tabs, .fx-foot__links) a:is(:hover, :focus-visible, [aria-current="page"]) {
    text-decoration: underline 3px;
    text-underline-offset: 0.3em;
  }
  .fx-lang a[aria-current="page"] { outline: 2px solid CanvasText; outline-offset: -2px; }
}

/* Reduced motion: nothing moves. Waves rest at their drawn position, no lift; hover states
   still change colour, border and underline, instantly. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    translate: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  :root {
    --paper: #fff; --panel: #fff; --ink: #000; --ink-soft: #222; --link: #000;
    --line: #999; --line-strong: #000; --signal: #000; --foot: #fff; --foot-ink: #000;
    --foot-soft: #222; --foot-link: #000;
  }
  body { font-size: 11pt; display: block; }
  .fx-skip, .fx-nav, .fx-lang, .fx-tabs, .fx-foot__links, .fx-hero__actions { display: none; }
  .fx-head { position: static; border: 0; background: none; backdrop-filter: none; }
  .fx-flow, .fx-sec--panel::before, .fx-sec--panel::after, .fx-hero__art { display: none; }
  .fx-hero { background: none; color: #000; padding-block: 1rem; }
  .fx-hero__lede { color: #000; }
  .fx-sec { padding-block: 1rem; }
  .fx-doc { max-width: none; }
  .fx-doc a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .fx-doc section, .fx-doc__table, .fx-pledges li { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}
