/* Design tokens and base styles */
:root {
  color-scheme: light;
  --gold: #f5b800;
  --navy: #101820;
  --slate: #1b2838;
  --surface: #f8fafc;
  --white: #ffffff;
  --body: #475569;
  --secondary: #64748b;
  --border: #e2e8f0;
  --muted-light: #bfccd8;
  --accent-ink: #755600;
  --radius: 12px;
  --wrap: 1216px;
  --gutter: clamp(18px, 5vw, 72px);
  --section-space: clamp(62px, 7.5vw, 104px);
  --heading: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, p, h1, h2, h3, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #377ed5; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
[id] { scroll-margin-top: 95px; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section-tint { background: var(--surface); border-block: 1px solid var(--border); }
.section-tint + .section-tint { border-top: 0; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 10px; transform: translateY(-150%); background: var(--gold); color: var(--navy); padding: 10px 18px; }
.skip-link:focus { transform: none; }
.eyebrow { color: var(--accent-ink); text-transform: uppercase; font-size: .77rem; font-weight: 750; letter-spacing: .13em; margin-bottom: 12px; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.13; text-wrap: balance; }
h1, h2 { letter-spacing: -.048em; }
h1 { font-size: clamp(2.16rem, 4.75vw, 4.7rem); font-weight: 730; line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.55vw, 3.55rem); font-weight: 690; }
h3 { font-size: 1.17rem; letter-spacing: -.02em; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; padding: 9px 16px; border: 1px solid transparent; border-radius: 7px; font-weight: 700; font-size: .88rem; }
.button-small { min-height: 42px; }
.button-gold { background: var(--gold); color: var(--navy); }
.button-gold:hover { background: #ffd34a; }
.button-outline { border-color: #738297; color: var(--white); }
.button-outline:hover { background: #293646; border-color: #bdc7d1; }
.text-link { color: var(--navy); font-size: .9rem; font-weight: 720; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent-ink); }
.text-link:hover { color: var(--accent-ink); }
.section-link { display: inline-block; margin-top: 24px; }

/* Header and hero */
.site-header, .hero, .contact, .site-footer { background: var(--navy); color: var(--white); }
.site-header { position: sticky; top: 0; z-index: 4; }
.nav-bar { width: min(1280px, calc(100% - 2 * clamp(24px, 5vw, 80px))); min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { width: clamp(150px, 14vw, 200px); }
.nav-bar nav { display: flex; align-items: center; gap: clamp(13px, 1.9vw, 29px); }
.nav-bar nav > a:not(.button), .site-footer a { text-decoration: none; font-size: .87rem; color: #dae3eb; }
.nav-bar nav > a:not(.button):hover, .site-footer a:hover { color: var(--gold); }
/* Mobile navigation */
.menu-toggle, .drawer-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid #52647a;
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle:hover, .drawer-close:hover { background: var(--slate); border-color: #aab7c4; }
.navigation-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 360px);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid #52647a;
  background: var(--navy);
  color: var(--white);
  overscroll-behavior: contain;
  translate: 100% 0;
}
.navigation-drawer[open] { translate: 0 0; }
.navigation-drawer::backdrop { background: #070c12aa; }
html.nav-drawer-open { overflow: hidden; }
.drawer-inner { min-height: 100%; display: flex; flex-direction: column; padding: 16px 22px max(24px, env(safe-area-inset-bottom)); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #ffffff24; }
.drawer-title { color: var(--muted-light); font-size: .84rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.drawer-links { display: grid; gap: 4px; padding-block: 18px 24px; }
.drawer-links a { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border-inline-start: 2px solid transparent; border-radius: 5px; color: #e7edf3; font-size: 1.04rem; font-weight: 620; text-decoration: none; }
.drawer-links a:hover, .drawer-links a[aria-current="page"] { background: var(--slate); color: var(--gold); }
.drawer-links a[aria-current="page"] { border-inline-start-color: var(--gold); }
.drawer-cta { width: 100%; margin-top: auto; }
.navigation-drawer :focus-visible { outline-color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .navigation-drawer {
    transition: translate 275ms ease, display 275ms allow-discrete, overlay 275ms allow-discrete;
  }
  .navigation-drawer::backdrop { transition: background 275ms ease, display 275ms allow-discrete, overlay 275ms allow-discrete; }
  .navigation-drawer:not([open])::backdrop { background: transparent; }
  @starting-style {
    .navigation-drawer[open] { translate: 100% 0; }
    .navigation-drawer[open]::backdrop { background: transparent; }
  }
}
@media (width >= 992px) {
  .menu-toggle, .navigation-drawer { display: none; }
}
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 78% 48%, #f5b80013, transparent 49%),
    radial-gradient(ellipse at 78% 60%, #38557042, transparent 64%),
    var(--navy);
  border-bottom: 2px solid var(--gold);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, #a1b5cc45 .75px, transparent 1.2px) center / 19px 19px;
  mask-image: radial-gradient(ellipse at 79% 49%, #000, transparent 64%);
}
.hero-grid {
  --hero-gutter: clamp(24px, 5vw, 80px);
  --hero-gap: clamp(32px, 5vw, 80px);
  width: min(1280px, calc(100% - 2 * var(--hero-gutter)));
  min-height: clamp(600px, 82svh, 820px);
  padding-block: clamp(80px, 9vw, 128px);
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--hero-gap);
}
.hero .eyebrow, .hero h1 em { color: var(--gold); }
.hero .eyebrow { margin-bottom: 24px; }
/* The headline can use part of the column gap while the diagram stays in its own column. */
.hero h1 {
  width: min(650px, calc(100% + .82 * var(--hero-gap)));
  font-size: min(clamp(3.25rem, 5vw, 5.5rem), 4.9cqw);
  text-wrap: wrap;
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.hero h1 em { font-style: normal; }
.hero-intro { color: var(--muted-light); font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.7; max-width: 480px; margin-top: 30px; }
.hero .actions { margin-top: 36px; gap: 12px; }
.hero-graphic img { width: 100%; }
.hero-graphic { width: 100%; max-width: 680px; justify-self: center; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* Sections, cards, and architecture */
.intro-grid { display: grid; grid-template-columns: 1.12fr 1fr; align-items: end; gap: clamp(18px, 5vw, 70px); margin-bottom: 32px; }
.intro-grid > p { max-width: 53ch; color: var(--body); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: clamp(19px, 2.5vw, 29px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.card p, .benefits dd { color: var(--body); margin-top: 9px; }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; margin-bottom: 17px; background: #fff3cb; }
/* Editorial sections and capability cards */
#platform .intro-grid { align-items: center; margin-bottom: 46px; }
.platform-ledger { border-top: 1px solid #cbd5e1; }
.platform-ledger > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 20px; border-bottom: 1px solid var(--border); padding-block: 18px; }
.platform-ledger dt { font-size: 1.08rem; font-weight: 720; }
.platform-ledger dt::before { content: ""; display: inline-block; width: 15px; height: 2px; margin: 0 12px 4px 0; background: var(--gold); }
.platform-ledger dd { color: var(--body); }
.capability-grid .card { border-color: #d8e1ea; border-radius: 10px; padding: clamp(21px, 2.5vw, 33px); }
.capability-grid .card:hover { border-color: #aa812a; box-shadow: 0 6px 17px #16283a0d; }
.capability-grid .capability-featured { background: #fffaf0; border-color: #dccfa7; box-shadow: inset 0 3px var(--gold); }
.capability-grid .capability-featured h3 { font-size: 1.36rem; }
.card-icon { border: 1px solid #e8dbb5; background: #fff8e5; margin-bottom: 22px; }
.editorial-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: clamp(24px, 6vw, 84px); align-items: start; }
.editorial-copy > p, .technical-copy > p { color: var(--body); margin-top: 16px; }
.solutions-grid, .benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.solutions-grid .card { padding: clamp(25px, 3vw, 38px); background: var(--surface); border: 0; border-inline-start: 2px solid var(--gold); }
.benefits > div { border-top: 1px solid #cbd5e1; padding: 17px 10px 10px 0; }
.benefits dt { font-weight: 730; font-size: 1.13rem; }

/* Request and response visualization */
.architecture-section { color: var(--white); background: var(--navy); }
.architecture-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr); align-items: center; gap: clamp(28px, 5.2vw, 80px); }
.architecture-copy > p:not(.eyebrow) { color: var(--muted-light); margin-top: 18px; max-width: 32ch; }
.architecture-section .eyebrow, .architecture-section .text-link { color: var(--gold); }
.architecture-section .text-link { text-decoration-color: currentColor; }
.architecture-section .text-link:hover { color: #ffdb66; }
.architecture-section :focus-visible { outline-color: var(--gold); }
.diagram { padding: clamp(14px, 2.6vw, 32px); border: 1px solid #45586b; border-radius: 15px; background: #141f2a; }
.diagram figcaption { color: var(--muted-light); font-size: .81rem; font-weight: 680; margin-bottom: 20px; }
.flow { text-align: center; }
.flow-node { padding: 15px 11px; border: 1px solid #52647a; border-radius: 9px; background: #1b2838; }
.flow-node .eyebrow { margin-bottom: 6px; }
.flow-node ul, .tech-grid { padding: 0; list-style: none; }
.flow-endpoints { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 15px; margin: 8px 0 0; color: #d1dae4; font-size: .83rem; }
.flow-core { border-color: #bf9434; background: #202a33; padding: 18px 12px; box-shadow: inset 0 2px #f5b80060; }
.flow-core h3 { font-size: clamp(1.16rem, 2vw, 1.55rem); }
.flow-core ul, .tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.flow-core ul { margin: 16px 0 0; }
.flow-core li { display: grid; place-items: center; min-height: 44px; border: 1px solid #5d6e80; border-radius: 5px; padding: 6px; color: #e4ebef; font-size: .79rem; }
.exchange { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 7px; min-height: 44px; color: #d1dae4; font-size: .77rem; }
.exchange span:first-child { text-align: right; }
.exchange span:last-child { text-align: left; }
.exchange b { position: relative; display: grid; place-items: center; align-self: stretch; min-width: 41px; color: var(--gold); font-size: 1.02rem; }
.exchange b::before, .exchange b::after { content: ""; position: absolute; width: 1px; height: 8px; left: 50%; background: #bf9434; }
.exchange b::before { top: 0; }
.exchange b::after { bottom: 0; }
.tech-grid { margin: 0; gap: 0 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tech-grid li { display: flex; align-items: center; gap: 10px; border-top: 1px solid #cbd5e1; padding: 13px 0; font-size: .92rem; font-weight: 650; }
.tech-grid li::before { content: ""; display: block; flex: 0 0 7px; height: 7px; border: 2px solid var(--accent-ink); transform: rotate(45deg); }

/* Contact and footer */
.contact { padding-block: clamp(44px, 6vw, 80px); border-top: 3px solid var(--gold); background: var(--navy); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.contact p { margin-top: 11px; color: var(--muted-light); }
.contact .actions { margin-top: 0; flex-shrink: 0; }
.site-footer { padding-top: 45px; }
.footer-main { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 24px; padding-bottom: 30px; }
.footer-main p { color: var(--muted-light); font-size: .87rem; margin-top: 10px; }
.footer-main nav { display: grid; align-content: start; justify-items: start; gap: 7px; }
.footer-main nav h2 { font-size: .93rem; letter-spacing: 0; margin-bottom: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 1px solid #566575; padding: 17px 0; }
.footer-copyright { margin: 0; color: var(--muted-light); font-size: .87rem; }
@media (max-width: 520px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Responsive layout and motion preference */
@media (width < 992px) {
  .nav-bar { min-height: 68px; gap: 14px; }
  .nav-bar:has(.menu-toggle:not([hidden])) #main-nav { display: none; }
  /* Page links remain available if the dialog cannot be initialized. */
  .nav-bar:has(.menu-toggle[hidden]) { flex-wrap: wrap; padding-block: 12px; }
  .nav-bar:has(.menu-toggle[hidden]) #main-nav { width: 100%; flex-wrap: wrap; }
  .nav-bar:has(.menu-toggle[hidden]) #main-nav .button { display: none; }
}
@media (max-width: 1199px) {
  .hero-grid { min-height: 560px; padding-block: 72px; }
  .hero h1 { font-size: clamp(2.35rem, 5.05cqw, 3.5rem); }
}
@media (max-width: 820px) {
  .hero-grid, .intro-grid, .architecture-layout, .editorial-layout { grid-template-columns: 1fr; }
  .architecture-copy > p:not(.eyebrow) { max-width: 50ch; }
  .hero-grid { min-height: 0; padding-block: 60px 50px; }
  .hero h1 { width: 100%; font-size: clamp(2rem, 8.2vw, 3.5rem); }
  .hero .eyebrow { margin-bottom: 17px; }
  .hero-intro { margin-top: 22px; }
  .hero .actions { margin-top: 27px; }
  .hero-graphic { justify-self: center; width: min(100%, 550px); }
  .intro-grid { gap: 14px; margin-bottom: 24px; }
  .card-grid, .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-main > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero .button { padding-inline: 12px; }
  .hero { background: radial-gradient(ellipse at 55% 73%, #38557040, transparent 56%), var(--navy); }
  .hero::before { mask-image: radial-gradient(ellipse at 55% 73%, #000, transparent 62%); }
  .card-grid, .benefits, .tech-grid, .platform-ledger > div { grid-template-columns: 1fr; }
  .platform-ledger > div { gap: 4px; }
  .flow-core ul, .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .capability-grid .card { transition: border-color .18s ease, box-shadow .18s ease; }
  .button, .text-link { transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
}

/* Internal pages */
.nav-bar nav > a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-underline-offset: 6px; }
.interior-hero { display: grid; align-items: center; min-height: 360px; padding-block: clamp(56px, 8vw, 100px); color: var(--white); background: radial-gradient(ellipse at 82% 55%, #263646, transparent 60%), var(--navy); }
.interior-hero .eyebrow { color: var(--gold); }
.interior-hero h1 { max-width: 22ch; text-wrap: balance; }
.interior-hero h1 + p { margin-top: 20px; max-width: 64ch; color: var(--muted-light); font-size: clamp(1rem, 1.4vw, 1.125rem); }
.interior-architecture { background: radial-gradient(ellipse at 66% 100%, #33404a, transparent 63%), var(--navy); }
.interior-contact > .wrap { text-align: center; }
.interior-contact h1, .interior-contact h1 + p { margin-inline: auto; }
.inner-section { padding-block: clamp(45px, 6vw, 83px); }
.inner-section h2 { max-width: 24ch; font-size: clamp(1.8rem, 3.25vw, 3rem); }
.inner-section h2 + * { margin-top: 25px; }
.lede { max-width: 69ch; color: var(--body); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 20px; }
.lede + .detail-grid { margin-top: 30px; }
.detail-grid article, .contact-reference { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.detail-grid p, .detail-stack p, .solution-list p, .scenario p, .contact-reference p { color: var(--body); margin-top: 8px; }
.notice { margin-block: 32px 0; padding: 15px 19px; border-inline-start: 3px solid var(--gold); background: #fff8e6; color: var(--navy); }
.capability-detail .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; }
.detail-icon { padding: 7px; box-sizing: content-box; background: #fff3cb; border-radius: 8px; margin-bottom: 14px; }
.detail-stack { display: grid; gap: 15px; }
.detail-stack article { border-top: 1px solid #cbd5e1; padding-top: 14px; }
.lifecycle { display: grid; gap: 0; counter-reset: steps; padding: 0; margin-bottom: 0; list-style: none; }
.lifecycle li { position: relative; padding: 14px 0 14px 58px; border-top: 1px solid var(--border); counter-increment: steps; }
.lifecycle li::before { content: counter(steps); position: absolute; left: 0; top: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff3cb; color: var(--accent-ink); font-weight: 750; }
.lifecycle p { color: var(--body); margin-top: 4px; }
.dark-section { color: var(--white); background: var(--navy); }
.layer-explorer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 25px; }
.layer-diagram { width: 100%; height: auto; }
.diagram-layer rect { fill: #1b2838; stroke: #60788e; stroke-width: 1.5; }
.diagram-layer text { fill: var(--white); font-size: 20px; font-weight: 680; }
.diagram-layer:nth-of-type(5) rect, .diagram-layer.is-highlighted rect { stroke: var(--gold); stroke-width: 2; }
.layer-controls details { border: 1px solid #60788e; border-radius: 8px; padding: 12px 15px; margin-bottom: 9px; }
.layer-controls summary { cursor: pointer; font-weight: 700; }
.layer-controls summary:focus-visible { outline-color: var(--gold); }
.layer-controls p { color: var(--muted-light); margin-top: 8px; }
.solution-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.solution-list article, .scenario { padding: 23px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.scenario { margin-top: 18px; }
.scenario ol { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; padding: 0; }
.scenario li { position: relative; padding: 7px 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; }
.scenario li + li::before { content: "\2192 "; position: absolute; left: -21px; color: var(--accent-ink); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 65px); align-items: start; }
.contact-reference address { margin-top: 8px; font-style: normal; color: var(--body); }
.contact-reference .text-link { display: inline-block; margin-top: 12px; }
#inquiry-demo { margin-top: 22px; }
.form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
#inquiry-demo label { display: grid; gap: 5px; font-weight: 670; }
#inquiry-demo > label { margin-top: 14px; }
#inquiry-demo input, #inquiry-demo textarea { width: 100%; min-height: 46px; border: 1px solid #8794a1; border-radius: 6px; background: var(--white); color: var(--navy); padding: 9px 11px; font: inherit; font-weight: 400; }
#inquiry-demo textarea { resize: vertical; }
#inquiry-demo :user-invalid { border-color: #a72828; }
#inquiry-demo button { margin-block: 17px 8px; cursor: pointer; }
#inquiry-demo button:disabled { opacity: .6; cursor: default; }
.resource-links { padding-inline-start: 20px; }
@media (max-width: 760px) {
  .interior-hero { min-height: 0; }
  .capability-detail .wrap, .layer-explorer, .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .solution-list, .form-fields { grid-template-columns: 1fr; }
  .scenario ol { flex-direction: column; gap: 21px; }
  .scenario li + li::before { content: "\2193 "; left: 12px; top: -23px; }
}


/* Legal pages: reuse approved Intigrix design tokens */
.legal-hero { min-height: 300px; display:flex; align-items:center; }
.legal-hero .wrap { padding-block: 65px; }
.legal-hero h1 { max-width: 800px; }
.legal-hero .wrap > p:not(.eyebrow) { max-width: 740px; margin-top: 18px; color: var(--muted-light); }
.legal-hero .legal-date { font-size: .86rem; opacity: .85; }
.legal-layout { display:grid; grid-template-columns: minmax(190px, 260px) minmax(0, 1fr); gap: clamp(25px, 5vw, 85px); align-items:start; }
.legal-toc { position:sticky; top:105px; border:1px solid var(--border); background:var(--surface); border-radius:var(--radius); padding:24px; }
.legal-toc ol { padding-left:20px; margin:0; }
.legal-toc li { margin:0 0 10px; line-height:1.4; }
.legal-toc a { color:var(--body); font-size:.87rem; text-decoration:none; }
.legal-toc a:hover { color:var(--accent-ink); text-decoration:underline; }
.legal-content { max-width:810px; min-width:0; }
.legal-block { padding-block:25px; border-bottom:1px solid var(--border); }
.legal-block:first-of-type { padding-top:0; }
.legal-block h2 { font-size:clamp(1.28rem,2.1vw,1.66rem); letter-spacing:-.025em; margin-bottom:12px; }
.legal-block p { color:var(--body); line-height:1.8; font-size:1rem; }
.legal-block a { color:var(--accent-ink); text-decoration:underline; }
.legal-review { padding:20px 22px; margin-bottom:28px; border:1px solid #e3c77c; border-left:4px solid var(--gold); background:#fff9e9; color:var(--navy); border-radius:8px; }
.legal-review p { margin-top:7px; line-height:1.6; font-size:.93rem; }
@media (max-width:850px) { .legal-layout { grid-template-columns:1fr; } .legal-toc { position:static; } .legal-toc ol { columns:2; } }
@media (max-width:520px) { .legal-hero .wrap { padding-block:56px; } .legal-toc ol { columns:1; } .legal-block { padding-block:21px; } }

/* Contact form extension: works with existing .contact-layout and Intigrix design tokens. */
#intigrix-contact-form { margin-top: 22px; }
#intigrix-contact-form label { display: grid; gap: 7px; font-weight: 670; }
#intigrix-contact-form > label { margin-top: 16px; }
#intigrix-contact-form input,
#intigrix-contact-form textarea { display: block; width: 100%; min-height: 46px; border: 1px solid #8794a1; border-radius: 7px; background: #fff; color: #101820; padding: 10px 12px; font: inherit; font-weight: 400; }
#intigrix-contact-form textarea { resize: vertical; }
#intigrix-contact-form :is(input,textarea):focus-visible { outline: 3px solid #F5B800; outline-offset: 2px; border-color: #6C5500; }
.contact-captcha { margin-top: 20px; }
.contact-captcha > label { margin-bottom: 8px; }
.contact-captcha__controls { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.contact-captcha__controls input { flex: 0 1 190px; max-width: 100%; }
.contact-captcha__image { width: 180px; height: 60px; object-fit: contain; border: 1px solid #CBD5E1; border-radius: 6px; background: #fff; }
.contact-captcha__image.is-loading { opacity: .6; }
.contact-captcha__refresh { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 8px 0; margin: 0; background: transparent; color: #6B5300; text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: .93rem; font-weight: 650; cursor: pointer; }
.contact-captcha__refresh:hover { color: #101820; }
.contact-captcha__refresh:focus-visible { outline: 3px solid #F5B800; outline-offset: 4px; border-radius: 3px; }
.contact-captcha__refresh:disabled { opacity: .5; cursor: progress; }
.contact-captcha__refresh svg { width: 17px; height: 17px; }
.contact-submit { margin-top: 22px; }
.contact-feedback { margin-top: 16px; padding: 16px 18px; border-radius: 8px; border: 1px solid; line-height: 1.6; }
.contact-feedback[hidden] { display: none; }
.contact-feedback strong, .contact-feedback span { display: block; }
.contact-feedback.is-success { background: #EAF6EF; border-color: #93C7A5; color: #165A32; }
.contact-feedback.is-error { background: #FFF1F0; border-color: #E4A19A; color: #932C24; }
@media (max-width: 520px) { .contact-captcha__controls { align-items: flex-start; } .contact-captcha__controls input { flex-basis: 100%; } }