/* KTO — homepage theme for the content pages
 * -------------------------------------------
 * The city, quartier, brand, comparison, service and legal pages are built on
 * two older templates whose look predates the homepage redesign: narrow columns,
 * small blue uppercase h2s with a hairline under them, a black CTA slab. Next
 * to index.html they read as a different site.
 *
 * This file retunes those templates onto the homepage's design system WITHOUT
 * touching a single page's markup — every selector below targets classes the
 * pages already ship. Nothing is renamed, no copy moves, so the SEO content and
 * the structured data are untouched.
 *
 *   Family A — the classic template: h1 / .lede / .meta / section > h2 /
 *              .facts / .cta / .neighborhoods           (~184 pages)
 *   Family B — the product landing template: .seo-main / .seo-kicker /
 *              .seo-lede / .seo-proof / .seo-card / .seo-cta   (~34 pages)
 *
 * Loaded after each page's inline <style> and after kto-polish.css, so plain
 * element selectors here win on source order and class selectors win outright.
 * Companion: kto-reveal.js adds the homepage's scroll-in animation.
 */

body.kto-themed {
  --kt-gap: clamp(48px, 6vw, 88px);
}

/* ======================================================================
 * FAMILY A — classic content template
 * ==================================================================== */

body.kto-themed main {
  max-width: 1100px;
  padding-inline: clamp(20px, 5vw, 80px);
  padding-block: clamp(44px, 5vw, 72px) clamp(64px, 7vw, 104px);
}

/* --- Coloured hero ---------------------------------------------------
 * Modelled on partenaires.html: a dark gradient band with two soft colour
 * glows, a translucent pill, and a gold italic accent in the title. The
 * heading block is wrapped into .kt-hero by kto-reveal.js — no page markup
 * changes. It is a rounded card rather than a full-bleed band on purpose:
 * these 208 pages have wildly different shells, and the viewport-width trick
 * needed for full bleed either creates a horizontal scrollbar or requires an
 * overflow clip that would break the sticky sidebar.
 * ------------------------------------------------------------------- */
body.kto-themed .kt-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: #fff;
  border-radius: 20px;
  padding: clamp(40px, 5vw, 68px) clamp(26px, 4vw, 60px);
  margin-bottom: var(--kt-gap);
}
body.kto-themed .kt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 30%, rgba(43,143,212,0.26) 0%, transparent 58%),
    radial-gradient(circle at 82% 78%, rgba(201,169,97,0.16) 0%, transparent 55%);
}
body.kto-themed .kt-hero { text-align: center; }
body.kto-themed .kt-hero > h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 auto;
  max-width: 22ch;
}
body.kto-themed .kt-hero > h1 em {
  font-family: 'Montserrat', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold, #c9a961);
}
body.kto-themed .kt-hero > h1 strong { font-weight: 700; color: #fff; }

body.kto-themed .kt-hero-lede {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  max-width: 660px;
  margin: 22px auto 0;
}
body.kto-themed .kt-hero-lede strong { color: #fff; }
body.kto-themed .kt-hero-lede a { color: var(--gold, #c9a961); }

/* The kicker / "mis à jour" line becomes the translucent pill badge. */
body.kto-themed .kt-hero-pill {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 16px;
  border-radius: 99px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0 0 20px;
  width: auto;
}
/* When the pill follows the title (the classic template's date line) it sits under it. */
body.kto-themed .kt-hero > h1 ~ .kt-hero-pill { margin: 26px 0 0; }
body.kto-themed .kt-hero-pill::after,
body.kto-themed .kt-hero-pill::before { display: none; }


/* --- Sections --------------------------------------------------------
 * The homepage pairs a small blue rule with a large Montserrat title. These
 * pages only carry an h2, so the rule is drawn with ::before — same signature,
 * no markup change. The h2 keeps a mid scale: a page here has six to eight of
 * them in one column, where the homepage has six on the whole page. */
body.kto-themed main > section { margin-bottom: var(--kt-gap); }

body.kto-themed main > section > h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.3px;
  text-transform: none;
  color: var(--black, #0a0a0a);
  border-bottom: none;
  padding-bottom: 0;
  margin: 0 0 18px;
  position: relative;
  padding-top: 20px;
}
body.kto-themed main > section > h2::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 40px; height: 2px;
  background: var(--kto-blue, #1a6fb8);
}
body.kto-themed main > section > h2 em {
  font-style: italic;
  color: var(--kto-blue, #1a6fb8);
}
body.kto-themed main > section p,
body.kto-themed main > section ul,
body.kto-themed main > section ol {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-600, #555);
  max-width: 760px;
}
body.kto-themed main > section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--black, #0a0a0a);
  margin: 26px 0 10px;
}

/* --- List items → the partenaires blue check bullets ------------------
 * These pages lean heavily on bullet lists (services, conditions, quartiers),
 * and a default grey disc is the single biggest source of the "pale" look.
 * Only unordered, unclassed lists are converted: .neighborhoods keeps its
 * chips and any list the page styles itself is left alone. */
body.kto-themed main > section ul:not([class]) {
  list-style: none;
  padding-inline-start: 0;
}
body.kto-themed main > section ul:not([class]) > li {
  position: relative;
  padding: 12px 0 12px 34px;
  padding-inline-start: 34px;
  padding-inline-end: 0;
  border-bottom: 1px solid var(--gray-200, #e8e8e8);
  margin-bottom: 0;
}
body.kto-themed main > section ul:not([class]) > li:last-child { border-bottom: none; }
body.kto-themed main > section ul:not([class]) > li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 16px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--kto-blue, #1a6fb8)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}
body.kto-themed main > section ul:not([class]) > li strong { color: var(--black, #0a0a0a); font-weight: 700; }

/* Ordered lists keep their numbers, but in KTO blue. */
body.kto-themed main > section ol:not([class]) { list-style: none; counter-reset: ktli; padding-inline-start: 0; }
body.kto-themed main > section ol:not([class]) > li {
  counter-increment: ktli;
  position: relative;
  padding: 12px 0 12px 38px;
  padding-inline-start: 38px;
  padding-inline-end: 0;
  border-bottom: 1px solid var(--gray-200, #e8e8e8);
}
body.kto-themed main > section ol:not([class]) > li:last-child { border-bottom: none; }
body.kto-themed main > section ol:not([class]) > li::before {
  content: counter(ktli);
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--kto-blue, #1a6fb8);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Facts box → the homepage's bordered card ------------------------- */
body.kto-themed .facts {
  background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
  border: 1px solid #d8e7f4;
  border-inline-start: 1px solid #d8e7f4;
  border-radius: 18px;
  padding: 32px 34px;
  margin: 8px 0 var(--kt-gap);
}
body.kto-themed .facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4px 40px;
}
body.kto-themed .facts dt {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--kto-blue, #1a6fb8);
  margin-top: 18px;
}
body.kto-themed .facts dt:first-of-type { margin-top: 0; }
body.kto-themed .facts dd {
  font-size: 15px;
  line-height: 1.7;
  color: var(--black, #0a0a0a);
  margin: 4px 0 0;
}

/* --- Neighbourhood chips → the homepage's pill links ------------------ */
body.kto-themed .neighborhoods { gap: 9px; display: flex; flex-wrap: wrap; }
body.kto-themed .neighborhoods li {
  background: #eff6ff;
  border: 1px solid #d8e7f4;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--kto-blue, #1a6fb8);
  transition: background .18s ease, border-color .18s ease;
}
body.kto-themed .neighborhoods li:hover {
  background: #dbeafe;
  border-color: var(--kto-blue, #1a6fb8);
}

/* --- Closing CTA → the homepage's light band, not a black slab -------- */
body.kto-themed .cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #0a0a0a 0%, #16213e 100%);
  color: #fff;
  border-radius: 20px;
  padding: clamp(44px, 5vw, 68px) clamp(24px, 4vw, 56px);
  margin-top: var(--kt-gap);
  text-align: center;
}
body.kto-themed .cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 25% 20%, rgba(43,143,212,0.24) 0%, transparent 60%),
    radial-gradient(circle at 80% 85%, rgba(201,169,97,0.14) 0%, transparent 55%);
}
body.kto-themed .cta h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: #fff;
  margin: 0 0 14px;
}
body.kto-themed .cta h3 em {
  font-family: 'Montserrat', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold, #c9a961);
}
body.kto-themed .cta p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 28px;
}
body.kto-themed .cta p strong { color: #fff; }
body.kto-themed .cta a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  margin: 0 5px 8px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
body.kto-themed .cta a.btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-1px);
}
/* WhatsApp stays the lead action and keeps its own colour. */
body.kto-themed .cta a.btn.wa {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}
body.kto-themed .cta a.btn.wa:hover { background: #1da851; border-color: #1da851; }

/* --- Comparison tables ------------------------------------------------ */
body.kto-themed .compare-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
body.kto-themed .compare-table th,
body.kto-themed .compare-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--gray-200, #e8e8e8);
  color: var(--gray-600, #555);
}
body.kto-themed .compare-table thead th {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--kto-blue, #1a6fb8);
  border-bottom: none;
}
body.kto-themed .compare-table thead th:first-child { border-start-start-radius: 10px; }
body.kto-themed .compare-table thead th:last-child  { border-start-end-radius: 10px; }
body.kto-themed .compare-table tbody tr:nth-child(even) { background: #f8fbff; }

/* ======================================================================
 * FAMILY B — product landing template (.seo-main)
 * ==================================================================== */

body.kto-themed .seo-main {
  max-width: 1240px;
  padding: clamp(44px, 5vw, 72px) clamp(20px, 5vw, 80px) clamp(64px, 7vw, 104px);
}
body.kto-themed .seo-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--kto-blue, #1a6fb8);
  font-weight: 500;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
body.kto-themed .seo-kicker::after {
  content: '';
  height: 1px; width: 40px;
  background: var(--kto-blue, #1a6fb8);
}
body.kto-themed .seo-main h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}
body.kto-themed .seo-main h1 em { font-style: italic; color: var(--kto-blue, #1a6fb8); }
body.kto-themed .seo-lede {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-600, #555);
  max-width: 720px;
  margin: 0 0 34px;
}

/* The four proof tiles become the homepage's "L'excellence KTO" band. */
body.kto-themed .seo-proof {
  gap: 1px;
  background: var(--gray-200, #e8e8e8);
  border: 1px solid var(--gray-200, #e8e8e8);
  border-radius: 0;
  margin: 34px 0 var(--kt-gap);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
body.kto-themed .seo-proof div {
  background: var(--white, #fafafa);
  border: none;
  border-radius: 0;
  padding: 30px 26px;
  text-align: center;
  transition: background .2s ease;
}
body.kto-themed .seo-proof div:hover { background: #f4f9fd; }
body.kto-themed .seo-proof strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--kto-blue, #1a6fb8);
  margin-bottom: 6px;
}
body.kto-themed .seo-proof span { font-size: 13px; line-height: 1.7; color: var(--gray-600, #555); }

body.kto-themed .seo-section { margin-top: var(--kt-gap); }
body.kto-themed .seo-section > h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--black, #0a0a0a);
  margin: 0 0 22px;
  position: relative;
  padding-top: 20px;
}
body.kto-themed .seo-section > h2::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 40px; height: 2px;
  background: var(--kto-blue, #1a6fb8);
}

/* Product cards get the homepage's lift-on-hover treatment. */
body.kto-themed .seo-grid { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
body.kto-themed .seo-card {
  border: 1px solid var(--gray-200, #e8e8e8);
  border-radius: 14px;
  transition: transform .3s cubic-bezier(0.4,0,0.2,1), box-shadow .3s ease, border-color .3s ease;
}
body.kto-themed .seo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(26,111,184,0.14);
  border-color: var(--kto-blue, #1a6fb8);
}
body.kto-themed .seo-card-img { height: 200px; background: #fff; }
body.kto-themed .seo-card-body { padding: 18px; }
body.kto-themed .seo-card h3 { font-size: 15px; }
body.kto-themed .seo-card h3 a { transition: color .2s ease; }
body.kto-themed .seo-card:hover h3 a { color: var(--kto-blue, #1a6fb8); }
body.kto-themed .seo-card strong { font-size: 15px; }

body.kto-themed .seo-links a {
  border: 1.5px solid var(--gray-200, #e8e8e8);
  background: var(--white, #fafafa);
  color: var(--gray-600, #555);
  border-radius: 999px;
  padding: 10px 16px;
  transition: border-color .18s ease, color .18s ease;
}
body.kto-themed .seo-links a:hover {
  border-color: var(--kto-blue, #1a6fb8);
  color: var(--kto-blue, #1a6fb8);
}
body.kto-themed .seo-copy { font-size: 16px; line-height: 1.85; max-width: 760px; }

body.kto-themed .seo-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #0a0a0a 0%, #16213e 100%);
  color: #fff;
  border-radius: 20px;
  padding: clamp(44px, 5vw, 68px) clamp(24px, 4vw, 56px);
  margin-top: var(--kt-gap);
  text-align: center;
}
body.kto-themed .seo-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 25% 20%, rgba(43,143,212,0.24) 0%, transparent 60%),
    radial-gradient(circle at 80% 85%, rgba(201,169,97,0.14) 0%, transparent 55%);
}
body.kto-themed .seo-cta h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: #fff;
  margin: 0 0 14px;
}
body.kto-themed .seo-cta h2 em {
  font-family: 'Montserrat', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold, #c9a961);
}
body.kto-themed .seo-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 auto 28px;
  max-width: 560px;
}
body.kto-themed .seo-cta a {
  padding: 16px 26px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ======================================================================
 * SCROLL REVEAL — classes added by kto-reveal.js, never by the markup
 * ==================================================================== */
body.kto-themed .kt-r { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
body.kto-themed .kt-r.kt-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.kto-themed .kt-r { opacity: 1; transform: none; transition: none; }
}

/* ======================================================================
 * The sidebar (kto-page-aside.js) keeps its column on wide screens.
 * ==================================================================== */
@media (min-width: 1100px) {
  body.kto-themed main.kto-has-aside { max-width: 1320px; }
}

/* The Family B kicker is styled as an inline-flex row with a rule further down
   this file; inside the hero it is a pill instead, so it must win on order. */
body.kto-themed .kt-hero .kt-hero-pill {
  display: inline-block;
  width: auto;
  gap: 0;
}
body.kto-themed .kt-hero .kt-hero-pill::after,
body.kto-themed .kt-hero .kt-hero-pill::before { content: none; display: none; }

@media (max-width: 720px) {
  body.kto-themed .facts { padding: 26px 22px; border-radius: 14px; }
  body.kto-themed .facts dl { grid-template-columns: 1fr; gap: 0; }
  body.kto-themed .cta, body.kto-themed .seo-cta { border-radius: 14px; }
  body.kto-themed .cta a.btn { display: flex; width: 100%; margin: 0 0 10px; }
}

/* ======================================================================
 * FAMILY C — legal pages (.legal-main) and the FAQ
 * The legal pages even ship their own bare header/footer (.legal-header /
 * .legal-footer) rather than the site's, so they read as a different site
 * twice over. We keep their markup and retune the type and the TOC card.
 * ==================================================================== */

body.kto-themed .legal-main,
body.kto-themed.kto-fam-toc main {
  max-width: 860px;
  padding: clamp(44px, 5vw, 72px) clamp(20px, 5vw, 40px) clamp(72px, 8vw, 120px);
}
body.kto-themed .legal-main > h1,
body.kto-themed main > h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}
body.kto-themed .legal-main > h1 em,
body.kto-themed main > h1 em { font-style: italic; color: var(--kto-blue, #1a6fb8); font-weight: 600; }

body.kto-themed .legal-updated,
body.kto-themed main > .updated {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-400, #737373);
  margin-bottom: clamp(36px, 5vw, 56px);
}
body.kto-themed main > .subtitle {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-600, #555);
  max-width: 720px;
  margin-bottom: 28px;
}

/* Table of contents → the homepage's bordered card, not a left-rule slab. */
body.kto-themed .legal-toc,
body.kto-themed .toc {
  background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
  border: 1px solid #d8e7f4;
  border-inline-start: 1px solid #d8e7f4;
  border-radius: 18px;
  padding: 28px 32px;
  margin: 0 0 clamp(48px, 6vw, 72px);
}
body.kto-themed .legal-toc > h2,
body.kto-themed .toc > h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--kto-blue, #1a6fb8);
  margin: 0 0 14px;
  padding: 0;
  border: none;
}
body.kto-themed .legal-toc li,
body.kto-themed .toc li { font-size: 14px; line-height: 1.9; }
body.kto-themed .legal-toc a,
body.kto-themed .toc a { color: var(--gray-600, #555); text-decoration: none; }
body.kto-themed .legal-toc a:hover,
body.kto-themed .toc a:hover { color: var(--kto-blue, #1a6fb8); text-decoration: none; }

/* Section headings get the same blue rule as every other themed page. */
body.kto-themed .legal-main > h2,
body.kto-themed.kto-fam-toc main > section > h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
  text-transform: none;
  color: var(--black, #0a0a0a);
  margin: clamp(44px, 5vw, 64px) 0 16px;
  position: relative;
  padding-top: 20px;
}
body.kto-themed .legal-main > h2::before,
body.kto-themed.kto-fam-toc main > section > h2::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 40px; height: 2px;
  background: var(--kto-blue, #1a6fb8);
}
body.kto-themed .legal-main p,
body.kto-themed .legal-main li { font-size: 16px; line-height: 1.85; }
body.kto-themed .legal-main a { text-decoration: none; }
body.kto-themed .legal-main a:hover { text-decoration: underline; }

/* The legal pages' own slim header/footer, brought closer to the site's. */
body.kto-themed .legal-header { padding: 16px 48px; }
body.kto-themed .legal-footer { padding: 32px 48px; }

/* ======================================================================
 * The questionnaire pages (devis / rendez-vous) share Family A's shell.
 * Their form must not stretch to the wider themed column.
 * ==================================================================== */
body.kto-themed .kq { max-width: 780px; margin-inline: auto; }
/* Those pages have no .meta line between the lede and the form, so the first
   question would otherwise butt straight up against the intro paragraph. */
body.kto-themed main > .lede + .kq { margin-top: clamp(32px, 4vw, 52px); }
