/* JNS Software website stylesheet.
   Same design system as the JNS retail website (jns-homepage-mockups/jns/site.css): the same tokens, type and components,
   trimmed to what this site uses, plus the decision panels that stand in for photography.
     1. Tokens: colours, type scale, layout
     2. Base and headings
     3. Header and navigation
     4. Buttons and links
     5. Footer
     6. Simple pages: about, 404
     7. Homepage
     8. Decision panels (the illustrations on the homepage and service pages)
     9. Service pages and the track record
    10. Legal pages
    11. Reduced motion
   Breakpoints: 1180px (navigation), 1000px, 720px, 640px, 520px and 380px. */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Colours (identical to the retail site) */
  --ink: #162024;          /* body text on light backgrounds */
  --ink-soft: #455f64;     /* secondary text on light backgrounds */
  --night: #101416;        /* charcoal: header, footer, dark bands */
  --paper: #f4f6f3;        /* page background; text on dark backgrounds */
  --mist: #dfe5e4;         /* secondary text and captions on dark backgrounds */
  --coral: #ff815f;        /* buttons and accents */
  --coral-hover: #ff987b;
  --coral-active: #ed6e4d;
  --aqua: #a2e6e8;         /* pale blue bands, labels and links on dark bands */
  --teal: #193a42;         /* dark teal bands */
  --teal-text: #375c61;    /* labels on tinted panels */
  --tint: #e4eeee;         /* pale panels */
  --line: #bdc9c8;         /* hairlines on light backgrounds */
  --line-dark: #4a5254;    /* hairlines on dark backgrounds */
  --field: #fbfcfa;        /* form field background */
  --field-line: #7a898a;   /* form field border */
  --scrim: #101416d9;      /* caption backgrounds */

  /* Type scale. Headings use one step each; body text is 16px. */
  --text-h1: clamp(48px, 6.1vw, 102px);
  --text-h1-small: clamp(44px, 10vw, 64px);   /* 720px and below */
  --text-h2: clamp(35px, 3.8vw, 64px);
  --text-lead: clamp(23px, 2vw, 32px);         /* large statements and the homepage service headings */
  --text-h3: clamp(21px, 1.7vw, 27px);
  --text-intro: clamp(18px, 1.4vw, 22px);      /* introductions under headings */
  --text-small: 14px;                          /* labels, small headings, navigation */
  --text-caption: 13px;
  --track-h1: -.055em;
  --track-h2: -.045em;
  --track-h3: -.03em;

  /* Layout */
  --gutter: clamp(20px, 4.6vw, 80px);          /* side padding of every band */
  --head-h: 72px;                              /* 62px at 640px and below */
  color-scheme: light;
}

/* 2. Base and headings ----------------------------------------------------- */
@font-face {
  font-family: Space;
  src: url('assets/type/spacegrotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.54 Space, Arial, sans-serif; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: var(--text-h1); line-height: 1; letter-spacing: var(--track-h1); font-weight: 550; }
/* A small descriptive line inside a slogan headline, so the heading also says what the page is about. */
.h1-label { display: block; margin-bottom: 24px; color: var(--aqua); font-size: var(--text-small); line-height: 1.54; letter-spacing: normal; font-weight: 400; }
h2 { font-size: var(--text-h2); line-height: 1.05; letter-spacing: var(--track-h2); font-weight: 550; }
h3 { font-size: var(--text-h3); line-height: 1.2; letter-spacing: var(--track-h3); font-weight: 580; }
a { color: inherit; text-underline-offset: .23em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border-radius: 0; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
section, article, aside, figure, div { min-width: 0; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -90px; left: 12px; z-index: 20; background: var(--aqua); color: var(--ink); padding: 10px 18px; }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }
@media (max-width: 720px) {
  h1 { font-size: var(--text-h1-small); }
}

/* 3. Header and navigation ------------------------------------------------- */
.site-head { position: relative; z-index: 8; background: var(--night); color: var(--paper); border-bottom: 1px solid var(--line-dark); }
.head-inner {
  min-height: var(--head-h);
  max-width: 1760px;
  margin: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 700 46px/.92 Space, Arial, sans-serif;
  letter-spacing: -.105em;
  padding-right: .1em;
  text-decoration: none;
  white-space: nowrap;
}
/* "Software" sits beside the JNS wordmark, divided by a hairline, so the mark stays the same as the retail site's. */
.wordmark-tag {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 26px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line-dark);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--mist);
}
#site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px clamp(14px, 2vw, 36px); margin-left: auto; }
#site-nav a, .head-enquiry, .menu-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-small);
  font-weight: 580;
  text-decoration: none;
}
#site-nav a:hover, #site-nav [aria-current], .head-enquiry:hover, .head-enquiry[aria-current] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--coral);
}
.head-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.head-enquiry { gap: 10px; padding-left: 18px; border-left: 1px solid var(--line-dark); }
.head-enquiry::after { content: '↗'; content: '↗' / ''; color: var(--coral); font-size: 19px; }
.head-enquiry[aria-current=page]::after { content: none; }
.menu-button { display: none; border: 0; background: none; color: inherit; padding: 0 2px; gap: 8px; }
.menu-button:active { color: var(--aqua); }
.menu-button::after { content: '+'; content: '+' / ''; }
.menu-button[aria-expanded=true]::after { content: '−'; content: '−' / ''; }
/* Five links fit on one row from about 1180px. Below that the list collapses to the Menu button.
   The collapsed state is the stylesheet default; nojs.css shows the full list when JavaScript is unavailable. */
@media (max-width: 1180px) {
  .head-inner { flex-wrap: wrap; gap: 0 12px; }
  .menu-button { display: inline-flex; }
  #site-nav:not(.open) { display: none; }
  #site-nav { order: 3; flex-basis: 100%; width: 100%; gap: 0 20px; margin-left: 0; padding-block: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #site-nav.open { display: grid; }
  #site-nav a { min-height: 46px; }
  .head-actions { margin-left: auto; }
  .head-enquiry { padding-left: 0; border-left: none; }
}
@media (max-width: 640px) {
  :root { --head-h: 62px; }
  .wordmark { font-size: 38px; }
  .wordmark-tag { font-size: 15px; height: 22px; margin-left: 11px; padding-left: 11px; }
  .head-inner { padding-block: 8px; }
}
@media (max-width: 520px) {
  #site-nav { grid-template-columns: 1fr; }
  #site-nav.open { gap: 0; }
}
@media (max-width: 380px) {
  .head-enquiry::after { content: none; }
  .head-actions { gap: 12px; }
}

/* 4. Buttons and links ----------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  border: 0;
  padding: 12px 20px;
  background: var(--coral);
  color: var(--night);
  text-decoration: none;
  font-weight: 650;
}
.button:hover { background: var(--coral-hover); }
.button:active { background: var(--coral-active); transform: translateY(1px); }
.button:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; box-shadow: 0 0 0 7px var(--night); }
/* The arrow means "goes to another page"; form buttons take none. */
.button::after { content: '↗'; content: '↗' / ''; font-size: 18px; }
button.button::after { content: none; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 580; }
.text-link::after, .service-related::after, .service-lines a::after, .service-body a::after { content: '↗'; content: '↗' / ''; font-size: 20px; }
.text-link:active { opacity: .75; }
.inline-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 16px; }

/* 5. Footer ---------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: 1.5fr repeat(2, minmax(0, 1fr));
  gap: 20px clamp(24px, 4vw, 80px);
  background: var(--night);
  color: var(--paper);
  padding: clamp(32px, 4vw, 64px) var(--gutter);
}
.foot-intro p { color: var(--mist); max-width: 32ch; margin-top: 12px; }
.site-foot nav { display: flex; align-items: flex-start; flex-direction: column; }
.site-foot nav strong { color: var(--aqua); margin-bottom: 6px; font-size: var(--text-small); }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; line-height: 1.35; text-decoration: none; }
.site-foot nav a:hover, .site-foot nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--coral); }
.foot-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-dark); color: var(--mist); font-size: var(--text-small); }
.foot-legal p { max-width: 86ch; line-height: 1.45; }
.site-foot .foot-legal nav { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
@media (max-width: 640px) {
  .site-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .foot-intro { grid-column: 1 / -1; }
  .site-foot .wordmark { font-size: 36px; }
}

/* 6. Simple pages: about, 404 ---------------------------------------------- */
.intro-band { padding: clamp(40px, 7vw, 100px) var(--gutter); background: var(--night); color: var(--paper); }
.intro-band h1 { max-width: 17ch; }
.intro-band p { max-width: 56ch; font-size: var(--text-intro); margin-top: 18px; }
.article-band {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 90px);
  padding: clamp(32px, 5vw, 82px) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.article-band p { max-width: 59ch; }
.article-band p + p { margin-top: 12px; }
.article-band .text-link { margin-top: 4px; }
.article-band .button { margin-top: 8px; }
.article-band.accent { background: var(--aqua); border-bottom: 0; }
.article-band .large-copy + p { margin-top: 20px; }
.clean-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.clean-list dt { font-size: var(--text-h3); font-weight: 580; letter-spacing: var(--track-h3); line-height: 1.2; margin-bottom: 6px; }
.clean-list dd { max-width: 58ch; }
@media (max-width: 640px) {
  .article-band { grid-template-columns: minmax(0, 1fr); }
}

/* 7. Homepage -------------------------------------------------------------- */
.company-hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  background: var(--night);
  color: var(--paper);
  min-height: clamp(500px, 41vw, 660px);
}
.hero-copy { padding: 48px 36px 48px var(--gutter); align-self: center; container-type: inline-size; }
/* The heading also fits its column, so it never needs a third line. */
.hero-copy h1 { font-size: min(var(--text-h1), 13.4cqi); }
.hero-copy p { max-width: 36ch; color: var(--mist); font-size: var(--text-intro); line-height: 1.45; margin: 24px 0; }
.company-strip { display: grid; grid-template-columns: 1fr 1.15fr auto; align-items: center; gap: 24px; background: var(--aqua); padding: 24px var(--gutter); }
.company-strip p { max-width: 50ch; }
.company-strip p:first-child { font-size: 20px; line-height: 1.35; }
.company-strip strong { font-weight: 600; }
.home-spread { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 7vw, 104px); padding: clamp(48px, 6vw, 96px) var(--gutter); }
.section-lead p { max-width: 45ch; margin-top: 24px; }
.section-lead .text-link { margin-top: 16px; }
.section-label { margin: 0 0 20px; color: var(--aqua); font-size: var(--text-small); }
.capability-list > a { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); text-decoration: none; padding: 24px 0; }
.capability-list > a:first-child { padding-top: 20px; }
.capability-list > a:last-child { padding-bottom: 0; }
.capability-list h3 { font-size: var(--text-lead); letter-spacing: -.025em; margin-bottom: 8px; }
.capability-list p { max-width: 52ch; }
.capability-list > a > span { font-size: 26px; transition: transform .2s; }
.capability-list a:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.capability-list a:hover > span { transform: translate(3px, -3px); }
.record-band { background: var(--teal); color: var(--paper); align-items: center; }
.record-band .text-link { color: var(--aqua); }
/* The track record card: a summary that links to the full page. */
.record-card { display: block; background: var(--paper); color: var(--ink); text-decoration: none; border-top: 4px solid var(--coral); }
.record-card-title { padding: 24px 32px 16px; }
.record-card-title > span { color: var(--ink-soft); font-size: var(--text-small); }
.record-card-title strong { display: block; margin-top: 8px; font-size: var(--text-lead); font-weight: 550; line-height: 1.15; letter-spacing: var(--track-h3); }
.record-card dl { margin: 0 32px; }
.record-card dl > div { display: flex; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--text-small); }
.record-card dd { color: var(--ink-soft); text-align: right; }
.record-card-link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 12px 32px; background: var(--aqua); font-weight: 550; }
.record-card:hover .record-card-link { background: var(--coral); }
.record-card:focus-visible { outline: 3px solid var(--paper); outline-offset: 6px; }
.home-approach { background: var(--tint); border-bottom: 1px solid var(--line); }
.home-approach .section-label { color: var(--teal-text); }
.large-copy { font-size: var(--text-lead); line-height: 1.25; letter-spacing: -.025em; max-width: 45ch; }
.approach-summary > p + p, .home-sectors p + p { margin-top: 20px; max-width: 55ch; }
.home-sectors { background: var(--aqua); }
.home-sectors .large-copy { text-wrap: balance; }
.home-sectors .text-link { margin-top: 20px; }
.site-invitation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background: var(--night);
  color: var(--paper);
  padding: clamp(40px, 5vw, 80px) var(--gutter);
}
.site-invitation p { margin-top: 16px; max-width: 58ch; }
.site-invitation .button { flex-shrink: 0; }
@media (max-width: 1000px) {
  .hero-copy { padding-right: 24px; }
  .company-strip { grid-template-columns: 1fr 1.2fr; gap: 8px 32px; }
  .company-strip > a { grid-column: 2; }
  .home-spread { gap: 32px; }
}
@media (max-width: 800px) {
  .record-card dl > div { flex-direction: column; gap: 4px; }
  .record-card dd { text-align: left; }
}
@media (max-width: 720px) {
  .company-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 36px var(--gutter) 32px; }
  .hero-copy h1 { font-size: min(var(--text-h1-small), 13.4cqi); }
  .hero-copy p { margin: 20px 0; max-width: 44ch; }
  .company-strip { grid-template-columns: minmax(0, 1fr); padding-block: 24px; gap: 16px; }
  .company-strip > a { grid-column: auto; }
  .home-spread { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .section-lead p { margin-top: 20px; }
  .capability-list > a { padding-block: 20px; }
  .record-card-title { padding: 24px 20px 16px; }
  .record-card dl { margin-inline: 20px; }
  .record-card-link { padding-inline: 20px; }
  .site-invitation { align-items: flex-start; flex-direction: column; gap: 24px; }
}

/* 8. Decision panels ------------------------------------------------------- */
/* The illustration beside each page title: work prepared and waiting for a person's decision.
   It is text, so it stays sharp at any size and reads without images. The plane behind the card
   suggests the next decision in the queue. */
.work-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(40px, 5vw, 88px) clamp(24px, 5vw, 88px);
  background: var(--teal);
  overflow: hidden;
  isolation: isolate;   /* keeps the plane behind the card inside the panel */
}
.work-card { position: relative; width: min(100%, 540px); background: var(--paper); color: var(--ink); border-top: 4px solid var(--coral); }
.work-card::before {
  content: '';
  position: absolute;
  inset: -4px -18px auto 18px;
  height: 100%;
  transform: translateY(-18px);
  background: #f4f6f330;
  border-top: 4px solid #ff815f73;
  z-index: -1;
}
.work-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 28px 18px; }
.work-card-head strong { font-size: clamp(20px, 1.6vw, 25px); font-weight: 580; letter-spacing: var(--track-h3); line-height: 1.2; }
.work-card-head span { color: var(--ink-soft); font-size: var(--text-small); white-space: nowrap; }
.work-card ul { list-style: none; padding: 0; }
.work-card li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "kind status" "text status";
  gap: 2px 20px;
  align-items: start;
  padding: 15px 28px;
  border-top: 1px solid var(--line);
}
.work-kind { grid-area: kind; color: var(--teal-text); font-size: var(--text-caption); font-weight: 600; letter-spacing: .02em; }
.work-text { grid-area: text; font-size: 17px; font-weight: 520; line-height: 1.32; }
.work-status {
  grid-area: status;
  align-self: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  font-size: var(--text-caption);
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-soft);
}
.work-status.is-done { background: var(--tint); border-color: var(--tint); color: var(--teal-text); }
.work-status.is-ready { background: var(--coral); border-color: var(--coral); color: var(--night); }
.work-card-foot { padding: 16px 28px; background: var(--aqua); font-size: 15px; }
.work-card-foot strong { font-weight: 650; }
.work-panel figcaption { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; background: var(--scrim); color: var(--mist); font-size: var(--text-caption); }
@media (max-width: 720px) {
  .work-panel { padding: 44px var(--gutter) 52px; }
  .work-card-head { padding: 18px 20px 14px; }
  .work-card li { padding: 13px 20px; }
  .work-card-foot { padding: 14px 20px; }
}
@media (max-width: 520px) {
  .work-card-head { flex-direction: column; gap: 2px; }
  .work-card li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kind" "text" "status"; }
  .work-status { justify-self: start; margin-top: 8px; }
  .work-card::before { inset-inline: 10px -10px; transform: translateY(-12px); }
}

/* 9. Service pages and the track record ------------------------------------ */
.service-cover { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); background: var(--night); color: var(--paper); }
.service-cover-copy { padding: clamp(32px, 4vw, 68px) var(--gutter); align-self: center; container-type: inline-size; }
.service-cover h1 { margin: 0 0 16px; font-size: min(var(--text-h1), 12.4cqi); }
.service-cover-copy p { font-size: var(--text-intro); line-height: 1.45; max-width: 46ch; color: var(--mist); }
.service-cover-copy .button { margin-top: 24px; }
.service-cover .work-panel { min-height: clamp(400px, 37vw, 620px); }
.service-row, .service-close { padding: clamp(38px, 4.6vw, 76px) var(--gutter); }
.service-row, .service-close { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 7vw, 100px); }
.service-page h2 { max-width: 18ch; }
.service-intro { padding-top: 16px; max-width: 40ch; }
.service-intro + .text-link { margin-top: 12px; }
.service-lines article { padding: 16px 0; border-top: 1px solid var(--line); }
.service-lines article:last-child { padding-bottom: 0; }
.service-lines h3 { margin-bottom: 8px; }
.service-lines p, .service-body p { line-height: 1.5; max-width: 62ch; }
.service-lines a, .service-body a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 4px; font-weight: 550; }
.service-lines .step { display: block; margin-bottom: 6px; color: var(--teal-text); font-size: var(--text-small); font-weight: 600; letter-spacing: normal; }
.service-tint { background: var(--tint); }
.service-dark { background: var(--teal); color: var(--paper); }
.service-dark .service-lines article { border-top-color: var(--line-dark); }
.service-dark .service-lines .step, .service-dark .service-body a { color: var(--aqua); }
.service-body p + p { margin-top: 12px; }
.service-body .large-copy + p { margin-top: 20px; }
.service-close { background: var(--night); color: var(--paper); align-items: center; }
.service-close p { max-width: 46ch; margin-top: 12px; line-height: 1.45; }
.service-close > div:last-child { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.service-related { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 550; }
/* Track record: the cover carries the key figures instead of a decision panel. */
.record-cover .record-facts { align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 0; padding: clamp(32px, 4vw, 72px) var(--gutter); background: var(--teal); }
.record-facts > div { padding: 22px 24px 22px 0; border-top: 1px solid var(--line-dark); }
.record-facts dt { font-size: var(--text-h2); font-weight: 550; letter-spacing: var(--track-h2); line-height: 1; color: var(--paper); }
.record-facts dd { margin-top: 10px; max-width: 26ch; color: var(--mist); font-size: 15px; line-height: 1.4; }
.record-note { padding: 18px var(--gutter); background: var(--aqua); font-size: var(--text-small); }
.record-note p { max-width: 110ch; }
@media (max-width: 720px) {
  .service-cover, .service-row, .service-close { grid-template-columns: minmax(0, 1fr); }
  .service-cover-copy { padding-block: 32px; }
  .service-cover h1 { font-size: min(var(--text-h1-small), 12.4cqi); margin: 0 0 12px; }
  .service-cover .work-panel { min-height: 0; }
  .service-row, .service-close { gap: 18px; }
  .service-cover-copy .button { margin-top: 16px; }
  .record-facts > div { padding-right: 12px; }
}
@media (max-width: 380px) {
  .record-cover .record-facts { grid-template-columns: minmax(0, 1fr); }
}

/* 10. Legal pages ---------------------------------------------------------- */
.legal-cover { padding: clamp(36px, 5.3vw, 88px) var(--gutter); background: var(--night); color: var(--paper); }
.legal-label { font-size: var(--text-small); color: var(--aqua); margin-bottom: 18px; }
.legal-intro { font-size: var(--text-intro); line-height: 1.45; max-width: 54ch; margin-top: 20px; }
.legal-document {
  display: grid;
  grid-template-columns: minmax(0, .46fr) minmax(0, 1.54fr);
  align-items: start;
  gap: clamp(28px, 6vw, 100px);
  padding: clamp(36px, 5.2vw, 84px) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.legal-meta > div { padding: 12px 0; border-top: 1px solid var(--line); }
.legal-meta dt { font-size: var(--text-small); color: var(--ink-soft); }
.legal-meta dd { margin-top: 2px; line-height: 1.4; }
.legal-text { max-width: 70ch; }
.legal-text h2 { font-size: var(--text-h3); font-weight: 580; letter-spacing: var(--track-h3); line-height: 1.25; margin: 32px 0 8px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p, .legal-text li { line-height: 1.55; }
.legal-text p + p { margin-top: 12px; }
.legal-text ul { margin: 8px 0 12px; padding-left: 22px; list-style: disc; }
.legal-text li + li { margin-top: 6px; }
.legal-text table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; }
.legal-text th, .legal-text td { padding: 10px 14px 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.45; }
.legal-text th { font-weight: 600; }
@media (max-width: 720px) {
  .legal-document { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .legal-meta { margin-bottom: 28px; }
  .legal-cover h1 { font-size: clamp(36px, 10vw, 64px); }
  .legal-text table, .legal-text tbody, .legal-text tr, .legal-text th, .legal-text td { display: block; }
  .legal-text thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .legal-text tr { border-top: 1px solid var(--line); padding: 10px 0; }
  .legal-text th, .legal-text td { border-top: 0; padding: 3px 0; }
}

/* 11. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
