/* =========================================================
   CareerXO — design system
   1. Tokens   2. Base   3. Layout   4. Components   5. Sections
   6. Legal pages   7. Responsive   8. Motion preferences
   ========================================================= */

/* 1. TOKENS ------------------------------------------------ */
:root {
  /* Palette */
  --blue: #2F2FA2;
  --indigo: #242582;
  --plum: #553D67;
  --coral: #F64C72;
  --coral-hover: #D6355C;
  --mauve: #99738E;
  --light: #F2F2FA;
  --white: #FFFFFF;
  --ink: #242582;
  --ink-soft: #4A4A8C;
  --line: #D9D9EC;
  --line-dark: rgba(255, 255, 255, 0.22);
  --on-dark-soft: rgba(255, 255, 255, 0.86);
  --error: #B3123E;
  --error-on-dark: #FFC2D1;

  /* Typography */
  --font-head: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;   /* 13 — legal notes, captions */
  --fs-sm: 0.9375rem;   /* 15 — secondary text, nav */
  --fs-base: 1.0625rem; /* 17 — body */
  --fs-lg: 1.1875rem;   /* 19 — lead */
  --fs-h4: 1.125rem;    /* 18 */
  --fs-h3: 1.3125rem;   /* 21 */
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  --fs-h1: clamp(2.125rem, 1.3rem + 3.4vw, 3.5rem);

  /* Spacing (8-pt based) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(4rem, 3rem + 4vw, 7rem);

  /* Shape & depth */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 18px 40px -22px rgba(36, 37, 130, 0.45);
  --shadow-card: 0 1px 2px rgba(36, 37, 130, 0.06), 0 8px 24px -16px rgba(36, 37, 130, 0.35);

  --container: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --header-h: 72px;
}

/* 2. BASE -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--s-3); }

/* 3. LAYOUT ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-light { background: var(--light); }
.section-white { background: var(--white); }
.section-blue { background: var(--blue); color: var(--white); }
.section-indigo { background: var(--indigo); color: var(--white); }
.section-plum { background: var(--plum); color: var(--white); }

.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head > p:not(.eyebrow) { color: var(--ink-soft); font-size: var(--fs-lg); }

.split {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

/* 4. COMPONENTS -------------------------------------------- */

/* Eyebrow: small label above headings, with a coral rule */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
}
.eyebrow-on-dark { color: var(--on-dark-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: 3px; }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 22px -12px rgba(246, 76, 114, 0.75);
}
.btn-primary:hover { background: var(--coral-hover); }

.btn-outline-dark {          /* secondary on blue/dark backgrounds */
  background: transparent;
  color: var(--white);
  border-color: var(--coral);
}
.btn-outline-dark:hover { background: rgba(246, 76, 114, 0.16); }
.section-blue .btn:focus-visible,
.section-indigo .btn:focus-visible,
.section-plum .btn:focus-visible,
.hero .btn:focus-visible { outline-color: var(--white); }

.btn-outline-light {         /* secondary on light backgrounds */
  background: transparent;
  color: var(--ink);
  border-color: var(--blue);
}
.btn-outline-light:hover { background: var(--blue); color: var(--white); }

.btn[disabled],
.btn[aria-disabled="true"] {
  background: #B9B9D6;
  border-color: #B9B9D6;
  color: var(--indigo);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* Media frame — consistent photo treatment */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--line);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame-dark { background: rgba(255, 255, 255, 0.08); }

/* 5. SECTIONS ---------------------------------------------- */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(36, 37, 130, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.wordmark {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--indigo);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span {
  display: inline-block;
  margin-left: 2px;
  padding: 0 0.32em;
  border-radius: 5px;
  background: var(--coral);
  color: var(--white);
}
.wordmark-light { color: var(--white); }

.site-nav { display: flex; align-items: center; gap: var(--s-6); }
.nav-list {
  display: flex;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  position: relative;
  display: inline-block;
  padding-block: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-list a:hover::after,
.nav-list a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--blue);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--indigo);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem);
}
.hero::after {               /* soft depth band behind the photo */
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 34%;
  background: var(--indigo);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
.hero h1 { max-width: 15ch; margin-bottom: var(--s-5); }
.lead {
  max-width: 54ch;
  font-size: var(--fs-lg);
  color: var(--on-dark-soft);
}
.hero-note {
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--on-dark-soft);
}
.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10, 10, 60, 0.7);
  aspect-ratio: 4 / 3;
  background: var(--indigo);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Formação */
.split-text > p:not(.eyebrow) { color: var(--ink-soft); }
.section-indigo .split-text > p:not(.eyebrow),
.section-plum .split-text > p:not(.eyebrow),
.section-blue .consult-intro > p:not(.eyebrow) { color: var(--on-dark-soft); }

.type-list {
  margin: var(--s-6) 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.type-list li {
  display: grid;
  gap: var(--s-1);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.type-list strong { font-family: var(--font-head); font-size: var(--fs-h4); }
.type-list span { color: var(--ink-soft); font-size: var(--fs-sm); }

.split-aside { display: grid; gap: var(--s-5); }
.split-aside .media-frame { aspect-ratio: 3 / 2; }

.checklist-card {
  padding: var(--s-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--coral);
  box-shadow: var(--shadow-card);
}
.checklist-card h3 { font-size: var(--fs-h4); margin-bottom: var(--s-4); }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.checklist li {
  position: relative;
  padding-left: 2rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-soft);
}
.checklist li::before {        /* CSS check icon */
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--light);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.38em;
  width: 0.35rem;
  height: 0.6rem;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Education discount cards */
.deal-grid {
  display: grid;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.deal-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.deal-card:hover {
  border-color: var(--mauve);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.deal-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--light);
  overflow: hidden;
}
.deal-media img { width: 100%; height: 100%; object-fit: cover; }
.deal-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--s-5) var(--s-5) var(--s-6);
}
.deal-cat {
  margin-bottom: var(--s-2) !important;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
}
.deal-card h3 { margin-bottom: var(--s-3); }
.deal-body > p:not(.deal-cat):not(.deal-label) { font-size: var(--fs-sm); color: var(--ink-soft); }
.deal-label {
  margin: var(--s-2) 0 var(--s-3) !important;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink);
}
.deal-conditions {
  display: grid;
  gap: var(--s-2);
  margin: 0 0 var(--s-6);
  padding: var(--s-4);
  list-style: none;
  background: var(--light);
  border-radius: var(--radius);
  border-left: 3px solid var(--coral);
  font-size: var(--fs-sm);
  font-weight: 500;
  flex-grow: 1;
  align-content: start;
}
.deal-conditions li { position: relative; padding-left: 1.5rem; }
.deal-conditions li::before {   /* CSS check */
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.3em;
  width: 0.35rem;
  height: 0.65rem;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Carreira remota */
.section-indigo .media-frame { aspect-ratio: 4 / 5; }
.factor-grid {
  display: grid;
  gap: var(--s-4);
  margin: var(--s-6) 0;
  padding: 0;
  list-style: none;
}
.factor-grid li {
  padding: var(--s-5);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--coral);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
.factor-grid h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.factor-grid p { font-size: var(--fs-sm); color: var(--on-dark-soft); }
.note-dark {
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-6) !important;
  border-radius: var(--radius);
  background: var(--plum);
  font-size: var(--fs-sm);
}

/* Steps */
.steps {
  display: grid;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.step {
  position: relative;
  padding: var(--s-6);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-5);
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
}
.step h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-sm); color: var(--ink-soft); }

.steps-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding: var(--s-6);
  border-radius: var(--radius-lg);
  background: var(--blue);
  color: var(--white);
}
.steps-cta p { max-width: 60ch; margin: 0; font-size: var(--fs-lg); }
.steps-cta .btn:focus-visible { outline-color: var(--white); }

/* Plum band */
.section-plum .media-frame { aspect-ratio: 3 / 2; }

/* Consulta */
.consult-grid { display: grid; gap: var(--s-7); align-items: start; }
.consult-photo { margin-block: var(--s-6); aspect-ratio: 3 / 2; }
.consult-alt { font-size: var(--fs-sm); color: var(--on-dark-soft); }
.consult-alt a { color: var(--white); font-weight: 700; }
.consult-alt a:hover { color: var(--light); text-decoration-thickness: 2px; }
.consult-alt a:focus-visible { outline-color: var(--white); }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(10, 10, 60, 0.7);
}
.form-card .btn:focus-visible { outline-color: var(--indigo); }
.form-required-note { font-size: var(--fs-xs); color: var(--ink-soft); margin-bottom: var(--s-5); }

.field { margin-bottom: var(--s-5); min-width: 0; }
.field-row { display: grid; gap: 0 var(--s-4); }
.field label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.req { color: var(--error); }
.optional { font-weight: 400; color: var(--ink-soft); }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--light);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--indigo) 50%),
    linear-gradient(135deg, var(--indigo) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--mauve); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(47, 47, 162, 0.22);
}
.field [aria-invalid="true"] { border-color: var(--error) !important; background-color: #FFF5F8; }
.field-error {
  margin: var(--s-2) 0 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--error);
}
.field-error:empty { display: none; }

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-1) var(--s-3);
  align-items: start;
}
.field-check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.field-check label { margin: 0; font-weight: 500; line-height: 1.5; cursor: pointer; }
.field-check label a { color: var(--blue); font-weight: 600; }
.field-check .field-error { grid-column: 2; }

.demo-notice {
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  border-radius: var(--radius-sm);
  background: var(--light);
  border-left: 4px solid var(--mauve);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-soft);
}
.demo-notice strong { display: block; color: var(--ink); font-size: var(--fs-sm); margin-bottom: var(--s-1); }

.form-result { text-align: left; }
.form-result:focus { outline: none; }
.form-result h3 { font-size: var(--fs-h3); }
.form-result p { color: var(--ink-soft); margin-bottom: var(--s-5); }

/* FAQ */
.faq-wrap { display: grid; gap: var(--s-6); }
.faq-wrap .section-head { margin-bottom: 0; }
.faq-list { display: grid; gap: var(--s-3); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}
.faq-item[open] { border-color: var(--blue); }
.faq-item summary {
  position: relative;
  display: block;
  padding: var(--s-5) 3.5rem var(--s-5) var(--s-5);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before,
.faq-item summary::after {      /* CSS plus / minus */
  content: "";
  position: absolute;
  right: var(--s-5);
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--coral);
  transition: transform .2s ease;
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0); }
.faq-item summary:hover { color: var(--blue); }
.faq-body { padding: 0 var(--s-5) var(--s-5); color: var(--ink-soft); }
.faq-body a { color: var(--blue); font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--indigo);
  color: var(--on-dark-soft);
  padding-top: var(--s-8);
  font-size: var(--fs-sm);
}
.footer-grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-7); }
.footer-brand p { margin-top: var(--s-4); max-width: 42ch; }
.footer-title {
  margin-bottom: var(--s-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.site-footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-footer a:hover { text-decoration-color: var(--coral); }
.site-footer a:focus-visible { outline-color: var(--white); }
.footer-col li { overflow-wrap: anywhere; }
.footer-company p { margin-bottom: var(--s-3); }
.footer-company strong { color: var(--white); }
.footer-bottom {
  padding-block: var(--s-5);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-xs);
}

/* 6. LEGAL PAGES ------------------------------------------- */
.legal-hero {
  padding-block: var(--s-8) var(--s-7);
  background: var(--blue);
  color: var(--white);
}
.legal-hero h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: var(--s-3); }
.legal-hero p { color: var(--on-dark-soft); margin: 0; }
.legal-body { padding-block: var(--s-8); background: var(--white); }
.legal-content { max-width: 760px; margin-top: var(--s-7); }
.legal-content h2 { font-size: 1.5rem; margin-top: var(--s-7); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
.legal-content li { margin-bottom: var(--s-2); }
.legal-content a { color: var(--blue); font-weight: 600; }
.legal-placeholder {
  padding: 0 0.25em;
  background: #FFE3EA;
  color: var(--indigo);
  border-radius: 3px;
  font-weight: 600;
}
.legal-back { margin-top: var(--s-7); }
.legal-nav { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); }
.legal-nav a { font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--ink); }
.legal-nav a:hover { text-decoration: underline; }
.legal-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }

/* 7. RESPONSIVE -------------------------------------------- */
@media (min-width: 640px) {
  .deal-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .factor-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-8); }
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .split-reverse { grid-template-columns: 0.85fr 1.15fr; }
  #como-conferir .split { align-items: start; }
  .deal-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .consult-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); }
  .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); align-items: start; }
  .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (max-width: 1080px) and (min-width: 960px) {
  .nav-list { gap: var(--s-4); }
  .site-nav { gap: var(--s-4); }
}

/* Mobile navigation */
@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-5);
    padding: var(--s-5) var(--gutter) var(--s-6);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(36, 37, 130, 0.55);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding-block: var(--s-4); font-size: var(--fs-base); }
  .nav-list a::after { display: none; }
  .site-nav .btn { width: 100%; min-height: 52px; font-size: 1rem; }

  .hero::after { width: 100%; top: auto; height: 22%; }
  .hero h1 { max-width: none; }
}

@media (max-width: 479px) {
  .btn-row .btn { width: 100%; }
  .steps-cta .btn { width: 100%; }
  .section-indigo .media-frame { aspect-ratio: 4 / 3; }
  .step, .checklist-card { padding: var(--s-5); }
}

/* 8. MOTION ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
