@import url('fonts.css');

/* ============ TOKENS ============ */
:root{
  --blue: #4372ad;
  --blue-mid: #35578c;
  --blue-deep: #21365a;
  --navy: #091242;
  --yellow: #ffe600;
  --yellow-deep: #e0c400;
  --cream: #f3efe2;
  --cream-soft: #c7cee0;
  --paper: #f6f3ea;
  --paper-deep: #ece5d2;
  --ink: #12213b;
  --ink-soft: #4f5d7c;

  --font-display: 'Tusker Grotesk', 'Arial Narrow', sans-serif;
  --font-heading: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Poppins', ui-sans-serif, system-ui, sans-serif;

  --wrap: 1180px;
  --edge: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }

/* ============ INTRO LOADER ============ */
.intro-loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  background: var(--navy);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.intro-loader.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-logo{
  height: clamp(6rem, 16vw, 14rem);
  width: auto;
  flex: none;
}
.intro-scramble{
  display: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-soft);
  white-space: nowrap;
}
@media (min-width: 720px){
  .intro-scramble{ display: block; }
}
.intro-scramble-left{ text-align: right; }
.intro-scramble-right{ text-align: left; }

::selection{ background: var(--yellow); color: var(--navy); }

a:focus-visible,
button:focus-visible{
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

h1, h2, h3{
  font-family: var(--font-heading);
  font-weight: 800;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

.wrap{
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--edge);
}

/* ============ FLOATING CHALK ICONS ============ */
.floaters{ position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.floaters svg{
  position: absolute;
  opacity: 0.55;
  animation: drift 9s ease-in-out infinite;
}
@keyframes drift{
  0%, 100%{ transform: translateY(0) rotate(var(--r, 0deg)); }
  50%{ transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 3deg)); }
}

/* ============ FLOATING BLOBS ============ */
.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: blobfloat 12s ease-in-out infinite;
}
@keyframes blobfloat{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-14px, 22px) scale(1.06); }
}

/* ============ MASTHEAD LOGO ============ */
.masthead{
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.masthead-logo{
  position: relative;
  z-index: 1;
  height: clamp(10rem, 20vw, 18rem);
  width: auto;
  max-width: 100%;
}
.pomba-badge{
  position: absolute;
  top: 1.8rem;
  right: var(--edge);
  z-index: 3;
  height: 2.1rem;
  width: auto;
  opacity: 0.92;
}

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(175deg, rgba(9,18,66,0.42), rgba(9,18,66,0.72) 55%, var(--navy) 100%),
    url('../img/bg-blue.jpg') center/cover no-repeat;
  color: var(--cream);
  overflow: hidden;
  padding-block: 1.8rem 4rem;
}
.hero::before{
  content: '';
  position: absolute; inset: 0;
  background: url('../img/texture-1.jpg') center/cover no-repeat;
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}

canvas#dust{
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
}

.hero .wrap{ position: relative; z-index: 2; }
.hero > .wrap{ max-width: 1400px; }

.hero-grid{
  display: grid;
  grid-template-columns: minmax(0,0.95fr) minmax(0,1.15fr);
  align-items: end;
  gap: 2rem;
  margin-top: 1.5rem;
}

.hero h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 15ch;
}

.hero h1 em{
  font-style: normal;
  color: var(--yellow);
}

.hero h1 .word{
  display: inline-block;
  white-space: nowrap;
}
.hero h1 .letter{
  display: inline-block;
  will-change: transform;
}

.hero-sub{
  margin-top: 1.75rem;
  max-width: 46ch;
  color: var(--cream-soft);
  font-size: 1.24rem;
}

.hero-meta{
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(243,239,226,0.16);
  max-width: 40rem;
}
.hero-meta div span{ display: block; }
.hero-meta .num{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.3rem;
  color: var(--yellow);
}
.hero-meta .label{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-soft);
  margin-top: 0.25rem;
}

.hero-portrait{
  position: relative;
  justify-self: center;
  max-width: 760px;
  width: 100%;
  transform: scale(var(--user-scale, 1));
  filter: drop-shadow(0 30px 50px rgba(9,18,66,0.55));
  animation: portraitfloat 7s ease-in-out infinite;
  mask-image: linear-gradient(to bottom, #000 78%, transparent 98%);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 98%);
}
@keyframes portraitfloat{
  0%, 100%{ transform: translateY(0) scale(var(--user-scale, 1)); }
  50%{ transform: translateY(-14px) scale(var(--user-scale, 1)); }
}

.scroll-cue{
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--cream-soft);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-cue span{
  width: 1px; height: 2rem;
  background: linear-gradient(var(--yellow), transparent);
  animation: scrolldown 1.8s ease-in-out infinite;
}
@keyframes scrolldown{
  0%{ transform: scaleY(0); transform-origin: top; opacity: 0.3;}
  50%{ transform: scaleY(1); transform-origin: top; opacity: 1;}
  51%{ transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; opacity: 0.3;}
}

/* ============ SECTION SCAFFOLDING ============ */
section{ position: relative; }

.section-paper{
  background:
    linear-gradient(180deg, var(--paper), var(--paper) 60%, var(--paper-deep)),
    url('../img/texture-3.png') center/cover no-repeat;
  background-blend-mode: normal, soft-light;
  color: var(--ink);
  padding-block: 6rem;
}

.section-board{
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--blue-mid), var(--blue-deep) 55%, var(--navy));
  color: var(--cream);
  padding-block: 6rem;
  overflow: hidden;
}
.section-board::before{
  content: '';
  position: absolute; inset: 0;
  background: url('../img/texture-2.png') center/cover no-repeat;
  mix-blend-mode: overlay;
  opacity: 0.25;
  pointer-events: none;
}
.section-board > .wrap{ position: relative; z-index: 1; }

.section-head{
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 24ch;
  margin-bottom: 2.25rem;
}

.reveal{ opacity: 0; }

/* ============ BIO ============ */
.bio-statement{
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
}
.bio-statement p{
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.55;
  color: var(--ink);
}
.bio-statement p + p{ margin-top: 1.75rem; }

.hl{ color: var(--blue); font-weight: 700; }

.chalk-mark{
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.chalk-mark::after{
  content: '';
  position: absolute;
  left: -0.15em; right: -0.15em; bottom: -0.05em;
  height: 0.5em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M2 12 Q 30 3 60 10 T 120 9 T 198 11' fill='none' stroke='%23e0c400' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  z-index: -1;
}

/* ============ LEGACY / CHIPS ============ */
.legacy-statement{
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
}
.legacy-programs{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin: 2rem 0 0;
}
.legacy-programs li{
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.65rem 1.3rem;
  border: 1.5px solid var(--yellow);
  border-radius: 2px;
  color: var(--cream);
}

.legacy-text{
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.55;
}
.section-board .hl{ color: var(--yellow); }

/* ============ TRANSITION LINE ============ */
.transition-line{
  padding-block: 3.5rem;
  background: var(--navy);
  color: var(--cream);
  text-align: center;
}
.transition-line p{
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--yellow);
  max-width: 20ch;
  margin-inline: auto;
}

/* ============ GRAVITY (incidents) ============ */
.gravity-layout{
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 3rem;
  align-items: start;
}
.gravity p{
  font-size: 1.2rem;
  line-height: 1.85;
  max-width: 66ch;
}
.gravity .flag{
  color: var(--yellow);
  font-weight: 700;
}
.gravity .framed-photo{ width: 190px; }
.legacy, .gravity{ padding-block: 4rem; }
.framed-photo{
  width: 380px;
  max-width: 100%;
  border: 6px solid var(--cream);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,230,0,0.15), 0 30px 60px -20px rgba(255,230,0,0.25);
  transform: rotate(-2deg) scale(var(--user-scale, 1));
  transition: transform 0.4s ease;
}
.framed-photo:hover{ transform: rotate(0deg) scale(calc(var(--user-scale, 1) * 1.02)); }
.framed-photo img{ display: block; width: 100%; }

/* ============ CREDENTIALS ============ */
.cred-grid{
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 3rem;
  align-items: center;
}
.cred-grid p{ font-size: 1.2rem; }

.cred-timeline{
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.cred-timeline::before{
  content: '';
  position: absolute;
  left: 1.55rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(var(--blue), transparent);
  opacity: 0.35;
}
.cred-timeline li{
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
.cred-timeline li:first-child{ padding-top: 0; }
.cred-timeline li + li{ border-top: 1px solid rgba(18,33,59,0.08); }
.cred-num{
  position: relative;
  z-index: 1;
  flex: none;
  width: 3.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--blue);
  background: var(--paper);
}
.cred-kicker{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.3rem;
}
.cred-value{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}
.cred-grid .framed-photo{
  border-color: var(--paper);
  transform: rotate(2deg) scale(var(--user-scale, 1));
}
.cred-grid .framed-photo:hover{ transform: rotate(0deg) scale(calc(var(--user-scale, 1) * 1.02)); }

/* ============ MANIFESTO ============ */
.manifesto-layout{
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 3rem;
  align-items: start;
}
.manifesto p{
  font-size: 1.45rem;
  line-height: 1.7;
  max-width: 60ch;
}
.manifesto p + p{ margin-top: 1.5rem; }
.manifesto p:last-child{
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--yellow);
}
.manifesto .framed-photo{
  transform: rotate(-2deg) scale(var(--user-scale, 1));
}
.manifesto .framed-photo:hover{ transform: rotate(0deg) scale(calc(var(--user-scale, 1) * 1.02)); }

/* ============ VOTE BANNER ============ */
.vote-banner{
  background: var(--yellow);
  color: var(--navy);
  padding-block: 3.5rem;
  overflow: hidden;
}
.vote-banner .wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.vote-banner h2{
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.06;
}
.vote-banner .num-big{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}

/* ============ INSTAGRAM GALLERY ============ */
.insta-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.insta-follow{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(243,239,226,0.3);
  padding: 0.7rem 1.1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.insta-follow:hover{ border-color: var(--yellow); color: var(--yellow); }

.insta-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 1.75rem 1.25rem;
}
.insta-grid > :nth-child(2n){ transform: translateY(1.75rem); }

.phone-mock{
  position: relative;
}
.phone-mock-shadow{
  position: absolute;
  left: 50%; bottom: -0.75rem;
  transform: translateX(-50%);
  width: 78%; height: 1.5rem;
  background: radial-gradient(50% 100% at 50% 50%, rgba(0,0,0,0.45), transparent 70%);
  filter: blur(4px);
  z-index: 0;
}
.phone-mock-frame{
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #0a0a0a;
  border: 0;
  border-radius: 1.6rem;
  padding: 0.4rem;
  margin: 0;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 24px 50px -18px rgba(0,0,0,0.6),
    0 0 40px -10px rgba(255,230,0,0.18);
  animation: portraitfloat 8s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}
.phone-mock-frame.is-playing{ cursor: default; animation: none; }
.phone-mock-frame video{
  position: absolute;
  inset: 0.4rem;
  width: calc(100% - 0.8rem);
  height: calc(100% - 0.8rem);
  object-fit: cover;
  border: 0;
  border-radius: 1.25rem;
  background: #000;
}
.phone-mock-frame::before{
  content: '';
  position: absolute;
  top: 0.55rem; left: 50%;
  transform: translateX(-50%);
  width: 32%; height: 0.45rem;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  z-index: 3;
}
.phone-mock-screen{
  position: relative;
  display: block;
  width: 100%; height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--navy) center/cover no-repeat;
}
.phone-mock-screen img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.phone-mock-frame:hover .phone-mock-screen img{ transform: scale(1.05); }
.phone-mock-play{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: rgba(9,18,66,0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.phone-mock-play svg{ width: 1.2rem; height: 1.2rem; color: var(--cream); margin-left: 2px; }
.phone-mock-frame:hover .phone-mock-play{ transform: translate(-50%, -50%) scale(1.12); background: rgba(255,230,0,0.85); }
.phone-mock-frame:hover .phone-mock-play svg{ color: var(--navy); }

.insta-follow-cta{
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}
.btn-insta{
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(95deg, #f9ce34, #ee2a7b 45%, #6228d7);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  box-shadow: 0 14px 34px -14px rgba(238,42,123,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-insta:hover{ transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 40px -14px rgba(238,42,123,0.7); }
.btn-insta svg{ width: 1.2rem; height: 1.2rem; flex: none; }

/* ============ MODAL (cadastro/apoiar) ============ */
.modal{
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(640px, 92vw);
  max-height: 88vh;
  overflow: visible;
}
.modal::backdrop{
  background: rgba(9,18,66,0.7);
  backdrop-filter: blur(3px);
}
.modal-inner{
  position: relative;
  background: var(--paper);
  border-radius: 4px;
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal h2{ max-width: 20ch; }
.modal .lede{
  margin-top: 1rem;
  max-width: 48ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.modal-close{
  position: absolute;
  top: 1rem; right: 1rem;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(18,33,59,0.15);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover{ background: var(--navy); color: var(--cream); }
.signup-form-wrap{
  margin-top: 1.75rem;
  background: var(--paper);
  border: 1px solid rgba(18,33,59,0.1);
  overflow: hidden;
}
.signup-form-wrap iframe{
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
}
.modal-donate{
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(18,33,59,0.1);
  text-align: center;
}
.modal-donate p{ color: var(--ink-soft); margin-bottom: 1rem; }
.modal-donate .donate-note{ color: var(--ink-soft); }

/* ============ DONATE ============ */
.donate{
  background: var(--navy);
  color: var(--cream);
  padding-block: 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.donate::before{
  content: '';
  position: absolute; inset: 0;
  background: url('../img/texture-2.png') center/cover no-repeat;
  mix-blend-mode: overlay;
  opacity: 0.2;
  pointer-events: none;
}
.donate > .wrap{ position: relative; z-index: 1; }
.donate .section-head{ margin-inline: auto; }
.donate p.lede{
  max-width: 48ch;
  margin: 0 auto 2.25rem;
  font-size: 1.12rem;
  color: var(--cream-soft);
}
.btn-donate{
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 1.15rem 2.4rem;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(255,230,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-donate:hover{ transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(255,230,0,0.5); }
.btn-donate svg{ width: 1.15rem; height: 1.15rem; flex: none; }
.donate-note{
  margin-top: 1.1rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--cream-soft);
}

/* ============ LEGAL PAGES ============ */
.legal-header{
  background: var(--navy);
  padding-block: 1.6rem;
  text-align: center;
}
.legal-header img{ height: 3rem; width: auto; }
.legal-page{
  background: var(--paper);
  color: var(--ink);
  padding-block: 4rem 6rem;
}
.legal-page .wrap{ max-width: 72ch; }
.legal-page h1{
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}
.legal-updated{
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}
.legal-page h2{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--blue);
}
.legal-page p{
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1rem;
}
.legal-page ul{
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}
.legal-page li{
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.legal-page a{ color: var(--blue); }
.legal-back{
  display: inline-block;
  margin-top: 3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  color: var(--blue);
}
.legal-back:hover{ color: var(--navy); }

/* ============ MOBILE STICKY CTA ============ */
.mobile-cta{ display: none; }

/* ============ FOOTER ============ */
footer{
  background: var(--navy);
  color: var(--cream-soft);
  padding-block: 2.5rem;
  border-top: 1px solid rgba(243,239,226,0.1);
}
.foot-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.foot-brand{
  display: flex;
  align-items: center;
  gap: 1rem;
}
.foot-brand img{ height: 2.5rem; width: auto; }
.foot-brand .pomba{ height: 1.7rem; }
.foot-links{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.foot-links a{ text-decoration: none; color: var(--cream); }
.foot-links a:hover{ color: var(--yellow); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-portrait{ order: -1; max-width: 260px; margin-inline: auto; }
  .gravity-layout, .manifesto-layout{ grid-template-columns: 1fr; gap: 2rem; }
  .cred-grid{ grid-template-columns: 1fr; }
  .cred-grid .framed-photo{ order: -1; margin-inline: auto; }
  .framed-photo{ margin-inline: auto; }
  .insta-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.5rem 1rem; }
  .insta-grid > :nth-child(2n){ transform: none; }
  .vote-banner .wrap{ flex-direction: column; align-items: center; text-align: center; }
  .modal-inner{ padding-top: 3.5rem; }
  .signup-form-wrap iframe{ height: min(680px, 70vh); }
  .donate{ padding-bottom: 6.5rem; }
  footer{ padding-bottom: 6rem; }

  /* ---- centered mobile layout ---- */
  .hero h1, .hero-sub{ text-align: center; margin-inline: auto; }
  .hero-meta{ justify-content: center; text-align: center; margin-inline: auto; }
  .hero-meta div{ text-align: center; }

  .gravity p, .cred-grid p, .manifesto p{ text-align: center; margin-inline: auto; }
  .cred-timeline{ text-align: center; }
  .cred-timeline::before{ display: none; }
  .cred-timeline li{ flex-direction: column; align-items: center; gap: 0.35rem; }
  .cred-num{ width: auto; background: none; }

  .insta-head{ flex-direction: column; align-items: center; text-align: center; }

  .foot-row{ flex-direction: column; text-align: center; }
  .foot-links{ justify-content: center; }

  .modal h2, .modal .lede{ margin-inline: auto; text-align: center; }

  .mobile-cta{
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(9,18,66,0), rgba(9,18,66,0.94) 35%);
  }
  .mobile-cta-btn{
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
  }
}

@media (max-width: 560px){
  .section-paper, .section-board{ padding-block: 4rem; }
  .hero-meta{ gap: 1.6rem; }
  .legacy-programs li{ font-size: 0.95rem; padding: 0.55rem 1rem; }
  .pomba-badge{ height: 1.7rem; }
  .insta-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ============ PHOTO EDITOR (?editar) ============ */
.photo-editor{
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 999;
  width: min(340px, calc(100vw - 2rem));
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.4);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 1rem;
  max-height: 80vh;
  overflow-y: auto;
}
.photo-editor-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}
.photo-editor-head button{
  border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-soft);
}
.photo-editor-row{ margin-bottom: 0.75rem; }
.photo-editor-row label{ display: block; margin-bottom: 0.3rem; color: var(--ink-soft); font-size: 0.78rem; }
.photo-editor-controls{ display: flex; align-items: center; gap: 0.6rem; }
.photo-editor-controls input[type="range"]{ flex: 1; accent-color: var(--blue); }
.photo-editor-controls span{ font-family: var(--font-heading); font-weight: 700; width: 3.2rem; text-align: right; }
.photo-editor-foot{ display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.photo-editor-foot button{
  flex: 1;
  border: 1px solid rgba(18,33,59,0.15);
  background: var(--paper-deep);
  border-radius: 4px;
  padding: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
}
.photo-editor-foot button:hover{ background: var(--yellow); }
.photo-editor-note{ margin-top: 0.6rem; font-size: 0.7rem; color: var(--ink-soft); }
