/*
 * Static Coming Soon — 1:1 with the SPA route:
 *   src/components/GradientBackground.css (.gradient-bg only)
 *   src/App.css (Coming Soon / shared marketing chrome)
 * Regenerate by concatenating those sources with the static reset block at the top of this file.
 */

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

html {
  min-height: 100dvh;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-family: "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/**
 * BC004 gradient panel — animation must NOT use transform on the painted layer:
 * transform + overflow:hidden + border-radius causes sub-pixel clip churn (“wobbling”).
 * Motion is background-position only; rounded rect stays geometrically stable.
 */
.gradient-bg {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  width: 100%;
  max-width: 1840px;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  border-radius: 15px;
}

.gradient-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--bg-source);
  background-repeat: no-repeat;
  /* Larger layer = same %-keyframes produce more visible drift */
  background-size: 290% 225%;
  background-position: 40% 100%;
  pointer-events: none;
}

@media screen and (min-width: 1024px) {
  /*
   * Fill viewport between shell chrome and footer: grow vertically (no fixed card aspect-ratio cap).
   * Inner layout keeps header/top + hero anchored; `.hero { flex: 1 }` expands the middle.
   */
  .gradient-bg {
    flex: 1 1 auto;
    width: min(100%, 1840px);
    min-height: 0;
    max-height: none;
  }
}

@media screen and (max-width: 1023px) {
  .gradient-bg::before {
    background-size: 270% 215%;
    animation-name: aurora-mobile;
    animation-duration: 34s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
  }
}

@media screen and (min-width: 1024px) {
  .gradient-bg::before {
    animation-name: aurora-desktop;
    animation-duration: 42s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
  }
}

@keyframes aurora-desktop {
  0% {
    background-position: 5% 100%;
  }
  16% {
    background-position: 72% 88%;
  }
  33% {
    background-position: 95% 96%;
  }
  50% {
    background-position: 48% 82%;
  }
  66% {
    background-position: 8% 92%;
  }
  83% {
    background-position: 88% 100%;
  }
  100% {
    background-position: 5% 100%;
  }
}

@keyframes aurora-mobile {
  0% {
    background-position: 10% 100%;
  }
  25% {
    background-position: 85% 86%;
  }
  50% {
    background-position: 22% 78%;
  }
  75% {
    background-position: 92% 94%;
  }
  100% {
    background-position: 10% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-bg::before {
    animation: none !important;
    background-position: 50% 100%;
    background-size: cover;
  }
}

/* BC004 Coming Soon — desktop `2120:191`, mobile LP `2130:515` (+ legacy `2013:66`). Header strip `2125:301`. */

:root {
  --bc-primary: #002b49;
  /* Coming Soon LP `2120:191`: white chrome + inner frame */
  --figma-desktop-pad-shell: 32px;
  --figma-shell-footer-gap: 32px;
  --figma-inner-pad-coming-soon: 56px;
  --figma-artboard-w: 1840px;
  --figma-artboard-h: 780px;
  --figma-copy-w: 665px;
  /* Hero headline + sub block `2125:323`; subtitle measure `2125:325`. */
  --figma-hero-block-w: 745px;
  --figma-hero-sub-w: 616px;
  --figma-desktop-pad-inner: var(--figma-inner-pad-coming-soon);
  --figma-card-inset-start: var(--figma-inner-pad-coming-soon);
  /* Header strip — logo rowheight `2125:301` */
  --figma-header-row-h: 58px;
  /* Horizontal gap logo lockup → tagline `2125:302` */
  --figma-lead-gap: 28px;
  /*
   * Older BC004 rails used extra hero inset; Coming Soon LP aligns to inner padding (`2125:299`).
   */
  --figma-content-align-offset: 0;
  --figma-hero-title-body-gap: 12px;
}

/* White chrome — fills viewport height so footer sits at bottom (`100svh` preferred on mobile Chrome). */
.shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
  width: 100%;
  gap: var(--figma-shell-footer-gap);
  background: #fff;
  padding: 12px;
}

.site-inner {
  position: relative;
  z-index: 1;
  /* Fill .gradient-bg so .hero can flex; basis 0% avoids shrink-wrapped column height */
  flex: 1 1 0%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  background: transparent;
  color: var(--bc-primary);
  padding: 20px;
}

@media (min-width: 641px) {
  .shell {
    padding: 20px;
  }

  .site-inner {
    padding: 48px;
  }
}

@media (min-width: 1024px) {
  /* Center 1840×921 rail; shell padding `2120:191` px-32 */
  .shell {
    align-items: center;
    padding: var(--figma-desktop-pad-shell);
  }

  /*
   * Inner padding `2125:299` p-[56px] on Page bg — uniform on all edges.
   */
  .site-inner {
    padding: var(--figma-inner-pad-coming-soon);
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .site-inner {
    padding: clamp(28px, 5vw, 48px);
  }
}

.top {
  flex-shrink: 0;
  padding: 0;
}

/* Logo row `2125:302`: gap 28px, items-end; tagline capsule `2277:699` (+ pb 11px) */
.top__lead {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: var(--figma-lead-gap);
}

.top__logo {
  flex-shrink: 0;
}

.brand__lockup {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

a.brand__lockup {
  text-decoration: none;
  color: inherit;
}

a.brand__lockup:hover {
  opacity: 0.92;
}

.brand__mark {
  display: block;
  width: 56px;
  height: auto;
  margin-top: 3.51px;
}

.brand__type {
  display: block;
  width: min(285.376px, 42vw);
  height: auto;
}

.brand__tagline-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  box-sizing: border-box;
}

.brand__tagline {
  box-sizing: border-box;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.28px;
  color: var(--bc-primary);
}

.contact {
  flex: 0 0 auto;
  max-width: 270px;
  min-width: 0;
  text-align: right;
}

.contact__label {
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.6875rem;
  text-transform: uppercase;
}

.contact__email-line {
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6875rem;
}

.contact__phone-line {
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6875rem;
}

.contact__email {
  font-weight: 400;
  color: inherit;
  text-decoration: none;
}

.contact__email:hover {
  text-decoration: underline;
}

.contact__phone {
  font-weight: 400;
  color: inherit;
  text-decoration: none;
}

.contact__phone:hover {
  text-decoration: underline;
}

@media (min-width: 1024px) {
  /* Header `2125:301`: outer row items-center justify-between */
  .top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 48px);
    min-height: var(--figma-header-row-h);
  }

  /*
   * Logo Set `2125:302`: gap 28px items-end; frame width 656px.
   */
  .top__lead {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: flex-end;
    margin-left: var(--figma-content-align-offset);
    max-width: min(656px, 100%);
    min-width: 0;
  }

  /* Logo Set `2125:302` — slot `2125:303`, tagline frame `2277:699` (pb 11px) */
  .top__logo {
    width: 353px;
    height: 58px;
    flex-shrink: 0;
  }

  .top__logo .brand__lockup {
    display: block;
    position: relative;
    width: 353px;
    height: 58px;
    margin: 0;
    padding: 0;
  }

  /* Icon `2125:304`: inset-[6.06%_84.12%_21.46%_0] */
  .top__logo .brand__mark {
    position: absolute;
    top: 6.06%;
    right: 84.12%;
    bottom: 21.46%;
    left: 0;
    margin: 0;
    width: auto;
    height: auto;
    max-width: none;
    display: block;
    object-fit: contain;
    object-position: left bottom;
  }

  /* Wordmark `2125:307`: inset-[0_0_0_19.44%] */
  .top__logo .brand__type {
    position: absolute;
    inset: 0 0 0 19.44%;
    margin: 0;
    width: auto;
    max-width: none;
    height: auto;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: left bottom;
  }

  .brand__tagline-wrap {
    align-items: center;
    justify-content: center;
    padding-bottom: 11px;
  }

  .brand__tagline {
    white-space: nowrap;
    line-height: normal;
  }

  .top__lead .brand__tagline {
    margin: 0;
  }

  /* Contact Info `2125:320`: column items-end justify-center pb-[14px] */
  .contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
  }
}

@media (max-width: 1023px) {
  .brand__tagline-wrap {
    padding-bottom: 0;
  }

  .top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    row-gap: 12px;
  }

  .top__lead {
    flex: 1 1 min(100%, 620px);
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    row-gap: 8px;
    margin-left: 0;
  }

  .top__logo .brand__lockup {
    position: relative;
  }

  .brand__tagline {
    flex: 1 1 min(260px, 100%);
    min-width: 0;
    line-height: 1.4;
  }
}

.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 0;
}

.hero__copy {
  width: 100%;
  max-width: var(--figma-hero-block-w);
  margin-top: auto;
  text-align: left;
}

.hero__title {
  margin: 0 0 var(--figma-hero-title-body-gap);
  font-weight: 400;
  font-size: clamp(2.125rem, 6vw, 3.75rem);
  line-height: normal;
  letter-spacing: -0.02em;
  text-transform: none;
  text-align: inherit;
}

.hero__sub {
  margin: 0;
  max-width: var(--figma-hero-sub-w);
  font-size: 1.25rem;
  line-height: normal;
  font-weight: 400;
  text-align: inherit;
}

@media (max-width: 1023px) {
  .hero__title {
    letter-spacing: -0.03em;
  }
}

@media (min-width: 1024px) {
  /*
   * Hero copy node `2125:323`: title frame height 90px → subtitle baseline at y=90 (no spacer frame).
   * Subtitle line box height 30px in Dev Mode; block sits flush to Page Content bottom + 56px card padding (`2125:299`).
   */
  .hero__copy {
    margin-left: var(--figma-content-align-offset);
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .hero__title {
    font-size: 3.75rem;
    letter-spacing: -1.2px;
    margin-bottom: 0;
    /* Figma `2125:324` headline is one continuous line inside the hero column. */
    white-space: nowrap;
  }

  .hero__sub {
    line-height: 1.875rem;
    white-space: nowrap;
    max-width: none;
  }
}

/* Footer rail `2125:367` — 16px Poppins Regular, chrome gap from shell `2120:191` */
.foot {
  display: flex;
  flex-shrink: 0;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--figma-artboard-w);
  margin-inline: auto;
  padding: 8px 0 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: normal;
  text-transform: capitalize;
  background: #fff;
  color: var(--bc-primary);
  gap: 24px;
}

.foot__legal {
  margin: 0;
  flex: 0 1 var(--figma-copy-w);
  min-width: 0;
  text-align: left;
}

/* Footer legal links row `2125:369`: gap-[24px] */
.foot__nav {
  display: inline-flex;
  flex-wrap: nowrap;
  flex: 0 1 var(--figma-copy-w);
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
  column-gap: 24px;
  height: auto;
}

.foot__nav a {
  flex: none;
  color: inherit;
  text-decoration: none;
}

.foot__nav a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) and (min-width: 641px) {
  .foot {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .foot__nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    height: auto;
  }
}

/* ─── Mobile Coming Soon LP `2130:515` (BC004) — scoped to `.shell--coming-soon` ─── */
@media (max-width: 640px) {
  .shell--coming-soon {
    padding: 24px;
    gap: 24px;
  }

  .shell--coming-soon .site-inner {
    flex: 1 1 auto;
    justify-content: space-between;
    padding: 24px;
  }

  .shell--coming-soon .top {
    display: contents;
  }

  .shell--coming-soon .top__lead {
    order: 1;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    width: 100%;
    max-width: none;
    gap: 8px;
    padding: 0;
  }

  .shell--coming-soon .top__logo {
    padding: 0;
    width: 223px;
    height: 37px;
    max-width: 100%;
    flex-shrink: 0;
  }

  .shell--coming-soon .brand__lockup {
    justify-content: flex-start;
    height: 100%;
  }

  .shell--coming-soon .brand__mark {
    width: 36px;
    height: auto;
    margin-top: 0;
  }

  .shell--coming-soon .brand__type {
    width: min(178px, calc(100% - 48px));
    max-width: none;
    flex-shrink: 0;
  }

  .shell--coming-soon .brand__tagline-wrap {
    justify-content: flex-start;
    width: 100%;
  }

  .shell--coming-soon .brand__tagline {
    width: 100%;
    max-width: none;
    margin-top: 0;
    text-align: left;
    flex: none;
    letter-spacing: -0.28px;
  }

  .shell--coming-soon .contact {
    order: 3;
    flex: none;
    max-width: none;
    width: 100%;
    text-align: left;
    margin-top: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    align-self: stretch;
  }

  .shell--coming-soon .contact__label {
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .shell--coming-soon .contact__email-line,
  .shell--coming-soon .contact__phone-line {
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 400;
  }

  .shell--coming-soon .contact__email {
    text-transform: none;
    word-break: break-word;
  }

  .shell--coming-soon .hero {
    order: 2;
    flex: 1 1 auto;
    justify-content: center;
    min-height: 0;
    padding: 0;
    width: 100%;
  }

  .shell--coming-soon .hero__copy {
    margin-top: 0;
    margin-left: 0;
    align-self: stretch;
    width: 100%;
    text-align: left;
    max-width: none;
  }

  .shell--coming-soon .hero__title {
    font-size: 2.1875rem;
    line-height: 2.8125rem;
    margin-bottom: 8px;
    letter-spacing: -0.7px;
  }

  .shell--coming-soon .hero__sub {
    font-size: 1rem;
    line-height: normal;
    text-align: left;
    min-height: 0;
  }

  /* Coming Soon footer: extra bottom padding on small phones (layout matches `2419:3715` via max-width 1023 rules above) */
  .shell--coming-soon .foot {
    padding: 0 0 calc(24px + env(safe-area-inset-bottom));
    height: auto;
  }
}

/* ─── Legal document pages (SPA `legalPages.css` + Figma Legal Desktop `2332:940`) ─── */

:root {
  --legal-text-bg: #ededed;
  --legal-shell-pad: 32px;
  --legal-stack-gap: 56px;
  --legal-doc-radius: 32px;
  --legal-doc-pad: 56px;
}

.legal-shell {
  box-sizing: border-box;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--bc-primary);
  padding: var(--legal-shell-pad);
}

.legal-shell__rail {
  display: flex;
  flex-direction: column;
  gap: var(--legal-stack-gap);
  width: min(1744px, 100%);
  margin: 0 auto;
  flex: 1;
}

/* Figma legal tablet header `2419:3681` — Logo Set column 275 / tagline 14px; Contact column 216 / 16px lh 20 */
@media (min-width: 641px) and (max-width: 1023px) {
  .legal-shell .top {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    row-gap: 0;
  }

  .legal-shell .top .top__lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 0 1 275px;
    max-width: min(275px, 42vw);
    min-width: 0;
    flex-wrap: nowrap;
    margin-left: 0;
  }

  .legal-shell .top .top__logo {
    width: 223px;
    height: 37px;
    max-width: 100%;
    flex-shrink: 0;
  }

  .legal-shell .top .brand__lockup {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .legal-shell .top .brand__mark {
    width: 36px;
    height: auto;
    margin-top: 0;
    flex-shrink: 0;
  }

  .legal-shell .top .brand__type {
    width: min(178px, calc(100% - 48px));
    height: auto;
    flex-shrink: 0;
  }

  .legal-shell .top .brand__tagline-wrap {
    width: 100%;
    justify-content: flex-start;
    align-self: stretch;
    padding-bottom: 0;
  }

  .legal-shell .top .brand__tagline {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    font-size: 14px;
    line-height: normal;
    letter-spacing: -0.28px;
    white-space: normal;
  }

  .legal-shell .top .contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    flex: 0 0 auto;
    max-width: 216px;
    min-width: 0;
    text-align: right;
    padding-bottom: 0;
  }

  .legal-shell .top .contact__label,
  .legal-shell .top .contact__email-line,
  .legal-shell .top .contact__phone-line {
    font-size: 1rem;
    line-height: 1.25rem;
  }
}

@media (max-width: 640px) {
  .legal-shell {
    padding: 20px;
  }

  .legal-shell__rail {
    gap: 36px;
  }

  /* Figma mobile legal header — Logo Set `2419:3723` + Contact Info `2419:3741` (terms + privacy) */
  .legal-shell .top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .legal-shell .top .top__lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: none;
    flex-wrap: nowrap;
    margin-left: 0;
  }

  .legal-shell .top .top__logo {
    width: 223px;
    height: 37px;
    max-width: 100%;
    flex-shrink: 0;
  }

  .legal-shell .top .brand__lockup {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    height: 100%;
  }

  .legal-shell .top .brand__mark {
    width: 36px;
    height: auto;
    margin-top: 0;
    flex-shrink: 0;
  }

  .legal-shell .top .brand__type {
    width: min(178px, calc(100% - 48px));
    height: auto;
    flex-shrink: 0;
  }

  .legal-shell .top .brand__tagline-wrap {
    width: 100%;
    justify-content: flex-start;
    align-self: stretch;
    padding-bottom: 0;
  }

  .legal-shell .top .brand__tagline {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    font-size: 14px;
    line-height: normal;
    letter-spacing: -0.28px;
    white-space: normal;
  }

  .legal-shell .top .contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    text-align: left;
    padding-bottom: 0;
  }

  .legal-shell .top .contact__label,
  .legal-shell .top .contact__email-line,
  .legal-shell .top .contact__phone-line {
    font-size: 1rem;
    line-height: 1.25rem;
  }
}

.legal-doc {
  flex: 1 1 auto;
  box-sizing: border-box;
  width: 100%;
  background: var(--legal-text-bg);
  border-radius: var(--legal-doc-radius);
  padding: clamp(28px, 6vw, var(--legal-doc-pad));
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 640px) {
  .legal-doc {
    gap: 24px;
  }
}

.legal-doc__masthead {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

@media (min-width: 769px) {
  .legal-doc__masthead {
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
  }

  .legal-doc__masthead-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
  }
}

.legal-doc__title {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--bc-primary);
  text-transform: none;
}

.legal-doc__updated {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.legal-doc__print {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: var(--bc-primary);
  text-decoration: none;
}

.legal-doc__print svg {
  flex-shrink: 0;
}

.legal-doc__print:focus-visible {
  outline: 2px solid var(--bc-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.legal-doc__body {
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.legal-doc__body p {
  margin: 0 0 1rem;
}

.legal-doc__body li {
  margin-bottom: 0.5rem;
}

.legal-doc__body p:last-child,
.legal-doc__body ul:last-child {
  margin-bottom: 0;
}

.legal-doc__body h2,
.legal-doc__h3 {
  margin: 1.75rem 0 0.5rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bc-primary);
}

.legal-doc__body section:first-child h2,
.legal-doc__body section:first-child .legal-doc__h3 {
  margin-top: 0;
}

.legal-doc__list {
  margin: 0 0 1rem 1.125rem;
  padding: 0;
}

.legal-doc__list li {
  line-height: 1.55;
}

.legal-doc__body a:not(.landing__btn) {
  color: inherit;
}

.legal-doc__body .legal-inline-link {
  text-decoration: underline;
  word-break: break-word;
}

.legal-shell .foot {
  margin-top: 0;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

/* Figma tablet/mobile footer `2419:3715`: links column gap 2px, 20px, copyright; 14px capitalize — legal + coming soon */
@media (max-width: 1023px) {
  .legal-shell .foot,
  .shell--coming-soon .foot {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 20px;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    padding-top: 0;
  }

  .legal-shell .foot__nav,
  .shell--coming-soon .foot__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    row-gap: 2px;
    column-gap: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    height: auto;
    order: 1;
  }

  .legal-shell .foot__nav a,
  .shell--coming-soon .foot__nav a {
    display: block;
    text-align: left;
  }

  .legal-shell .foot__legal,
  .shell--coming-soon .foot__legal {
    order: 2;
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: left;
  }
}

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

/* ─── Privacy Policy (Figma BC004 `2419:3636` desktop, `2419:3679` tablet, `2419:3721` mobile) ─── */

.legal-shell--privacy {
  --privacy-rail-gap: 56px;
  --privacy-doc-radius: 32px;
  --privacy-doc-pad: 56px;
  --privacy-doc-inner-gap: 32px;
  --privacy-title-size: 30px;
  --privacy-title-track: -0.6px;
  --privacy-meta-size: 14px;
  --privacy-print-size: 15px;
  --privacy-print-icon: 20px;
  --privacy-body-size: 14px;
}

.legal-shell--privacy .legal-shell__rail {
  gap: var(--privacy-rail-gap);
}

.legal-shell--privacy .legal-doc--privacy {
  border-radius: var(--privacy-doc-radius);
  padding: clamp(28px, 6vw, var(--privacy-doc-pad));
  gap: var(--privacy-doc-inner-gap);
}

.legal-shell--privacy .legal-doc__title {
  font-size: var(--privacy-title-size);
  font-weight: 500;
  letter-spacing: var(--privacy-title-track);
  text-transform: capitalize;
}

.legal-shell--privacy .legal-doc__updated {
  font-size: var(--privacy-meta-size);
}

.legal-shell--privacy .legal-doc__print--privacy {
  font-size: var(--privacy-print-size);
}

.legal-shell--privacy .legal-doc__print-icon {
  width: var(--privacy-print-icon);
  height: var(--privacy-print-icon);
}

.legal-shell--privacy .legal-doc__body--privacy {
  font-size: var(--privacy-body-size);
  line-height: 1.55;
}

.legal-shell--privacy .legal-doc__body--privacy .legal-doc__h3 {
  font-size: var(--privacy-body-size);
  font-weight: 600;
}

.legal-shell--privacy .legal-doc__masthead {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 32px;
}

.legal-shell--privacy .legal-doc__masthead-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Tablet `2419:3679`: 32px shell, 24px stack, 640px content feel, 16px doc radius, 11px legal body */
@media (max-width: 1023px) {
  .legal-shell--privacy {
    --privacy-rail-gap: 24px;
    --privacy-doc-radius: 16px;
    --privacy-doc-pad: 32px;
    --privacy-doc-inner-gap: 24px;
    --privacy-title-size: 24px;
    --privacy-title-track: -0.48px;
    --privacy-meta-size: 11px;
    --privacy-print-size: 11px;
    --privacy-print-icon: 16px;
    --privacy-body-size: 11px;
  }

  .legal-shell--privacy.legal-shell {
    padding: 32px;
  }

  .legal-shell--privacy .legal-doc__masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .legal-shell--privacy .legal-doc__masthead-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Mobile privacy shell + doc padding (`2419:3721`); header uses shared `.legal-shell .top` rules above */
@media (max-width: 640px) {
  .legal-shell--privacy.legal-shell {
    padding: 24px;
  }

  .legal-shell--privacy {
    --privacy-doc-pad: 24px;
  }
}
