/* Bosa — landing page
   Tokens de specs/design.md. Mobile-first: 480 / 768 / 1024 / 1280. */

:root {
  /* Paleta oficial */
  --bosa-black: #121212;
  --bosa-orange: #E8663A;
  --bosa-ice: #EDEDED;
  --bosa-orange-soft: #FF8A5B;
  --bosa-steel: #41647C;

  /* Derivados */
  --surface: #1B1B1B;
  --line: #2C2C2C;
  --text-body: #C4C4C4;
  --text-muted: #9A9A9A;

  /* Tipografia */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --fs-display: clamp(2.75rem, 8vw, 7rem);
  --fs-h2: clamp(2.125rem, 5vw, 4.25rem);
  --fs-h3: clamp(1.375rem, 2.2vw, 1.75rem);
  --fs-lead: clamp(1.0625rem, 1.5vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Espaços */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --section-y: clamp(64px, 10vw, 128px);
  --gutter: 16px;
  --header-h: 64px;

  /* Raios */
  --radius-0: 0;
  --radius-sm: 6px;
  --radius-pill: 999px;

  /* Movimento */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-hover: 200ms;
  --dur-enter: 500ms;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; --header-h: 76px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  scrollbar-color: var(--line) var(--bosa-black);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bosa-black);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  color: var(--bosa-ice);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

::selection { background: var(--bosa-orange); color: var(--bosa-black); }

:focus-visible {
  outline: 2px solid var(--bosa-orange-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.wrap {
  width: 100%;
  max-width: calc(1280px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--bosa-ice);
  color: var(--bosa-black);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip:focus-visible { transform: none; }

/* ---------- Botões e links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color var(--dur-hover) var(--ease-out), transform 120ms var(--ease-out);
}

.btn--primary {
  background: var(--bosa-orange);
  color: var(--bosa-black);
}

.btn--primary:hover { background: var(--bosa-orange-soft); }
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 56px; }

.icon--arrow { transition: transform var(--dur-hover) var(--ease-out); }

.btn:hover .icon--arrow,
.service__link:hover .icon--arrow {
  transform: translate(3px, -3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--bosa-ice);
  font-weight: 500;
}

.text-link span {
  text-decoration: underline;
  text-decoration-color: var(--bosa-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-thickness var(--dur-hover) var(--ease-out), text-underline-offset var(--dur-hover) var(--ease-out);
}

.text-link:hover span {
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}

/* ---------- Cabeçalho ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bosa-black);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-hover) var(--ease-out);
}

.header.is-scrolled { border-bottom-color: var(--line); }

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  position: relative;
  z-index: 2;
}

.brand__logo { width: auto; height: 28px; }
.brand__mark { display: none; width: auto; height: 28px; }

@media (max-width: 359px) {
  .brand__logo { display: none; }
  .brand__mark { display: block; }
}

.menu-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bosa-ice);
  cursor: pointer;
}

.menu-toggle .icon { width: 26px; height: 26px; }

/* Menu do celular: tela cheia escura */
.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-7);
  padding: calc(var(--header-h) + var(--space-7)) var(--gutter) var(--space-7);
  background: var(--bosa-black);
  visibility: hidden;
  opacity: 0;
  transition: opacity 240ms var(--ease-out), visibility 0s linear 240ms;
}

.nav.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 240ms var(--ease-out), visibility 0s;
}

.nav__list {
  display: flex;
  flex-direction: column;
}

.nav__link {
  display: block;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  color: var(--bosa-ice);
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.nav__cta { width: 100%; min-height: 56px; }

html:not(.js) .menu-toggle { display: none; }
html:not(.js) .nav { position: static; visibility: visible; opacity: 1; padding: 0; flex-direction: row; align-items: center; background: none; }
html:not(.js) .nav__list { display: none; }
html:not(.js) .nav__cta { width: auto; min-height: 44px; padding: 0 var(--space-4); }

body.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
  .brand__logo { height: 32px; }

  .menu-toggle { display: none; }

  .nav,
  .nav.is-open {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
    padding: 0;
    background: none;
    visibility: visible;
    opacity: 1;
    transition: none;
  }

  .nav__list,
  html:not(.js) .nav__list {
    display: flex;
    flex-direction: row;
    gap: var(--space-6);
  }

  .nav__link {
    padding: var(--space-3) 0;
    border: 0;
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0;
    transition: color var(--dur-hover) var(--ease-out);
  }

  .nav__link:hover { color: var(--bosa-ice); }

  .nav__cta { width: auto; min-height: 48px; padding: 0 22px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: var(--space-7) var(--space-8);
}

.hero__mark {
  position: absolute;
  z-index: -1;
  top: -4%;
  right: -38%;
  width: min(110vw, 640px);
  height: auto;
  opacity: .08;
  transform-origin: 50% 48%;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: var(--space-6);
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 1;
}

.hero__line { display: block; }

.hero__title em {
  font-style: normal;
  color: var(--bosa-orange);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__lead {
  max-width: 34ch;
  color: var(--bosa-ice);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.hero__cta {
  width: 100%;
  margin-top: var(--space-6);
}

.hero__micro {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.hero__ig { margin-top: var(--space-4); }

@media (min-width: 480px) {
  .hero__cta { width: auto; }
}

@media (min-width: 768px) {
  .hero { padding-block: var(--space-8) var(--space-9); }
  .hero__mark { right: -18%; width: 64vw; max-width: 760px; }
}

@media (min-width: 1024px) {
  .hero {
    display: flex;
    align-items: flex-end;
    min-height: clamp(600px, calc(100svh - var(--header-h) - 104px), 860px);
    padding-block: var(--space-9) var(--space-8);
  }

  .hero__mark {
    top: 50%;
    right: -9%;
    width: auto;
    max-width: none;
    height: 128%;
    translate: 0 -52%;
  }

  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    column-gap: var(--space-5);
  }

  .hero__title { grid-column: 1 / span 8; }

  .hero__aside {
    grid-column: 9 / span 4;
    padding-bottom: .55rem;
  }
}

@media (min-width: 1280px) {
  .hero__title { grid-column: 1 / span 9; }
  .hero__aside { grid-column: 10 / span 3; }
}

/* Entrada do hero: o título entra linha a linha; o símbolo gira de leve uma vez */
@media (prefers-reduced-motion: no-preference) {
  .hero__line {
    animation: line-in 620ms var(--ease-out) both;
    animation-delay: calc(var(--n, 0) * 120ms);
  }

  .hero__line:nth-child(2) { --n: 1; }
  .hero__line:nth-child(3) { --n: 2; }

  .hero__aside { animation: fade-in 600ms var(--ease-out) 300ms both; }

  .hero__mark { animation: mark-turn 1600ms var(--ease-out) both; }
}

@keyframes line-in {
  from { opacity: 0; transform: translateY(24px); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes mark-turn {
  from { opacity: 0; rotate: -10deg; }
}

/* ---------- Espiral do fluxo ----------
   A linha percorre a espiral até o ponto laranja conforme a pessoa rola.
   Sem JS ou com movimento reduzido, tudo aparece já desenhado. */

.funnel {
  position: relative;
  border-block: 1px solid var(--line);
}

.funnel__stage {
  display: flex;
  align-items: center;
  padding-block: var(--space-8);
}

.funnel__grid {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
}

.funnel__spiral {
  width: min(100%, 520px);
  height: auto;
  overflow: visible;
}

.funnel__track,
.funnel__line {
  fill: none;
  stroke-width: 26;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.funnel__track { stroke: var(--line); }
.funnel__line { stroke: var(--bosa-orange); }

.funnel__stop circle {
  fill: var(--bosa-orange);
  stroke: var(--bosa-black);
  stroke-width: 10;
  paint-order: stroke;
}

.funnel__stop text {
  fill: var(--bosa-ice);
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.funnel__dot {
  fill: var(--bosa-orange);
  transform-box: fill-box;
  transform-origin: center;
}

.funnel__goal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}

.funnel__goal-item {
  color: var(--bosa-orange);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

@media (min-width: 1024px) {
  .funnel__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: center;
    justify-items: stretch;
  }

  .funnel__spiral {
    grid-column: 1 / span 6;
    justify-self: center;
    width: auto;
    height: min(64vh, 560px);
    max-width: 100%;
  }

  .funnel__goal {
    grid-column: 8 / span 5;
    align-items: flex-start;
    text-align: left;
  }

  .funnel__goal-item { font-size: clamp(3rem, 5.4vw, 5.5rem); }
}

/* Versão animada: a seção fica fixa por um trecho da rolagem */
@media (prefers-reduced-motion: no-preference) {
  .funnel.is-live { height: 220vh; }

  .funnel.is-live .funnel__stage {
    position: sticky;
    top: var(--header-h);
    height: calc(100svh - var(--header-h));
    padding-block: var(--space-6);
  }

  .funnel.is-live .funnel__line { stroke-dashoffset: var(--dash-off, 0); }

  .funnel.is-live .funnel__stop circle {
    fill: var(--line);
    transition: fill 250ms var(--ease-out);
  }

  .funnel.is-live .funnel__stop text {
    opacity: .5;
    transition: opacity 300ms var(--ease-out);
  }

  .funnel.is-live .funnel__stop.is-on circle { fill: var(--bosa-orange); }
  .funnel.is-live .funnel__stop.is-on text { opacity: 1; }

  .funnel.is-live .funnel__dot {
    fill: var(--line);
    transition: fill 300ms var(--ease-out);
  }

  .funnel.is-live.is-center .funnel__dot { fill: var(--bosa-orange); }

  .funnel.is-live .funnel__goal-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  }

  .funnel.is-live.is-goal-1 .funnel__goal-item:nth-child(1),
  .funnel.is-live.is-goal-2 .funnel__goal-item:nth-child(2) {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Seções ---------- */

.section { padding-block: var(--section-y); }

.section__title {
  font-size: var(--fs-h2);
  line-height: 1.05;
}

/* Serviços */

.services__title {
  max-width: 13ch;
  margin-bottom: var(--space-7);
}

.services__grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.service {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--bosa-black);
  transition: background-color var(--dur-hover) var(--ease-out);
}

.service__icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--bosa-orange-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service__name {
  margin-top: var(--space-6);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.15;
}

.service__text {
  margin-top: var(--space-3);
  max-width: 32ch;
}

.service__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: var(--space-5);
  padding-top: var(--space-2);
  color: var(--bosa-ice);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--bosa-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-thickness var(--dur-hover) var(--ease-out);
}

.service__link:hover { text-decoration-thickness: 4px; }

.service--accent { background: var(--bosa-orange); }
.service--accent .service__icon { stroke: var(--bosa-black); }
.service--accent .service__name,
.service--accent .service__text,
.service--accent .service__link { color: var(--bosa-black); }
.service--accent .service__link { text-decoration-color: var(--bosa-black); }
.service--accent :focus-visible { outline-color: var(--bosa-black); }

@media (min-width: 768px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { padding: var(--space-6); }
  .service__link { margin-top: auto; }
  .service__text { margin-bottom: var(--space-6); }
}

@media (min-width: 1024px) {
  .services__title { margin-bottom: var(--space-8); }
  .services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service:not(.service--accent):hover { background: var(--surface); }
}

/* Como funciona */

.steps { border-top: 1px solid var(--line); }

.steps__title {
  max-width: 14ch;
  margin-bottom: var(--space-7);
}

.steps__list {
  position: relative;
  display: grid;
  gap: var(--space-7);
  padding-left: var(--space-6);
}

/* A linha do processo: vertical no celular, horizontal no desktop */
.steps__list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 5px;
  width: 1px;
  background: var(--line);
}


.step { position: relative; }

.step::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 6px;
  left: calc(var(--space-6) * -1);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bosa-orange);
  box-shadow: 0 0 0 5px var(--bosa-black);
}

.step__num {
  display: block;
  color: var(--bosa-orange);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}

.step__name {
  margin-top: var(--space-4);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.15;
}

.step__text {
  margin-top: var(--space-2);
  max-width: 26ch;
}

@media (min-width: 1024px) {
  .steps__title { margin-bottom: var(--space-9); }

  .steps__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
    padding-left: 0;
    padding-top: var(--space-7);
  }

  .steps__list::before {
    top: 5px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }


  .step::before {
    top: calc(var(--space-7) * -1);
    left: 0;
  }
}

/* Combinado claro (seção azul-aço) */

.deal {
  background: var(--bosa-steel);
  color: var(--bosa-ice);
}

.deal__grid {
  display: grid;
  gap: var(--space-7);
}

.deal__title { max-width: 12ch; }

.deal__list {
  border-top: 1px solid rgb(237 237 237 / .35);
}

.deal__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid rgb(237 237 237 / .35);
  color: var(--bosa-ice);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.deal__list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: .45em;
  border-radius: 50%;
  background: var(--bosa-ice);
}

.deal :focus-visible { outline-color: var(--bosa-ice); }

@media (min-width: 1024px) {
  .deal__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: start;
  }

  .deal__title { grid-column: 1 / span 5; }
  .deal__list { grid-column: 7 / span 6; }
  .deal__list li { padding-block: var(--space-6); }
}

/* Quem está por trás */

.about__grid {
  display: grid;
  gap: var(--space-5);
}

.about__title {
  color: var(--bosa-ice);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.15;
}

.about__text {
  max-width: 24ch;
  color: var(--bosa-ice);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: pretty;
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: baseline;
  }

  .about__title { grid-column: 1 / span 3; }
  .about__text { grid-column: 4 / span 9; }
}

/* Fechamento */

.closing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(96px, 14vw, 192px);
  border-top: 1px solid var(--line);
}

.closing__mark {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -38%;
  width: auto;
  height: 150%;
  max-width: none;
  opacity: .07;
  translate: -50% 0;
  pointer-events: none;
}

.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-7);
}

.closing__title {
  max-width: 14ch;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1;
}

@media (min-width: 1024px) {
  .closing__mark { left: auto; right: -6%; bottom: -30%; translate: none; }
}

/* ---------- Rodapé ---------- */

.footer {
  padding-block: var(--space-8) calc(var(--space-6) + 88px);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}

.footer__top {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.footer__brand { display: inline-flex; min-height: 44px; align-items: center; justify-self: start; }
.footer__brand img { width: auto; height: 36px; }

.footer__links {
  display: grid;
  gap: var(--space-1);
}

.footer__links a,
.footer__links span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bosa-ice);
}

.footer__links a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color var(--dur-hover) var(--ease-out);
}

.footer__links a:hover { text-decoration-color: var(--bosa-orange); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-top: var(--space-4);
  color: var(--text-muted);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  transition: color var(--dur-hover) var(--ease-out);
}

.footer__bottom a:hover { color: var(--bosa-ice); }

@media (min-width: 768px) {
  .footer__links {
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .footer { padding-bottom: var(--space-6); }

  .footer__top {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer__links { justify-content: flex-end; }
}

/* ---------- Botão flutuante ---------- */

.fab {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-width: 56px;
  height: 56px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--bosa-orange);
  color: var(--bosa-black);
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 8px 24px rgb(0 0 0 / .45);
  transition: background-color var(--dur-hover) var(--ease-out), opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s;
}

.fab .icon { width: 24px; height: 24px; }
.fab:hover { background: var(--bosa-orange-soft); }
.fab__label { display: none; }

.js .fab:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms;
}

@media (prefers-reduced-motion: no-preference) {
  .fab.is-pulse { animation: pulse 900ms var(--ease-out) 300ms 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgb(0 0 0 / .45), 0 0 0 0 rgb(232 102 58 / .55); }
  100% { box-shadow: 0 8px 24px rgb(0 0 0 / .45), 0 0 0 18px rgb(232 102 58 / 0); }
}

@media (min-width: 1024px) {
  .fab { right: var(--space-5); bottom: var(--space-5); padding: 0 24px 0 20px; }
  .fab__label { display: inline; }
}

/* ---------- Entrada ao rolar ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

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

/* ---------- Política de Privacidade ---------- */

.legal {
  padding-block: var(--space-8) var(--section-y);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-bottom: var(--space-6);
  color: var(--text-body);
  font-weight: 500;
}

.legal__back .icon { rotate: -135deg; }
.legal__back:hover { color: var(--bosa-ice); }

.legal h1 {
  max-width: 14ch;
  font-size: var(--fs-h2);
  line-height: 1.05;
}

.legal__date {
  margin-top: var(--space-5);
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.legal__body {
  max-width: 68ch;
  margin-top: var(--space-8);
}

.legal__body h2 {
  margin-top: var(--space-7);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.15;
}

.legal__body h2:first-child { margin-top: 0; }

.legal__body p,
.legal__body ul { margin-top: var(--space-4); }

.legal__body ul { display: grid; gap: var(--space-2); }

.legal__body li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
}

.legal__body li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: .7em;
  border-radius: 50%;
  background: var(--bosa-orange);
}

.legal__body a {
  color: var(--bosa-ice);
  text-decoration: underline;
  text-decoration-color: var(--bosa-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.page-legal .footer { padding-bottom: var(--space-6); }
