:root {
  --forest: #2C4236;
  --forest-dark: #1F3027;
  --navy: #1C2D24;
  --warm-white: #FAF9F5;
  --text: #242A27;
  --muted: #5A6660;
  --light-gray: #F1EFEA;
  --gold: #CC5833;
  --gold-light: rgba(204, 88, 51, 0.12);
  --gold-hover: #B54928;
  --white: #ffffff;
  --border: rgba(44, 66, 54, 0.08);
  --border-strong: rgba(44, 66, 54, 0.14);
  --shadow: 0 4px 16px rgba(44, 66, 54, 0.06), 0 1px 4px rgba(44, 66, 54, 0.04);
  --shadow-lg: 0 20px 48px rgba(44, 66, 54, 0.1), 0 4px 12px rgba(44, 66, 54, 0.06);
  --radius: 1.5rem;
  --radius-lg: 2.2rem;
  --radius-sm: 0.85rem;
  --header-height: 73px;
  --header-safe-gap: clamp(1rem, 3vw, 1.5rem);
  --sticky-offset: calc(var(--header-height) + var(--header-safe-gap));
  --max-page: 1180px;
  --max-reading: 728px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-offset);
}

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover { color: var(--forest-dark); }

:focus-visible {
  outline: 3px solid rgba(204, 88, 51, 0.6);
  outline-offset: 4px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  padding: 0.65rem 0.9rem;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   HEADER — Glassmorphism premium com transformação no scroll
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(44, 66, 54, 0.07);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(250, 249, 245, 0.97);
  border-bottom-color: rgba(44, 66, 54, 0.13);
  box-shadow: 0 4px 28px rgba(44, 66, 54, 0.08);
}

.header-inner,
.footer-inner {
  width: min(100% - 2rem, var(--max-page));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: calc(var(--header-height) - 1px);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

[id] { scroll-margin-top: var(--sticky-offset); }

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(145px, 16vw, 200px);
  height: auto;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.brand-logo:hover { opacity: 0.88; transform: translateY(-1px); }

/* =========================
   NAVBAR — Links com underline animado
   ========================= */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
}

.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--navy);
  transition: color 0.25s ease, background 0.25s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  bottom: 0.2rem;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.primary-nav a:hover {
  color: var(--forest-dark);
  background: rgba(44, 66, 54, 0.05);
}

.primary-nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.menu-toggle-line,
.menu-toggle-line::before,
.menu-toggle-line::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle-line { position: relative; }
.menu-toggle-line::before,
.menu-toggle-line::after {
  position: absolute;
  left: 0;
  content: "";
}
.menu-toggle-line::before { transform: translateY(-7px); }
.menu-toggle-line::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] .menu-toggle-line { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-line::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-line::after { transform: rotate(-45deg); }

/* =========================
   ARTIGO & HERO
   ========================= */
.article-shell {
  width: min(100% - 2rem, var(--max-page));
  margin: 0 auto;
}

.hero {
  padding: 4.5rem 0 2.25rem;
}

.article-meta,
.eyebrow,
.sidebar-kicker {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.article-content h2,
.article-content h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  line-height: 1.1;
}

.hero h1 {
  max-width: 940px;
  font-size: clamp(2.28rem, 5vw, 4.55rem);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  max-width: 760px;
  margin: 1.25rem 0 1.3rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.byline span + span { position: relative; }
.byline span + span::before {
  position: absolute;
  left: -0.68rem;
  color: var(--border);
  content: "/";
}

/* Hero Media */
.image-frame {
  position: relative;
  display: grid;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eef6f1, #f7fbfc);
  box-shadow: var(--shadow-lg);
}

.hero-media {
  aspect-ratio: 16 / 9;
  margin: 0;
  min-height: 0;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 14s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-media:hover img { transform: scale(1.04); }

.image-frame::after {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 2rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  content: attr(data-placeholder);
}
.image-frame.image-missing img { display: none; }
.image-frame.image-missing::after { display: grid; }

/* =========================
   CONTENT GRID & INTRO
   ========================= */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--max-reading)) minmax(220px, 300px);
  gap: clamp(2rem, 5vw, 4.75rem);
  align-items: start;
  padding: 1.5rem 0 4.5rem;
}

.article-content { min-width: 0; }

.intro {
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.intro p:first-child {
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.68;
}

.article-content p { margin: 0.8rem 0 0; }

.article-content h2 {
  margin-top: 3rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

/* =========================
   HABIT CARDS — REDESENHO PREMIUM
   ========================= */
.habits-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.habit-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 1.65rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s, border-color 0.35s;
  cursor: default;
}

.habit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(44, 66, 54, 0.18);
  box-shadow: 0 24px 52px rgba(44, 66, 54, 0.1), 0 6px 16px rgba(44, 66, 54, 0.06);
}

/* Destaque no card 04 */
.habit-card.featured {
  border-color: rgba(44, 66, 54, 0.2);
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--warm-white);
}

.habit-card.featured .article-content h3,
.habit-card.featured h3 {
  color: var(--warm-white);
}

.habit-card.featured p {
  color: rgba(242, 242, 235, 0.82);
}

.habit-card.featured .habit-number {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--warm-white);
}

/* Número em tipografia grande e forte */
.habit-number {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  align-self: flex-start;
  border-radius: 50%;
  background: var(--gold-light);
  border: 1.5px solid rgba(204, 88, 51, 0.22);
  color: var(--gold);
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.habit-card-content h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
  font-family: "Manrope", sans-serif;
}

.habit-card-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* =========================
   SEÇÃO DE MANIFESTO (Transition Bridge)
   ========================= */
.recommendation-bridge {
  position: relative;
  margin-top: 3rem;
  margin-bottom: 2rem;
  padding: 2.5rem 2.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--warm-white);
  overflow: hidden;
}

.recommendation-bridge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='white' opacity='0.06'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.recommendation-bridge h2 {
  position: relative;
  margin: 0 0 0.8rem;
  color: var(--warm-white);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.15;
}

.recommendation-bridge p {
  position: relative;
  margin: 0;
  color: rgba(250, 249, 245, 0.8);
  font-size: 1.06rem;
  line-height: 1.7;
}

.recommendation-bridge p + p { margin-top: 0.65rem; }

/* =========================
   RECOMMENDATION CARD (Produto)
   ========================= */
.recommendation-card {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(0, 3fr);
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: center;
  margin-top: 2.25rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--white) 60%, #f5f8f5 100%);
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s;
}

.recommendation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(44, 66, 54, 0.12);
}

.product-media {
  display: grid;
  align-self: stretch;
  min-width: 0;
  place-items: center;
  padding: clamp(0.15rem, 1vw, 0.45rem);
  background: transparent;
}

.product-media img {
  width: min(100%, 340px);
  max-height: 340px;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.product-copy { min-width: 0; }

.product-copy .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
}

.product-copy h2 {
  margin: 0 0 0.9rem;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.16;
}

.product-copy p { color: #40525a; }

.product-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.product-list li {
  position: relative;
  padding-left: 1.75rem;
  color: #34464e;
  font-weight: 600;
  line-height: 1.45;
}

.product-list li::before {
  position: absolute;
  top: 0.46rem;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(204, 88, 51, 0.16);
  content: "";
}

/* =========================
   BOTÃO — CTA premium em Terracota
   ========================= */
.recommendation-card .button {
  min-width: min(100%, 300px);
  margin-top: 1.5rem;
  padding: 0.95rem 1.75rem;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--white) !important;
  padding: 0.78rem 1.75rem;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(204, 88, 51, 0.28);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
}

.button:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 36px rgba(204, 88, 51, 0.36);
}

.btn-text {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.btn-slide {
  position: absolute;
  inset: 0;
  background: var(--gold-hover);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.button:hover .btn-slide { transform: translateY(0); }

/* =========================
   DISCLOSURE & NOTAS
   ========================= */
.affiliate-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.disclosure,
.professional-note {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  color: #34464e;
  font-size: 0.95rem;
  line-height: 1.65;
}

.disclosure {
  border: 1px solid rgba(204, 88, 51, 0.22);
  background: rgba(204, 88, 51, 0.05);
  padding: 1rem 1.2rem;
}

.professional-note {
  border-left: 4px solid var(--forest);
  background: rgba(44, 66, 54, 0.05);
  padding: 1rem 1.2rem;
}

/* =========================
   SIDEBAR — Sticky com active state dinâmico
   ========================= */
.article-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-panel {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
}

.sidebar-kicker {
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-panel a {
  display: block;
  padding: 0.48rem 0.6rem;
  border-radius: 0.5rem;
  color: var(--navy);
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease;
}

.sidebar-panel a:hover {
  background: rgba(44, 66, 54, 0.05);
  color: var(--forest-dark);
  border-left-color: var(--gold);
  padding-left: 0.9rem;
}

.sidebar-panel a.active {
  color: var(--gold);
  background: var(--gold-light);
  border-left-color: var(--gold);
  font-weight: 800;
  padding-left: 0.9rem;
}

/* =========================
   FOOTER — Identidade sólida e escura
   ========================= */
.site-footer {
  background: var(--navy);
  color: rgba(250, 249, 245, 0.7);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
  border-radius: 2.5rem 2.5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  display: inline-block;
  text-decoration: none;
  color: var(--warm-white);
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  transition: opacity 0.3s ease;
}

.footer-brand:hover { opacity: 0.85; }

.footer-inner p {
  margin: 0.5rem 0 0;
  font-size: 0.93rem;
  color: rgba(250, 249, 245, 0.55);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: flex-end;
  align-self: center;
}

.footer-nav a {
  color: rgba(250, 249, 245, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--warm-white);
  transform: translateY(-2px);
}

.footer-divider {
  width: min(100% - 2rem, var(--max-page));
  margin: 2rem auto 1.25rem;
  height: 1px;
  background: rgba(250, 249, 245, 0.1);
  border: none;
}

.copyright {
  width: min(100% - 2rem, var(--max-page));
  margin: 0 auto;
  font-size: 0.88rem;
  color: rgba(250, 249, 245, 0.38);
}

/* ========================= 
   VARIAÇÃO DE FUNDO ENTRE SEÇÕES
   ========================= */
.section-alt {
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: -1.5rem -9999px;
  background: linear-gradient(180deg, transparent, rgba(44, 66, 54, 0.03) 40%, rgba(44, 66, 54, 0.03) 60%, transparent);
  pointer-events: none;
}

/* ========================= 
   RESPONSIVIDADE
   ========================= */
@media (max-width: 860px) {
  :root { --header-height: 67px; }

  body { font-size: 16px; }

  .header-inner { min-height: calc(var(--header-height) - 1px); }

  .menu-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(250, 249, 245, 0.97);
    backdrop-filter: blur(16px);
    padding: 0.45rem;
    box-shadow: var(--shadow-lg);
  }

  .primary-nav.is-open { display: flex; }

  .primary-nav a {
    border-radius: 0.5rem;
    padding: 0.78rem 0.85rem;
  }

  .primary-nav a::after { display: none; }

  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    background: var(--light-gray);
  }

  .hero { padding: 3rem 0 1rem; }

  .content-grid { display: block; padding-bottom: 3.25rem; }

  .article-sidebar { display: none; }

  .recommendation-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .product-media {
    justify-items: center;
    padding: 0.1rem 0 0.35rem;
  }

  .product-media img { width: min(100%, 300px); max-width: 300px; }

  .recommendation-card .button { width: 100%; }

  .footer-inner { grid-template-columns: 1fr; }

  .footer-nav { justify-content: flex-start; }

  .recommendation-bridge { padding: 1.75rem; }
}

@media (max-width: 560px) {
  .article-shell,
  .header-inner,
  .footer-inner,
  .copyright {
    width: min(100% - 1.25rem, var(--max-page));
  }

  .brand-logo { width: clamp(140px, 42vw, 165px); }

  .hero h1 { font-size: 2.15rem; }

  .byline { display: grid; gap: 0.28rem; }
  .byline span + span::before { content: none; }

  .hero-media { aspect-ratio: 4 / 3; }

  .habit-card {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .button { width: 100%; }

  .site-footer { border-radius: 1.5rem 1.5rem 0 0; }
}

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

/* ========================= 
   PÁGINAS LEGAIS — Premium
   ========================= */
.legal-page {
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--white) 38%, var(--warm-white) 100%);
}

.legal-site-header { position: sticky; }
.legal-header-inner { min-width: 0; }

.legal-nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.legal-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--navy);
  padding: 0.58rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  background: rgba(44, 66, 54, 0.06);
  color: var(--forest-dark);
  border-color: rgba(44, 66, 54, 0.22);
}

.legal-main {
  width: min(100% - 2rem, 920px);
  margin: 0 auto;
  padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.legal-shell {
  border: 1px solid rgba(44, 66, 54, 0.1);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.legal-hero {
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, var(--white) 60%, rgba(44, 66, 54, 0.04) 100%);
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.legal-subtitle {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.legal-content {
  display: grid;
  gap: 0;
  padding: 0;
}

.legal-content section {
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 5vw, 3rem);
  border-bottom: 1px solid rgba(44, 66, 54, 0.07);
  transition: background 0.25s ease;
}

.legal-content section:last-child {
  padding-bottom: clamp(1.5rem, 5vw, 2.5rem);
  border-bottom: 0;
}

.legal-content section:hover {
  background: rgba(44, 66, 54, 0.02);
}

.legal-content h2 {
  margin: 0 0 0.65rem;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.22rem, 2.4vw, 1.55rem);
  line-height: 1.2;
}

.legal-content p {
  margin: 0.7rem 0 0;
  color: #34464e;
  line-height: 1.72;
}

.legal-content a {
  color: var(--gold);
  font-weight: 700;
}

.legal-content a:hover { color: var(--gold-hover); }

.contact-panel {
  border: 1.5px solid rgba(44, 66, 54, 0.15);
  border-radius: var(--radius);
  background: rgba(44, 66, 54, 0.04);
  padding: 1.25rem 1.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 560px) {
  .legal-main {
    width: min(100% - 1.25rem, 920px);
    padding-top: 2rem;
  }

  .legal-header-inner { gap: 0.75rem; }

  .legal-nav a {
    min-height: 40px;
    padding: 0.5rem 0.65rem;
    font-size: 0.86rem;
  }
}

/* ============================================================
   NOISE OVERLAY + SCROLL REVEAL + MICRO-ANIMAÇÕES PREMIUM
   ============================================================ */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  opacity: 0.035;
  z-index: 9999;
  pointer-events: none;
  filter: url(#noiseFilter);
}

/* Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ============================================================
   LEITURA PREMIUM — Todos os novos elementos editoriais
   ============================================================ */

/* Barra de progresso de leitura */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
  border-radius: 0 999px 999px 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* H1 com contraste tipográfico — ênfase em Playfair Display itálico */
.hero h1 .hero-emphasis {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 800;
  color: var(--forest);
  font-size: 1.05em;
  letter-spacing: -0.01em;
  line-height: inherit;
}

/* Caption da imagem hero */
.hero-caption {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.84rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(250, 249, 245, 0.7);
}

/* Drop cap — primeira letra grande e editorial */
.lead-paragraph::first-letter {
  float: left;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4.2em;
  font-weight: 900;
  font-style: italic;
  line-height: 0.78;
  margin: 0.1em 0.12em 0 0;
  color: var(--forest);
  padding-right: 0.04em;
}

.lead-paragraph {
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.68;
  margin: 0;
}

/* Pull quote — frase de destaque editorial */
.pull-quote {
  position: relative;
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 1.75rem 1.5rem 2.25rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(135deg, rgba(204, 88, 51, 0.05), rgba(204, 88, 51, 0.02));
}

.pull-quote::before {
  content: "\201C";
  position: absolute;
  top: -0.3rem;
  left: 0.65rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  pointer-events: none;
}

.pull-quote p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  font-style: italic;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.55;
}

/* Número decorativo grande em fundo dos habit cards */
.habit-card {
  position: relative;
  overflow: hidden;
}

.habit-card .habit-number::after {
  content: attr(data-num);
  position: absolute;
  right: -0.5rem;
  bottom: -1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 6.5rem;
  font-weight: 900;
  font-style: italic;
  color: var(--forest);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.habit-card.featured .habit-number::after {
  color: var(--warm-white);
  opacity: 0.07;
}

/* Botão voltar ao topo — flutuante elegante */
.back-to-top {
  position: fixed;
  right: 1.75rem;
  bottom: 2rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--warm-white);
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.25s ease,
              box-shadow 0.3s ease;
  box-shadow: 0 6px 24px rgba(28, 45, 36, 0.3);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold);
  box-shadow: 0 10px 32px rgba(204, 88, 51, 0.35);
  transform: translateY(-3px) scale(1.05);
}

.back-to-top:active {
  transform: translateY(0) scale(0.97);
}

/* Ajuste para não sobrepor footer no mobile */
@media (max-width: 560px) {
  .back-to-top {
    right: 1rem;
    bottom: 1.25rem;
    width: 44px;
    height: 44px;
  }

  .lead-paragraph::first-letter {
    font-size: 3.5em;
  }

  .pull-quote {
    padding: 1.25rem 1.25rem 1.25rem 1.65rem;
  }

  .pull-quote p {
    font-size: 1.05rem;
  }
}