/* ==========================================================================
   KuduDoc v6 — Terms of use (pages/terms.css)
   Loaded after theme.css; the v5 page CSS sits in the lower layer, so plain rules win.
   1. the opening: the landing blue with the mark as a poster; "what these terms cover" as a white card
   2. "In short": five labelled rows in one white card
   3. the reading layout: the index as a white card, sections on the ground, panels as cards
   4. the meta line and the closing band
   5. tablet and phone
   ========================================================================== */

/* ---------------------------------------------------------------- 1. the opening */
/* The hero box stays exactly the blue part (site.js reads it for the nav's tone); the blue and
   the poster are painted by ::before, which runs 96px past the hero and fades into the pale
   ground with one mask, so the poster fades with the blue and no stroke is cut at an edge. */
html body #hero.tm-hero {
  position: relative; z-index: 0; isolation: isolate;
  padding: 168px 0 88px !important;
  /* the colour is what site.js measures; painted only behind the content box so the fade in
     ::before (which starts inside the bottom padding) is never covered */
  background: #2a64a0 content-box; color: #fff;
}
html body #hero.tm-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -96px; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 72'%3E%3Cg transform='translate(40 36) rotate(-8) skewX(-14) translate(-31 -32)' stroke-linecap='round' stroke-width='6.5'%3E%3Cpath d='M13 14V50' stroke='%23004e99' stroke-opacity='.16'/%3E%3Cpath d='M25 9V55' stroke='%23004e99' stroke-opacity='.22'/%3E%3Cpath d='M37 13V51' stroke='%23004e99' stroke-opacity='.13'/%3E%3Cpath d='M49 18V46' stroke='%23004e99' stroke-opacity='.18'/%3E%3C/g%3E%3C/svg%3E") right -6vw center / auto 150% no-repeat,
    #2a64a0;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 170px), transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 170px), transparent 100%);
}
/* the next section paints above the fade that runs into it */
.tm-inshort { position: relative; z-index: 1; }

/* hero copy */
.tm-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }
.tm-hero .kd-eyebrow {
  display: flex; align-items: center; color: #d6eeff;
  font: 600 12.5px/1 var(--font-sans); letter-spacing: .15em; text-transform: uppercase;
}
.tm-hero-inner > .kd-eyebrow::before {
  content: ""; flex: none; width: 3px; height: 13px; margin-right: 10px; border-radius: 2px;
  background: #ff762b; transform: skewX(-14deg) translateY(1px);
}
.tm-hero h1.display-2xl {
  margin: 24px 0 0; color: #fff;
  font: 650 clamp(46px, 6vw, 86px)/.98 var(--font-display); letter-spacing: -.038em;
}
.tm-hero .kd-rule { width: 120px; height: 5px; margin: 20px 0 0 2px; background: #ff762b; }
.tm-lead {
  margin-top: 24px; max-width: 30ch; color: rgba(236, 244, 252, .86);
  font: 400 clamp(20px, 2vw, 24px)/1.4 var(--font-sans); letter-spacing: -.012em;
}
.tm-page .tm-lead a { color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 4px; }
.tm-page .tm-lead a:hover { text-decoration-color: #fff; }
.tm-hero-cta { margin-top: 32px; gap: 12px; }
.tm-hero-cta .btn-secondary {
  background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(191, 227, 255, .45);
}
.tm-hero-cta .btn-secondary:hover { background: rgba(191, 227, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(191, 227, 255, .7); }
.tm-page .tm-hero .tm-jump { margin-top: 14px; color: #d6eeff; }
.tm-page .tm-hero .tm-jump:hover { color: #fff; }

/* what these terms cover: a plain white card resting on the blue, like the landing's records */
.tm-cover {
  align-self: center; padding: 28px 30px 12px; border-radius: 24px; background: #fff; color: #102d49;
  box-shadow: 0 2px 4px rgba(6, 22, 42, .08), 0 24px 60px -18px rgba(6, 22, 42, .38);
}
.tm-cover-title { margin: 0 0 8px; color: #006bcb; font: 600 12.5px/1.4 var(--font-sans); letter-spacing: .15em; text-transform: uppercase; }
.tm-cover-rows { margin: 0; }
.tm-cover-rows > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
.tm-cover-rows > div + div { border-top: 1px solid rgba(16, 45, 73, .08); }
.tm-cover-rows dt { color: #56697f; font: 500 13.5px/1.5 var(--font-sans); }
.tm-cover-rows dd { margin: 0; color: #102d49; font: 500 15px/1.5 var(--font-sans); }
.tm-page .tm-cover-rows a { color: #006bcb; }

/* ---------------------------------------------------------------- shared: eyebrows, section heads, cards, markers */
.tm-heading .kd-eyebrow { color: #006bcb; }
.tm-heading h2 { color: #102d49; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -.032em; }
.tm-heading > p { color: #56697f; }
/* the slanted stroke as the list marker, in blue (orange stays for the chapter slashes) */
.tm-page ul.kd-marks > li::before { top: 5px; width: 3px; height: 14px; background: #006bcb; transform: skewX(-14deg) rotate(-8deg); }
.tm-page .kd-h3 { color: #102d49; font-weight: 650; letter-spacing: -.02em; }
.tm-page .kd-h3::before { top: .2em; width: 3.5px; height: 15px; border-radius: 2px; background: #006bcb; transform: skewX(-14deg) rotate(-8deg); }

/* ---------------------------------------------------------------- 2. "In short" */
.tm-inshort { padding: 128px 0 40px; }
/* five labelled rows in one white card, split by hairlines — no numerals, no bullet stacks */
.tm-short {
  margin: 0; padding: 6px 30px; border-radius: 22px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .07), 0 1px 2px rgba(16, 45, 73, .05), 0 16px 40px -24px rgba(16, 45, 73, .32);
}
.tm-short-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 32px; padding: 22px 0; }
.tm-short-row + .tm-short-row { border-top: 1px solid rgba(16, 45, 73, .08); }
.tm-short dt { color: #102d49; font: 650 18px/1.4 var(--font-display); letter-spacing: -.02em; }
.tm-short dd { margin: 0; max-width: 66ch; color: #3f5470; font: 400 16px/1.6 var(--font-sans); }
.tm-page .tm-short dd > a:last-child { margin-left: 4px; color: #006bcb; white-space: nowrap; }
.tm-page .tm-short dd > a:last-child::after { content: " →"; }

/* ---------------------------------------------------------------- 3. the reading layout */
.tm-sections { padding: 88px 0 104px; }
.tm-sections > .tm-heading { margin-bottom: 44px; }
.tm-page .legal-nav { top: 104px; }
html body .tm-index {
  border: 0; border-radius: 20px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .07), 0 1px 2px rgba(16, 45, 73, .05), 0 16px 40px -24px rgba(16, 45, 73, .32);
}
.tm-index summary { color: #102d49; font-weight: 650; }
.tm-index summary span { color: #56697f; }
.tm-page .legal-nav a { color: #3f5470; border-radius: 12px; }
.tm-page .legal-nav a:hover { background: #f1f6fc; color: #102d49; text-decoration: none; }
.tm-page .legal-nav a.is-active { background: #eaf3fc; color: #102d49; font-weight: 600; }
.tm-page .legal-nav a.is-active::before { left: 9px; top: 13px; width: 3px; height: 15px; background: #006bcb; transform: skewX(-14deg) rotate(-8deg); }
.tm-page .legal-nav .tm-back { color: #006bcb; }

.tm-page .legal-body { gap: 60px; }
.tm-page .legal-sec h2 {
  color: #102d49; font: 650 clamp(24px, 2.2vw, 30px)/1.2 var(--font-display); letter-spacing: -.03em;
  border-bottom-color: rgba(16, 45, 73, .1);
}
.tm-section-number { color: #006bcb; font-weight: 650; letter-spacing: .12em; }
.tm-page .legal-sec p, .tm-page .legal-sec li { color: #3f5470; }
.tm-page .legal-sec strong, .tm-page .legal-sec b { color: #102d49; }
.tm-page .legal-sec .fence { color: #3f5470; }
.tm-page .legal-sec .fence::before { background: #006bcb; }
.tm-page .legal-sec p a, .tm-page .legal-sec li a { color: #006bcb; }

/* panels: white cards on the ground */
html body .tm-page :is(.tm-panel, .tm-seal-steps) {
  margin-top: 28px; padding: 28px; border: 0; border-radius: 22px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .07), 0 1px 2px rgba(16, 45, 73, .05), 0 16px 40px -24px rgba(16, 45, 73, .32);
}
.tm-page .tm-seal-steps .tm-proof-label { color: #56697f; font-size: 12.5px; }
/* the three sealing steps belong to the seal: its strokes take the one orange */
.tm-seal-steps .kd-step > i { width: 4px; height: 34px; border-radius: 2px; background: #ff762b; transform: skewX(-14deg) rotate(-8deg); }
.tm-seal-steps .kd-step b { color: #102d49; font-weight: 650; }
.tm-seal-steps .kd-step small { color: #56697f; }

/* what the seal does / does not establish: two cards side by side */
.tm-scope { gap: 18px; border: 0; border-radius: 0; overflow: visible; }
html body .tm-scope > article {
  padding: 26px; border: 0; border-radius: 22px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .07), 0 1px 2px rgba(16, 45, 73, .05), 0 16px 40px -24px rgba(16, 45, 73, .32);
}
.tm-scope article + article { border-left: 0; }

/* your documents: labelled rows, hairlines between */
.tm-rows { margin-top: 4px; }
.tm-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid rgba(16, 45, 73, .1); }
.tm-row:first-child { padding-top: 4px; }
.tm-row > strong { color: #102d49; font: 650 15px/1.6 var(--font-display); letter-spacing: -.01em; }
.tm-page .tm-row > p { margin: 0; }
/* section 1's company details (ECT Act s43): until Daniel's details arrive the {{CO_…}} placeholders show as dashed
   chips (nav.css draws them for the dark footer; on the white page they take the ink) */
.tm-page .legal-body .ph { border-color: rgba(0, 107, 203, .45); color: #0b4f8f; background: rgba(0, 107, 203, .06); white-space: normal; }
.tm-company { margin-top: 18px; border-top: 1px solid rgba(16, 45, 73, .1); }

/* the wet-ink list inside its card */
.tm-panel .rule-list { border: 0; border-radius: 16px; background: #f6f9fc; box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .07); }
.tm-panel .rule-list-group { border-bottom-color: rgba(16, 45, 73, .08); }
.tm-page .rule-list-kind { color: #56697f; letter-spacing: .12em; }
.tm-page .rule-list-items b { color: #102d49; font-weight: 600; }
.tm-page .rule-list-items small { color: #56697f; }
/* the paragraph after the wet-ink card stands clear of the card and its shadow */
.tm-page .legal-sec .tm-panel + p { margin-top: 28px; }

/* the published prices: one card, rows split by hairlines */
.tm-plans {
  border: 0; border-radius: 20px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .07), 0 1px 2px rgba(16, 45, 73, .05), 0 16px 40px -24px rgba(16, 45, 73, .32);
}
.tm-plan:nth-child(even) { background: transparent; }
.tm-plan + .tm-plan { border-top-color: rgba(16, 45, 73, .08); }
.tm-plan span { color: #006bcb; }
.tm-plan b { color: #102d49; font-weight: 650; }
.tm-plan small { color: #56697f; }

/* the billing note: a flat blue panel, white type */
html body .tm-page .tm-panel.tm-billing-note { background: #2a64a0; box-shadow: none; }
.tm-page .legal-sec .tm-billing-note .kd-h3 { color: #fff; }
.tm-page .legal-sec .tm-billing-note .kd-h3::before { background: #fff; }
.tm-page .legal-sec .tm-billing-note p { color: rgba(236, 244, 252, .86); }
.tm-page .legal-sec .tm-billing-note p a { color: #fff; }

/* ---------------------------------------------------------------- 4. the closing band */
/* the closing band (global full-bleed blue); the retired mark's grid column is released */
html body #closing.tm-closing { display: block; }
.tm-closing::after { content: none; }
.tm-closing .cta-copy { gap: 22px; }
.tm-closing .eyebrow {
  display: flex; align-items: center; color: #d6eeff;
  font: 600 12.5px/1 var(--font-sans); letter-spacing: .15em; text-transform: uppercase;
}
.tm-closing .eyebrow::before {
  content: ""; flex: none; width: 3px; height: 13px; margin-right: 10px; border-radius: 2px;
  background: #ff762b; transform: skewX(-14deg) translateY(1px);
}
.tm-closing .kd-h2 { padding-left: 0; max-width: none; }
.tm-closing .kd-h2::before { content: none; }
.tm-closing .cta-copy > p { max-width: 56ch; color: rgba(236, 244, 252, .86); }

/* ---------------------------------------------------------------- 5. tablet and phone */
@media (max-width: 1100px) {
  .tm-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; }
  .tm-scope { grid-template-columns: minmax(0, 1fr); }
  .tm-scope article + article { border-top: 0; }
}
@media (max-width: 900px) {
  .tm-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tm-cover { max-width: 560px; }
  .tm-page .legal-nav { top: 84px; }
  html body .tm-index { box-shadow: inset 0 0 0 1px rgba(16, 45, 73, .07), 0 16px 40px -24px rgba(16, 45, 73, .4); }
}
@media (max-width: 600px) {
  html body #hero.tm-hero { padding: 128px 0 72px !important; }
  /* 72px padding + 104px overrun = 176px ≥ the 170px fade, so the fade begins below the content-box blue (no seam) */
  html body #hero.tm-hero::before { bottom: -104px; background-size: auto 110%, auto; background-position: right -34vw top 40px, 0 0; }
  .tm-hero h1.display-2xl { font-size: 48px; margin-top: 20px; }
  .tm-hero .kd-rule { width: 96px; margin-top: 16px; }
  .tm-lead { font-size: 19px; margin-top: 18px; }
  .tm-hero-cta { flex-direction: column; align-items: stretch; }
  .tm-hero-cta .btn { width: 100%; }
  .tm-cover { padding: 22px 20px 6px; border-radius: 20px; }
  .tm-cover-rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; }
  .tm-inshort { padding: 104px 0 28px; }
  .tm-short { padding: 2px 20px; border-radius: 20px; }
  .tm-short-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0; }
  .tm-short dd { font-size: 15px; }
  .tm-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tm-sections { padding-top: 56px; }
  html body .tm-page :is(.tm-panel, .tm-seal-steps), html body .tm-scope > article { padding: 22px 20px; border-radius: 20px; }
  .tm-page .legal-body { gap: 48px; }
  html body #closing.tm-closing { padding: 88px 20px 72px !important; }
  .tm-closing .btn-row { flex-direction: column; align-items: stretch; align-self: stretch; width: 100%; }
}

/* review (27 Sep 2026): the contents box drew the browser's own ▶/▼ marker; use the site's chevron,
   as the privacy notice's contents toggle does */
html body .tm-index > summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; }
html body .tm-index > summary::-webkit-details-marker { display: none; }
html body .tm-index > summary::marker { content: ""; }
html body .tm-index > summary::after {
  content: ""; flex: none; width: 7px; height: 7px; margin: -3px 4px 0 auto;
  border-right: 2px solid #56697f; border-bottom: 2px solid #56697f; transform: rotate(45deg); transition: transform .2s ease;
}
html body .tm-index[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { html body .tm-index > summary::after { transition: none; } }
