/* ==========================================================================
   Termômetro School — Cinematic Scroll Experience
   ========================================================================== */

:root {
  --paper: #F5F1E8;
  --paper-deep: #EAE3D3;
  --ink: #0D1420;
  --ink-2: #16213A;
  --ink-soft: #545C6B;
  --on-dark: #F4F1E9;
  --on-dark-soft: rgba(244, 241, 233, 0.72);
  --on-dark-faint: rgba(244, 241, 233, 0.46);
  --accent: #7ED957;
  --accent-deep: #2F8F3E;
  --alert: #E1483D;
  --hairline: rgba(13, 20, 32, 0.12);
  --hairline-dark: rgba(244, 241, 233, 0.16);

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Karla', ui-sans-serif, system-ui, sans-serif;
  --font-cinema: 'Cormorant Garamond', ui-serif, Georgia, serif;
  --hero-bg: #050505;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --side-pad: clamp(1.5rem, 6vw, 6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

.section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
  position: relative;
  z-index: 2;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.section-heading {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem);
  line-height: 1.08;
  color: inherit;
}

/* ==========================================================================
   Unified two-line title system — reused by every main section heading
   (Hero, O Problema, Como Funciona, Plataforma, Encerramento).
   Line 1 = the primary statement, kept at full weight/color for maximum
   presence. Line 2 = the reflective continuation, rendered in a softer
   color (never opacity — opacity would also dim any accent span nested
   inside it, e.g. the Hero's "a tempo?"). No font-size or line-height
   changes ride on this class, so no section's heading block height changes
   because of it — the two lines simply read with a clear hierarchy.
   ========================================================================== */
.title-line { display: block; }
.title-line--soft {
  font-weight: 400;
  color: var(--on-dark-soft);
}
.how-section .title-line--soft { color: var(--ink-soft); }

.section-body {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.75;
  max-width: 34ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out), border-color .4s var(--ease-out), color .4s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #0C2313; }
.btn-primary:hover { background: #93e46e; }
.btn-outline { background: transparent; color: var(--on-dark); border-color: var(--hairline-dark); }
.btn-outline:hover { border-color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--on-dark); border: 1px solid rgba(244,241,233,0.3); padding: 0.65rem 1.4rem; font-size: 0.82rem; }
.btn-ghost:hover { background: rgba(244,241,233,0.1); }

/* ==========================================================================
   Loader
   ========================================================================== */
#loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s var(--ease-out);
}
#loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--on-dark); font-family: var(--font-display); font-size: 1.1rem; }
.loader-brand img { height: 64px; width: auto; display: block; }
#loader-track { width: min(220px, 60vw); height: 2px; background: rgba(244,241,233,0.15); border-radius: 2px; overflow: hidden; }
#loader-bar { display: block; height: 100%; width: 0%; background: var(--accent); transition: width 0.25s var(--ease-out); }
#loader-percent { font-size: 0.72rem; letter-spacing: 0.15em; color: var(--on-dark-faint); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.35rem var(--side-pad);
  background: linear-gradient(to bottom, rgba(3,7,18,0.65) 0%, rgba(3,7,18,0) 100%);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out),
              border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), padding 0.4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px -22px rgba(0, 0, 0, 0.65);
  padding-top: 0.85rem; padding-bottom: 0.85rem;
}

.header-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1.5rem;
}

/* logo + wordmark */
.brand-lockup { display: flex; align-items: center; gap: 0.7rem; justify-self: start; color: #fff; }
.brand-icon { height: 38px; width: auto; display: block; transition: height 0.4s var(--ease-out); }
.brand-word {
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  color: #FFFFFF; letter-spacing: -0.01em; white-space: nowrap;
}
.site-header.is-scrolled .brand-icon { height: 32px; }

/* center nav */
.header-nav { display: flex; align-items: center; gap: 2.2rem; justify-self: center; }
.header-nav a {
  position: relative;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 5px;
  transition: color 0.3s var(--ease-out);
}
.header-nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px;
  background: var(--accent);
  transition: left 0.3s var(--ease-out), right 0.3s var(--ease-out);
}
.header-nav a:hover { color: var(--accent); }
.header-nav a:hover::after { left: 0; right: 0; }

/* right CTA */
.header-cta {
  justify-self: end;
  display: inline-flex; align-items: center;
  background: var(--accent); color: #0C2313;
  font-family: var(--font-body); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.header-cta:hover {
  background: #93e46e;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(126, 217, 87, 0.5);
}

/* five nav items + wordmark + button need real room — collapse before it crowds */
@media (max-width: 1100px) {
  .header-nav { display: none; }
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
}
@media (max-width: 560px) {
  .brand-word { display: none; }
  .header-cta { padding: 0.62rem 1.05rem; font-size: 0.68rem; }
}

/* ==========================================================================
   Global floating CTA — the single CTA for the whole site.
   Compact circle at rest (so it can never sit over a face or headline at
   common desktop widths); expands to reveal its label on hover/focus, which
   is a transient, user-initiated state rather than a persistent occlusion.
   ========================================================================== */
.floating-cta {
  position: fixed;
  top: 50%; right: clamp(1rem, 2.2vw, 1.75rem);
  transform: translateY(-50%);
  z-index: 300;
  display: inline-flex; align-items: center;
  height: 56px; width: 56px;
  background: var(--accent);
  color: #0C2313;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  transition: width 0.4s var(--ease-out), background 0.3s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.floating-cta-icon {
  flex: none; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.floating-cta-label {
  flex: none;
  font-family: var(--font-body); font-weight: 700; font-size: 0.84rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  padding-right: 1.25rem;
}
.floating-cta:hover,
.floating-cta:focus-visible {
  width: 208px;
  background: #93e46e;
  box-shadow: 0 18px 38px -10px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.1);
}
.floating-cta:hover .floating-cta-label,
.floating-cta:focus-visible .floating-cta-label { opacity: 1; transition: opacity 0.3s var(--ease-out) 0.12s; }

@media (max-width: 900px) {
  .floating-cta {
    top: auto; right: 50%;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(50%);
  }
  .floating-cta:hover, .floating-cta:focus-visible { transform: translateX(50%); }
}

/* ==========================================================================
   Hero — cinematic. The video is the protagonist; the phrase is a brief
   intro line; nothing else. The whole section is guaranteed to fit in a
   single 100svh viewport: phrase and scroll-cue are fixed-size flex
   children, the video wrapper is the only flexible one (flex:1, min-height:0)
   so it always absorbs exactly whatever space is left — never overflow.
   ========================================================================== */
.hero-cinematic {
  position: relative;
  height: 100svh; min-height: 560px;
  background: var(--hero-bg);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(4.25rem, 7.5vh, 5.25rem) var(--side-pad) clamp(0.9rem, 2vh, 1.3rem);
  text-align: center;
}

.hero-phrase {
  flex: none;
  font-family: var(--font-cinema);
  font-weight: 300;
  color: #FFFFFF;
  font-size: clamp(1.5rem, 0.45rem + 2.15vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(0.7rem, 1.8vh, 1.1rem);
  max-width: 90vw;
}
.hero-phrase .title-line--soft { font-weight: 300; }
.hero-accent { font-style: normal; color: var(--accent); font-weight: 400; }
.text-accent { font-style: normal; color: var(--accent); font-weight: 400; }

.hero-player-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
}

.hero-player {
  position: relative;
  height: 100%;
  max-height: 80vh;
  width: auto;
  max-width: 94vw;
  aspect-ratio: 21 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(126, 217, 87, 0.12),
    0 0 70px -18px rgba(126, 217, 87, 0.28),
    0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.hero-player-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-scrolldown {
  flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  margin-top: clamp(0.7rem, 1.8vh, 1.1rem);
  color: var(--on-dark-faint);
}
.hero-scrolldown span { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; font-family: var(--font-body); }
.hero-scrolldown-arrow { animation: heroArrowBounce 1.8s ease-in-out infinite; color: var(--accent); }
@keyframes heroArrowBounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(6px); opacity: 1; } }

/* ==========================================================================
   Signals section — 2-column premium composition, fits exactly in 100vh
   ========================================================================== */
.signals-section {
  height: 100vh; min-height: 600px;
  background: var(--ink);
  color: var(--on-dark);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(5.5rem, 11vh, 7.25rem) var(--side-pad) clamp(2rem, 5vh, 3rem);
  overflow: hidden;
}
.signals-grid {
  width: 100%; max-width: 1220px; height: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.signals-col-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }

.signals-heading {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--on-dark);
  font-size: clamp(1.7rem, 1rem + 2vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
}
.signals-lead {
  margin-top: clamp(0.9rem, 2vh, 1.25rem);
  color: var(--on-dark-soft);
  font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.05rem);
  line-height: 1.65;
  max-width: 42ch;
}

.signals-cards {
  list-style: none; margin: clamp(1.4rem, 3.2vh, 2.1rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.55rem, 1.1vw, 0.75rem);
}
.signals-cards li {
  display: flex; align-items: center; gap: 0.6rem;
  padding: clamp(0.7rem, 1.6vh, 0.95rem) clamp(0.8rem, 1.3vw, 1.05rem);
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
  font-size: clamp(0.8rem, 0.4vw + 0.68rem, 0.9rem);
  font-weight: 600;
  color: var(--on-dark);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.signals-cards li span {
  flex: none;
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.76rem; color: var(--accent);
}
.signals-cards li:hover { border-color: rgba(126, 217, 87, 0.55); background: rgba(126, 217, 87, 0.06); transform: translateY(-2px); }

.signals-col-image { height: 100%; max-height: 100%; border-radius: 24px; overflow: hidden; }
.signals-col-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   How it works — timeline
   ========================================================================== */
.how-section { background: var(--paper); padding: clamp(5rem, 12vh, 9rem) 0; }
.how-section .section-heading { max-width: 20ch; }

.timeline {
  list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.6rem;
  position: relative;
}
.timeline-step { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.timeline-thumb {
  aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 40px -22px rgba(13,20,32,0.35);
}
.timeline-thumb img { width: 100%; height: 100%; object-fit: cover; }
.timeline-num {
  font-family: var(--font-display); font-size: 2.6rem; color: var(--accent-deep);
  opacity: 0.55; line-height: 1;
}
.timeline-step p { font-size: 0.98rem; color: var(--ink-soft); max-width: 22ch; }
.timeline-progress { position: relative; height: 1px; background: var(--hairline); margin-top: -1px; display: none; }
#timeline-progress-bar { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: var(--accent-deep); }

/* ==========================================================================
   Platform section — 2-column composition, fits exactly in 100vh
   ========================================================================== */
.platform-section {
  height: 100vh; min-height: 600px;
  background: var(--ink);
  color: var(--on-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(5.25rem, 7vh, 5.5rem) var(--side-pad) clamp(1.1rem, 1.8vh, 1.3rem);
  overflow: hidden;
}
.platform-header { flex: none; text-align: center; padding-bottom: clamp(0.6rem, 1vh, 0.75rem); }
.platform-heading {
  font-family: var(--font-display); font-weight: 500; color: #fff;
  font-size: clamp(1.7rem, 1rem + 2vw, 2.65rem);
  line-height: 1.12;
  max-width: 46ch; margin: 0 auto;
}
.platform-grid-wrap {
  flex: 1 1 auto; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.platform-grid {
  width: 100%; max-width: 1220px; height: 100%;
  display: grid; grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.platform-col-image { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; }
.platform-col-image img {
  max-width: 90%; max-height: 90%; width: auto; height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.07);
}

.platform-col-features { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.feature-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: clamp(0.65rem, 1.3vh, 0.9rem);
}
.feature-list li {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.1rem, 0.85rem + 0.7vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--on-dark);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.feature-list li::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(126, 217, 87, 0.16);
}
.feature-list li:hover { transform: translateX(5px); opacity: 0.82; }

/* ==========================================================================
   Final section — one static, full-bleed emotional photograph.
   The image is the protagonist; text is a brief, left-aligned complement.
   ========================================================================== */
.finale-section {
  position: relative;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  display: flex; align-items: center;
  background: var(--ink);
}
.finale-bg { position: absolute; inset: 0; }
.finale-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.finale-scrim { position: absolute; inset: 0; background: rgba(6, 9, 8, 0.3); }

.finale-content {
  position: relative; z-index: 2;
  max-width: 500px;
  padding: 0 var(--side-pad);
}
.finale-heading {
  font-family: var(--font-display); font-weight: 500;
  color: #FFFFFF;
  font-size: clamp(1.9rem, 1.15rem + 2.4vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 26px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.35);
}
.finale-subtitle {
  margin-top: clamp(1.1rem, 2.4vh, 1.6rem);
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 0.92rem + 0.3vw, 1.15rem);
  line-height: 1.65;
  text-shadow: 0 2px 18px rgba(0,0,0,0.4);
}

/* ==========================================================================
   404 page
   ========================================================================== */
.error-page {
  min-height: 100svh;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(6.5rem, 13vh, 8.5rem) var(--side-pad) 5rem;
}
.error-inner { max-width: 46ch; }
.error-code {
  display: block;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(4rem, 6vw + 1rem, 6.5rem);
  line-height: 1; color: var(--accent);
}
.error-title {
  margin-top: 1rem;
  font-family: var(--font-display); font-weight: 500; color: #fff;
  font-size: clamp(1.6rem, 1rem + 2vw, 2.3rem); line-height: 1.25;
}
.error-text { margin-top: 1.1rem; color: var(--on-dark-soft); font-size: 1.02rem; line-height: 1.7; }
.error-actions { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, var(--ink) 0%, #0A0F19 100%);
  color: var(--on-dark-soft);
  padding: clamp(4rem, 8vh, 5.5rem) var(--side-pad) 0;
  border-top: 1px solid var(--hairline-dark);
}
.footer-inner { max-width: 1440px; margin: 0 auto; }

/* top row — 4 equal columns in a single line: logo | links | contact | company */
.footer-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 2.5rem;
  padding-bottom: clamp(2.75rem, 6vh, 4rem);
}

.footer-col { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col-logo { align-items: flex-start; justify-content: center; }
.footer-inner .brand-mark { color: var(--on-dark); display: inline-flex; }
.footer-col-logo img { height: clamp(90px, 8vw, 110px); width: auto; }

.footer-col-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--on-dark-faint); margin-bottom: 0.2rem;
}
.footer-col a {
  width: fit-content;
  font-size: 0.92rem; font-weight: 400; color: var(--on-dark-soft);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: color 0.25s var(--ease-out), text-decoration-color 0.25s var(--ease-out);
}
.footer-col a:hover { color: var(--accent); text-decoration-color: rgba(126,217,87,0.5); }
.footer-col p { margin: 0; font-size: 0.92rem; color: var(--on-dark-soft); }

.footer-contact-item { display: flex; align-items: center; gap: 0.65rem; }
.footer-contact-item svg { flex: none; color: var(--on-dark-faint); transition: color 0.25s var(--ease-out); }
.footer-contact-item:hover svg { color: var(--accent); }

/* bottom bar — full-width divider, centered copyright */
.footer-bottom {
  border-top: 1px solid var(--hairline-dark);
  padding: 1.75rem 0 2rem;
  text-align: center;
  font-size: 0.78rem; line-height: 1.7; color: var(--on-dark-faint);
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Reveal animation base states (GSAP controls the "in" state)
   ========================================================================== */
[data-reveal] { will-change: transform, opacity; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-scrolldown-arrow { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   Legal pages (Privacidade / Cookies / Termos) — plain, readable documents
   ========================================================================== */
.legal-page { background: var(--ink); }

.legal-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.84rem; color: var(--on-dark-faint);
  transition: color 0.25s var(--ease-out);
}
.legal-back:hover { color: var(--accent); }
.legal-back svg { flex: none; }

.legal-hero {
  padding: clamp(7rem, 15vh, 9.5rem) var(--side-pad) clamp(2.5rem, 5vh, 3.5rem);
  border-bottom: 1px solid var(--hairline-dark);
}
.legal-hero-inner { max-width: 760px; margin: 0 auto; }
.legal-eyebrow {
  display: block; margin-top: 1.6rem; margin-bottom: 1.1rem;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent);
}
.legal-title {
  font-family: var(--font-display); font-weight: 500; color: #fff;
  font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.2rem);
  line-height: 1.1; letter-spacing: -0.01em;
}
.legal-updated { margin-top: 1.1rem; font-size: 0.88rem; color: var(--on-dark-faint); }
.legal-intro { margin-top: 1.4rem; font-size: 1.05rem; line-height: 1.7; color: var(--on-dark-soft); max-width: 62ch; }

.legal-body { padding: 0 var(--side-pad) clamp(5rem, 10vh, 7rem); }

.legal-toc {
  max-width: 760px; margin: clamp(2.5rem, 5vh, 3.5rem) auto 0;
  padding: 1.6rem 1.85rem;
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.legal-toc-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--on-dark-faint); margin-bottom: 1rem; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem 1.5rem; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 0.65rem; font-size: 0.94rem; color: var(--on-dark-soft); transition: color 0.25s var(--ease-out); }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; font-family: var(--font-display); color: var(--accent); }
.legal-toc a:hover { color: #fff; }

.legal-article { max-width: 760px; margin: 0 auto; }
.legal-article section { padding-top: clamp(2.75rem, 5.5vh, 3.75rem); scroll-margin-top: 5.5rem; }
.legal-article section:first-of-type { padding-top: clamp(3.25rem, 6.5vh, 4.25rem); }
.legal-article h2 {
  font-family: var(--font-display); font-weight: 500; color: #fff;
  font-size: clamp(1.35rem, 1rem + 1.1vw, 1.85rem);
  line-height: 1.22;
  margin-bottom: 1.15rem; padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--hairline-dark);
}
.legal-article p { color: var(--on-dark-soft); font-size: 1rem; line-height: 1.78; margin: 1rem 0 0; }
.legal-article section > p:first-of-type,
.legal-article section > h2 + p { margin-top: 0; }
.legal-article ul, .legal-article ol.legal-list {
  margin: 1.1rem 0 0; padding-left: 1.3rem;
  color: var(--on-dark-soft); font-size: 1rem; line-height: 1.7;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.legal-article li::marker { color: var(--accent); }
.legal-article strong { color: var(--on-dark); font-weight: 600; }
.legal-article a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(126,217,87,0.4); text-underline-offset: 3px; }
.legal-article a:hover { text-decoration-color: var(--accent); }

.legal-footnote {
  max-width: 760px; margin: clamp(3rem, 6vh, 4rem) auto 0;
  padding-top: 1.75rem; border-top: 1px solid var(--hairline-dark);
  font-size: 0.9rem; color: var(--on-dark-faint); line-height: 1.7;
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 900px) {
  .section-inner { padding: 0 1.4rem; }

  .legal-hero, .legal-body { padding-left: 1.4rem; padding-right: 1.4rem; }
  .legal-toc ol { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .footer-col-logo { align-items: flex-start; }
  /* the floating CTA becomes a bottom-fixed FAB at this width — keep the
     copyright line clear of it instead of letting the FAB sit on top of it */
  .footer-bottom { padding-bottom: 6rem; }

  .hero-cinematic { padding: 5rem 1.2rem 1.5rem; }
  .hero-phrase { max-width: 100%; font-size: clamp(1.5rem, 1.1rem + 3vw, 2.1rem); }
  .hero-player { max-width: 92vw; width: 92vw; height: auto; max-height: none; border-radius: 16px; }

  .finale-content { max-width: 100%; }
  .finale-bg img { object-position: 66% center; }

  .signals-section { height: auto; min-height: 100svh; padding: 6.5rem 1.4rem 3rem; }
  .signals-grid { grid-template-columns: 1fr; height: auto; gap: 2.25rem; }
  .signals-col-image { height: 280px; order: -1; }
  .signals-cards { grid-template-columns: repeat(2, 1fr); }

  .timeline { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1.2rem; }

  .platform-section { height: auto; min-height: 100svh; padding: 6.5rem 1.4rem 3.5rem; }
  .platform-grid { grid-template-columns: 1fr; height: auto; gap: 2.5rem; }
  .platform-col-image { height: auto; }
  .platform-col-image img { max-height: 46vh; }
}

@media (max-width: 560px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-col-logo img { height: 84px; }
}
