/*
  Buffer — shared styles for the landing page (/home, /home-mobile) and the
  legal pages (/privacy, /terms).

  Values come from the design handoff: README.md (tokens, layout, copy) and
  MOTION-AND-MODAL.md (aurora, tactile controls, modal, legal pages). Where the
  two disagree, the rendered design reference wins, since the handoff asks for
  a pixel match at 1440 and 390.

  Breakpoints: >= 1024 desktop · 768–1023 tablet · < 768 mobile.
*/

:root {
  --navy: #15203D;
  --navy-2: #1E2A48;
  --copper: #B5682C;
  --copper-light: #E3A06A;
  --peach: #FBE9DA;
  --page: #F7F6F3;
  --surface-2: #F1EFEA;
  --cream: #F7F3EB;
  --cream-muted: #C9C4B8;
  --text-2: #5E6679;
  --text-3: #8A92A3;
  --green: #2F7D5B;
  --green-light: #E6F4EC;
  --red: #B34A4A;
  --red-light: #FBE7E7;
  --amber: #B9822B;
  --amber-light: #FBF1DF;
  --hairline: rgba(21, 32, 61, .10);
  --hairline-dark: rgba(255, 255, 255, .10);
  --border: rgba(21, 32, 61, .08);

  --shadow-card: 0 10px 30px -12px rgba(21, 32, 61, .12);
  --shadow-float: 0 30px 80px -30px rgba(21, 32, 61, .35);
  --shadow-lift: 0 16px 40px -14px rgba(21, 32, 61, .18);
  --shadow-segment: 0 2px 8px rgba(21, 32, 61, .14);
  --shadow-thumb: 0 4px 12px rgba(21, 32, 61, .18);

  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --glide: cubic-bezier(.34, 1.3, .64, 1);
  --drift: cubic-bezier(.45, 0, .55, 1);
  --sheet: cubic-bezier(.32, .72, 0, 1);

  --sans: Inter, system-ui, sans-serif;
  --serif: Fraunces, Georgia, serif;

  --gutter: 48px;
  /* Motion multiplier: every pure-motion translate, scale or duration is
     multiplied by --m, so reduced-motion users keep colour and shadow
     changes but get no movement. */
  --m: 1;
}

@media (max-width: 1023px) { :root { --gutter: 32px; } }
@media (max-width: 767px) { :root { --gutter: 16px; } }
@media (prefers-reduced-motion: reduce) { :root { --m: 0; } }

/* ---------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

/* Lucide icons, drawn from the inline sprite with <use>. */
.i {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------- typography */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper);
}

.h2 {
  font-size: 52px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--navy);
}

.h2-lines > span { display: block; }

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

.body-copy {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--copper);
}

@media (max-width: 1023px) {
  .h2 { font-size: 44px; line-height: 1.08; }
}

@media (max-width: 767px) {
  .h2 { font-size: 32px; line-height: 1.1; }
  .h2-lines > span { display: inline; }
}

/* ------------------------------------------------- buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary { background: var(--navy); color: var(--cream); }
.btn-inverse { background: var(--cream); color: var(--navy); }

/* Quiet secondary (Log in): a white pill that never competes with the primary. */
.btn-quiet {
  background: #FFFFFF;
  border: 1px solid rgba(21, 32, 61, .12);
  color: var(--navy);
}

.btn-nav { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; gap: 8px; }
.btn-block { display: flex; width: 100%; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

/* Touch screens: give the small text links a ~44px hit area without moving them. */
@media (pointer: coarse) {
  .link::before,
  .footer-link::before,
  .footer-legal-links a::before {
    content: "";
    position: absolute;
    inset: -12px -8px;
  }
}

/* ------------------------------------------- tactile controls (§2) */

[data-press], [data-btn], [data-ghost], [data-card] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

[data-press] {
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, opacity .2s;
}

[data-press].is-released {
  transition: transform .32s var(--spring), box-shadow .32s var(--spring), background-color .2s, color .2s, opacity .2s !important;
}

[data-btn] {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

[data-btn][data-shadow] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 30px -12px rgba(21, 32, 61, .4);
}

[data-btn] .i, [data-ghost] .i { transition: transform .2s var(--ease); }

/* Sheen: a diagonal highlight parked off the left edge, swept across once per hover. */
[data-btn="primary"]::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 34%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}

[data-ghost] { position: relative; }

[data-ghost]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1.5px;
  width: 0;
  background: var(--copper);
  transition: width calc(.24s * var(--m)) var(--ease);
}

[data-card] {
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  [data-btn="primary"]:hover {
    background: var(--navy-2);
    transform: translateY(calc(-1px * var(--m)));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 34px -12px rgba(21, 32, 61, .5);
  }

  [data-btn="inverse"]:hover {
    background: #FFFFFF;
    transform: translateY(calc(-1px * var(--m)));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 34px -12px rgba(21, 32, 61, .5);
  }

  [data-btn]:hover .i,
  [data-ghost]:hover .i { transform: translateX(calc(3px * var(--m))); }

  [data-btn="primary"]:hover::after { animation: sheen calc(.7s * var(--m)) ease-out 1 forwards; }
  [data-ghost]:hover::after { width: 100%; }

  [data-card]:hover {
    transform: translateY(calc(-2px * var(--m)));
    box-shadow: var(--shadow-lift);
  }

  [data-press="icon"]:hover,
  .btn-quiet:hover { background-color: var(--surface-2); }
}

[data-press="btn"].is-pressed {
  transform: translateY(0) scale(calc(1 - .03 * var(--m))) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 12px -6px rgba(21, 32, 61, .45) !important;
  transition: transform .09s ease-out, box-shadow .09s ease-out, background-color .2s, color .2s !important;
}

[data-press="opt"].is-pressed {
  transform: scale(calc(1 - .03 * var(--m))) !important;
  transition: transform .09s ease-out, color .2s !important;
}

[data-press="row"].is-pressed {
  background-color: var(--surface-2) !important;
  transform: scale(calc(1 - .005 * var(--m))) !important;
  transition: transform .09s ease-out, background-color .09s ease-out !important;
}

[data-press="icon"].is-pressed {
  transform: scale(calc(1 - .08 * var(--m))) !important;
  transition: transform .09s ease-out, background-color .2s !important;
}

[data-press="ghost"].is-pressed {
  transform: translateY(calc(1px * var(--m))) !important;
  opacity: .75 !important;
  transition: transform .09s ease-out, opacity .09s ease-out !important;
}

@keyframes sheen { to { transform: translateX(560%) skewX(-18deg); } }

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

@media (prefers-reduced-motion: no-preference) {
  :focus-visible { animation: focus-in .15s ease-out; }
}

@keyframes focus-in { from { outline-color: transparent; } }

@media (prefers-reduced-motion: reduce) {
  [data-btn="primary"]::after { display: none; }
}

/* ------------------------------------------------ segmented controls */

.seg {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
}

/* One white pill glides under the active option (positioned by buffer-live.js). */
.seg-pill {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 0;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: var(--shadow-segment);
  pointer-events: none;
}

.seg[data-pill-ready] .seg-pill {
  transition: transform calc(.34s * var(--m)) var(--glide), width calc(.34s * var(--m)) var(--glide);
}

.seg-opt {
  position: relative;
  z-index: 1;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-2);
  cursor: pointer;
}

.seg-opt[aria-selected="true"] { color: var(--navy); }

/* Until the script has placed the pill, the selected option carries it. */
.seg:not([data-pill-ready]) .seg-opt[aria-selected="true"] {
  background: #FFFFFF;
  box-shadow: var(--shadow-segment);
}

.seg-opt:focus-visible { outline-offset: 2px; }

/* --------------------------------------------------- aurora glows (§1) */

.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

.grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: .035;
  mix-blend-mode: multiply;
  pointer-events: none;
}

@keyframes driftA {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(calc(70px * var(--t, 1)), calc(40px * var(--t, 1))) scale(1.06); }
  50% { transform: translate(calc(30px * var(--t, 1)), calc(100px * var(--t, 1))) scale(.94); }
  75% { transform: translate(calc(-50px * var(--t, 1)), calc(50px * var(--t, 1))) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Opacity 1.24 is intentional: it clamps to 1 and gives the breath a plateau. */
@keyframes breatheA { 0%, 100% { opacity: .88; } 50% { opacity: 1.24; } }

@keyframes driftB {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(calc(-80px * var(--t, 1)), calc(50px * var(--t, 1))) scale(1.1); }
  50% { transform: translate(calc(-40px * var(--t, 1)), calc(-70px * var(--t, 1))) scale(.95); }
  75% { transform: translate(calc(60px * var(--t, 1)), calc(-40px * var(--t, 1))) scale(1.04); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes driftC {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(calc(50px * var(--t, 1)), calc(30px * var(--t, 1))) scale(1.06); }
  50% { transform: translate(calc(-30px * var(--t, 1)), calc(70px * var(--t, 1))) scale(.92); }
  75% { transform: translate(calc(-60px * var(--t, 1)), calc(-20px * var(--t, 1))) scale(1); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Shared glow recipes: colour 0% -> half alpha 45% -> transparent. */
.glow-copper {
  background: radial-gradient(circle closest-side, rgba(181, 104, 44, .5) 0%, rgba(181, 104, 44, .24) 45%, rgba(181, 104, 44, 0) 100%);
  animation: driftA 23s var(--drift) -9s infinite, breatheA 11s ease-in-out -4s infinite;
}

.glow-navy {
  background: radial-gradient(circle closest-side, rgba(21, 32, 61, .17) 0%, rgba(21, 32, 61, .08) 45%, rgba(21, 32, 61, 0) 100%);
  animation: driftB 29s var(--drift) -13s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .glow { animation: none !important; }
}

/* ----------------------------------------------------------------- nav */

.nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: var(--lock-gap, 0px); /* scrollbar width while a dialog locks scrolling */
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 max(48px, env(safe-area-inset-left)) 0 max(48px, env(safe-area-inset-right));
  pointer-events: none;
}

.nav-bar {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px 0 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  pointer-events: auto;
}

.nav-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  border-radius: 6px;
  text-decoration: none;
}

.nav-logo img { display: block; width: auto; height: 24px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .nav-links { gap: 28px; }
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-2);
  text-decoration: none;
}

.nav-link[aria-current] { color: var(--navy); font-weight: 600; }

.nav-link--blog {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* "New": the newest employer article is under 14 days old (server/home-blog.js). Static, never pulses. */
.nav-new-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* Landing page: Book a call, then Log in. */
.nav:not(.nav--legal) .nav-actions { gap: 10px; }

/* Near 1024px the five links need the room between them and the buttons. */
@media (max-width: 1199px) {
  .nav:not(.nav--legal) .nav-links { gap: 28px; }
}

.nav-toggle,
.nav-sheet { display: none; }

.nav-scrim { display: none; }

/* Legal pages: logo · links · button in a flex row; links drop below 768. */
.nav--legal {
  padding: 0 clamp(12px, 3vw, 48px);
}

.nav--legal .nav-bar {
  height: clamp(56px, 6vw, 64px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px 0 clamp(16px, 2vw, 24px);
}

.nav--legal .nav-logo img { height: clamp(20px, 2vw, 24px); }
.nav--legal .btn-nav { flex: none; }

@media (max-width: 767px) {
  .nav--legal .nav-links { display: none; }
}

/* Landing nav below 1024px (phones and tablets): a 56px pill, logo · Book a
   call · menu, that opens into a sheet. The full row (five links, Book a call
   and Log in) needs about 980px. */
@media (max-width: 1023px) {
  .nav:not(.nav--legal) {
    padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
  }

  .nav:not(.nav--legal) .nav-bar {
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 36px auto;
    align-items: center;
    padding: 9px 10px 9px 16px;
    border-radius: 28px;
    transition: background-color .25s ease-out, border-color .25s ease-out, box-shadow .25s ease-out, border-radius .25s ease-out, padding .25s ease-out;
  }

  .nav:not(.nav--legal) .nav-logo img { height: 20px; }
  .nav:not(.nav--legal) .nav-links { display: none; }

  .nav:not(.nav--legal) .btn-nav { height: 36px; padding: 0 14px; font-size: 13px; }
  .nav:not(.nav--legal) .nav-actions { gap: 6px; }
  .nav-login { display: none; }

  .nav-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -4px 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
  }

  .nav-toggle .nav-icon-close { display: none; }

  .nav-sheet {
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .25s ease-out, visibility 0s linear .25s;
  }

  .nav-sheet-clip { min-height: 0; overflow: hidden; }

  .nav-sheet-list {
    display: flex;
    flex-direction: column;
    padding: 20px 6px 6px;
  }

  /* Line the links up with the card edge rather than the logo. */
  .nav-sheet-list { margin-left: -8px; }

  .nav-sheet-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 10px;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--navy);
    text-decoration: none;
  }

  .nav-sheet-link .i { color: var(--text-3); }

  .nav-sheet-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  /* Log in: a full-width quiet button under the links. */
  .nav-sheet-foot {
    margin-left: -8px;
    padding: 8px 6px 6px;
  }

  .nav.is-open .nav-bar {
    padding: 9px 9px 11px 17px;
    border-color: transparent;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: var(--shadow-float);
  }

  .nav.is-open .nav-sheet {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .25s ease-out, visibility 0s;
  }

  .nav.is-open .nav-toggle { background: var(--surface-2); }
  .nav.is-open .nav-toggle .nav-icon-menu { display: none; }
  .nav.is-open .nav-toggle .nav-icon-close { display: block; }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(21, 32, 61, .34);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease-out, visibility 0s linear .25s;
  }

  .nav-scrim.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease-out, visibility 0s;
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .nav:not(.nav--legal) .nav-bar,
  .nav-sheet,
  .nav.is-open .nav-sheet,
  .nav-scrim,
  .nav-scrim.is-visible { transition: none; }
}

/* -------------------------------------------------------------- footer */

.footer {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin: 96px auto 0;
  padding: 0 0 56px;
  display: flex;
  flex-direction: column;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hairline);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-logo { display: flex; border-radius: 6px; }
.footer-logo img { display: block; width: auto; height: 26px; }

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.footer-tagline > span { display: block; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}

.footer-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-2);
  text-decoration: none;
}

.footer-legal {
  margin-top: 28px;
  max-width: 1000px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-3);
}

.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}

.footer-copy > span + span::before { content: " · "; }

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.footer-legal-links a { color: var(--text-3); text-decoration: none; }

@media (max-width: 1023px) {
  .footer-top { flex-wrap: wrap; gap: 24px 48px; }
  .footer-links { flex-wrap: wrap; gap: 12px 32px; }
  .footer-bottom { flex-wrap: wrap; gap: 12px 24px; }
}

@media (max-width: 767px) {
  .footer { margin-top: 64px; padding-bottom: 40px; }

  .footer-top {
    display: block;
    padding-bottom: 28px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-logo img { height: 22px; }

  .footer-links {
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .footer-legal {
    margin-top: 24px;
    font-size: 12px;
    line-height: 1.7;
  }

  .footer-bottom {
    margin-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
  }

  .footer-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-copy > span + span::before { content: none; }
  .footer-legal-links { gap: 20px; }
}

/* Legal pages: the footer sits in a padded 1200px column, as in the design. */
.footer--legal {
  width: auto;
  max-width: 1200px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding: 0 clamp(16px, 4vw, 48px) clamp(40px, 5vw, 56px);
}

.footer--legal .footer-top {
  flex-wrap: wrap;
  gap: 24px 48px;
  padding-bottom: clamp(24px, 3vw, 36px);
}

.footer--legal .footer-brand { flex-wrap: wrap; gap: 16px 28px; }
.footer--legal .footer-links { flex-wrap: wrap; gap: 12px 32px; }
.footer--legal .footer-bottom { flex-wrap: wrap; gap: 12px 24px; }

@media (max-width: 767px) {
  .footer--legal { margin-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 5vw, 56px); }
  .footer--legal .footer-top { display: flex; padding-bottom: clamp(24px, 3vw, 36px); }
  .footer--legal .footer-brand { flex-direction: row; align-items: center; }
  .footer--legal .footer-logo img { height: 26px; }
  .footer--legal .footer-links { margin-top: 0; }
  .footer--legal .footer-legal { margin-top: 28px; font-size: 13px; line-height: 1.75; }
  .footer--legal .footer-bottom { margin-top: 28px; flex-direction: row; align-items: center; font-size: 13px; }
  .footer--legal .footer-copy { display: block; }
  .footer--legal .footer-copy > span + span::before { content: " · "; }
  .footer--legal .footer-legal-links { gap: 24px; }
}

/* --------------------------------------------------------- scroll reveal */

/* Sections fade in and rise 12px once 15% of them is on screen (buffer-home.js). */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease-out, transform .4s ease-out;
}

.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media print {
  .js .reveal { opacity: 1; transform: none; }
}
