/* ==========================================================================
   Trivix Finance — Homepage styles
   ========================================================================== */

:root {
  --color-primary: #32CF66;
  --color-primary-press: #2BB559;
  --color-primary-soft: #E7F9EE;
  --color-accent: #ED7300;
  --color-accent-text: #B85900;
  --color-accent-soft: #FDEEDF;
  --color-ink: #000000;
  --color-gray: rgba(0, 0, 0, 0.6);
  --color-gray-2: rgba(0, 0, 0, 0.72);
  --color-line: #E6E6E6;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F4F4F4;
  --color-hero: #32CF66;
  --color-hero-soft: #E9FBF0;

  --r-pill: 999px;
  --r-card: 18px;
  --r-card-lg: 22px;
  --r-chip: 14px;

  --shadow-card: 0 4px 24px rgba(16, 24, 40, 0.05);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.14);

  --section-pad-desktop: 80px;
  --section-pad-mobile: 48px;

  --header-height: 58px;
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container-max: 1200px;
  --container-pad: 20px;
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

html,
body {
  min-height: 100dvh;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p {
  margin: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 560px;
}

.container--faq {
  max-width: 920px;
}

/* Section rhythm */
.section {
  padding-block: var(--section-pad-mobile);
  scroll-margin-top: var(--header-height);
}

.section--white { background: var(--color-bg); }
.section--soft { background: var(--color-bg-soft); }
.section--hero { background: var(--color-hero); }
.section--cta { padding-block: 56px; }

.section--narrow .section__text {
  max-width: 480px;
  margin-inline: auto;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.section__title--center {
  text-align: center;
}

.section__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-ink);
}

.section__text--center {
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-press);
  border-color: var(--color-primary-press);
}

.btn--white {
  background: #fff;
  color: var(--color-ink);
  border-color: #fff;
}

.btn--white:hover {
  background: var(--color-hero-soft);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--secondary-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--secondary-dark:hover {
  border-color: #fff;
}

.btn--block {
  width: 100%;
}

/* Icon boxes */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
}

.icon-box--green {
  background: var(--color-primary-soft);
  color: var(--color-primary-press);
}

.icon-box--orange {
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
}

/* White chip on --color-bg-soft (contact cards, grey sections) */
.icon-box--on-soft.icon-box--green,
.icon-box--on-soft.icon-box--orange {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

#site-header:empty {
  min-height: var(--header-height);
}

#site-footer:empty {
  min-height: 200px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  flex-shrink: 0;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: 28px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-2);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--color-ink);
}

.nav__link.is-active,
.nav__link[aria-current="page"] {
  color: var(--color-ink);
  font-weight: 600;
}

.header__cta {
  display: inline-flex;
  font-size: 13px;
  min-height: 40px;
  padding-inline: 16px;
  margin-left: auto;
  margin-right: 4px;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 8px;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav.is-open {
  display: block;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  padding: 16px var(--container-pad) 24px;
  box-shadow: var(--shadow-card);
}

.nav.is-open .nav__list {
  flex-direction: column;
  gap: 16px;
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  overflow: visible;
  display: flex;
  align-items: center;
  min-height: 600px;
  padding-top: 56px;
  padding-bottom: 72px;
  color: #fff;
}

.hero > .container {
  width: 100%;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  overflow: visible;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
  max-width: 440px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero right column: mascot left of calculator, on top at overlap (z-index) */
.hero-right {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  flex-shrink: 0;
  isolation: isolate;
}

.hero-card {
  position: relative;
  z-index: 2;
  width: 100%;
  background: var(--color-bg);
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-float);
  padding: 24px 22px 22px;
  color: var(--color-ink);
}

.hero-mascota {
  display: block;
  width: 140px;
  height: auto;
  margin: 20px auto 0;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

@media (max-width: 639px) {
  .hero {
    display: block;
    min-height: auto;
  }

  .hero-right {
    max-width: none;
  }

  .hero-mascota {
    position: static;
    transform: none;
    width: min(240px, 78vw);
    margin-top: 16px;
    margin-bottom: 4px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-right {
    max-width: 420px;
  }

  .hero-mascota {
    position: static;
    transform: none;
    width: 200px;
    margin: 20px auto 0;
  }
}

@media (min-width: 1024px) {
  .hero-mascota {
    position: absolute;
    top: auto;
    bottom: 0;
    left: auto;
    right: 100%;
    width: 220px;
    height: auto;
    margin: 0;
    z-index: 10;
    transform: translateX(14%);
  }
}

.calc-card__head {
  margin-bottom: 4px;
}

.calc-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.calc-card__lead {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-gray);
  margin: 0;
}

.calc-card__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-field__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.calc-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.calc-field__value {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
}

/* Range sliders */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--color-primary-soft);
  outline: none;
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.range:focus-visible {
  outline: 2px solid var(--color-primary-press);
  outline-offset: 4px;
}

.calc-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--color-primary-soft);
  border-radius: var(--r-chip);
}

.calc-result__label {
  font-size: 14px;
  font-weight: 500;
}

.calc-result__amount {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary-press);
}

/* Disclaimer strip */
.disclaimer-strip {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
}

.disclaimer-strip p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-gray);
  text-align: center;
}

/* Información representativa */
.info-card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
}

.info-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.info-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.info-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.info-tile {
  background: var(--color-bg-soft);
  border-radius: var(--r-chip);
  padding: 14px 16px;
}

.info-tile__label {
  display: block;
  font-size: 12px;
  color: var(--color-gray);
  margin-bottom: 4px;
}

.info-tile__value {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.info-card__divider {
  border: none;
  border-top: 1px solid var(--color-line);
  margin: 20px 0 16px;
}

.info-card__legal {
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-gray);
}

/* Feature & fact cards */
.cards-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.feature-card,
.fact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--r-card);
  padding: 22px 20px;
}

.fact-card {
  background: var(--color-bg-soft);
  border-color: transparent;
}

.feature-card .icon-box,
.fact-card .icon-box {
  margin-bottom: 14px;
}

.feature-card__title,
.fact-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card__text,
.fact-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-gray);
}

/* Timeline */
.timeline-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.timeline {
  position: relative;
  padding-left: 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--color-primary-soft);
}

.timeline__item {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 28px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-gray);
}

.timeline-mascot {
  display: flex;
  justify-content: center;
}

.timeline-mascot__img {
  width: min(300px, 85vw);
  height: auto;
  object-fit: contain;
}

/* App teaser */
.app-teaser {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 400px;
  background: var(--color-ink);
  border-radius: var(--r-card-lg);
  padding: 48px 40px 48px 32px;
  color: #fff;
}

.app-teaser__mascot {
  position: absolute;
  left: 40px;
  bottom: -100px;
  width: 260px;
  height: 100%;
  pointer-events: none;
}

.app-teaser__mascot img {
  position: absolute;
  left: 50%;
  bottom: -52px;
  width: 300px;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
}

.app-teaser__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 500px;
  margin-left: auto;
}

.app-teaser__text {
  max-width: 100%;
}

@media (max-width: 639px) {
  .app-teaser {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: auto;
    padding: 32px 24px;
    overflow: hidden;
  }

  .app-teaser__inner {
    order: 1;
    margin-left: 0;
    max-width: 100%;
    padding-bottom: 0;
    gap: 16px;
  }

  /* Home — «Lleva Trivix en el bolsillo»: sin mascota en móvil */
  .app-teaser:not(.app-teaser--money) .app-teaser__mascot {
    display: none;
  }

  .app-teaser--money .app-teaser__mascot {
    order: 2;
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    height: 140px;
    margin-top: 4px;
    flex-shrink: 0;
  }

  .app-teaser--money {
    padding-bottom: 0;
  }

  .app-teaser--money .app-teaser__mascot img {
    left: 50%;
    bottom: 0;
    width: 190px;
    max-width: 72vw;
    transform: translateX(-50%);
    object-position: center bottom;
  }
}

.app-teaser__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-teaser__subtitle {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

/* App teaser — mascota con billetes (Sobre nosotros) */
.app-teaser--money .app-teaser__mascot img {
  bottom: -40px;
}

.app-teaser .app-store-badge {
  flex-shrink: 0;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 12px 20px;
  background: #fff;
  color: var(--color-ink);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.app-store-badge:hover {
  opacity: 0.9;
}

.app-store-badge:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* FAQ — 2 cols, each col: Q+A, Q+A, Q+A */
.faq-columns {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
  align-items: start;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.faq-pair {
  margin: 0;
  padding: 0;
}

.faq-pair__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
}

.faq-pair__q::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.35em;
  border-radius: 50%;
  background: var(--color-primary);
}

.faq-pair__a {
  margin: 0;
  padding: 14px 16px 14px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray-2);
  background: var(--color-primary-soft);
  border-radius: var(--r-chip);
}

@media (min-width: 1024px) {
  .faq-columns {
    gap: 0 80px;
  }

  .faq-pair__q {
    font-size: 18px;
  }
}

@media (max-width: 639px) {
  .faq-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

}

/* Final CTA */
.final-cta {
  text-align: center;
  color: #fff;
}

.final-cta__mascot {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.final-cta__mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1.12);
}

.final-cta__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 12px;
}

.final-cta__subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--color-ink);
  color: #fff;
  padding: 56px 0 40px;
}

@media (max-width: 1023px) {
  .site-footer {
    padding-top: 40px;
    padding-bottom: 32px;
  }
}

.footer__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__col {
  min-width: 0;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  display: block;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 0.75;
}

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__legal {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
  max-width: 900px;
}

.footer__disclaimer {
  max-width: 960px;
  margin-bottom: 20px;
}

.footer__disclaimer p {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 14px;
}

.footer__disclaimer p:last-child {
  margin-bottom: 0;
}

.footer__copy {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px var(--container-pad);
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.sticky-cta.is-visible[hidden] {
  visibility: visible;
  pointer-events: auto;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 16px var(--container-pad);
  background: var(--color-ink);
  color: #fff;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cookie-banner__desc {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-banner__actions .btn {
  font-size: 13px;
  min-height: 42px;
  padding-inline: 18px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mascot-float {
    animation: none !important;
  }
}

/* Mascot float (hero) */
@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mascot-float {
  animation: mascot-float 3s ease-in-out infinite;
}

/* Tablet */
@media (min-width: 640px) {
  body { font-size: 16px; }

  .section { padding-block: 56px; }
  .section--cta { padding-block: 72px; }

  .section__title { font-size: 28px; }

  .hero__title { font-size: 36px; }
  .hero__subtitle { font-size: 16px; }

  .info-tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px 48px;
  }

  .footer__col {
    flex: 0 1 auto;
  }

  .footer__grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px 48px;
  }

  .footer__col {
    flex: 1 1 160px;
    max-width: 280px;
  }

  .app-teaser {
    padding: 56px 56px 56px 40px;
  }

  .app-teaser__mascot {
    width: 340px;
  }

  .app-teaser__mascot img {
    width: 360px;
    bottom: -62px;
  }

  .app-teaser__inner {
    max-width: 500px;
    gap: 24px;
  }

  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner__text {
    flex: 1;
    padding-right: 24px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --container-pad: 32px;
  }

  .section { padding-block: var(--section-pad-desktop); }

  .section__title { font-size: 30px; }

  .nav {
    display: block;
    flex: 1;
  }

  .nav .nav__list {
    justify-content: center;
  }

  .header__inner .logo {
    flex: 0 0 auto;
  }

  .header__cta {
    font-size: 14px;
    min-height: 44px;
    padding-inline: 20px;
    margin-left: 0;
    margin-right: 0;
  }
  .burger { display: none; }

  .hero {
    min-height: 680px;
    padding-top: 88px;
    padding-bottom: 112px;
  }

  .hero__grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    padding-top: 8px;
  }

  .hero__content {
    flex: 0 1 440px;
    max-width: 440px;
    padding-top: 12px;
  }

  .hero-right {
    flex: 0 0 420px;
    max-width: 420px;
    margin-left: auto;
    margin-right: -8px;
    align-self: flex-start;
    margin-top: 0;
    transform: translateX(40px);
  }

  .hero__title { font-size: 40px; }

  .timeline-grid {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .timeline { flex: 1; }
  .timeline-mascot { flex: 0 0 360px; }

  .cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .final-cta__title { font-size: 30px; }

  .sticky-cta { display: none !important; }
}

/* Место под фикс. CTA — в футере (чёрный фон), без белой полосы между CTA-секцией и футером */
body.has-sticky-cta .site-footer {
  padding-bottom: calc(32px + 72px);
}

@media (min-width: 1024px) {
  body.has-sticky-cta .site-footer {
    padding-bottom: 40px;
  }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Calculadora de préstamos page ——— */
.page-calc .section--cta.calc-page-cta {
  padding-block: 56px;
}

.calc-page-intro {
  padding-bottom: 24px;
}

.calc-page-intro__inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.calc-page-intro__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.calc-page-intro__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray);
  margin: 0;
}

.calc-page-tool {
  padding-top: 0;
}

.calc-tool-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
}

.calc-tool-card__inputs {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.range--accent {
  accent-color: var(--color-primary);
}

.calc-field__captions {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-gray);
}

.calc-tool-card__results {
  background: var(--color-primary-soft);
  border-radius: var(--r-card);
  padding: 22px 20px;
}

.calc-results__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  margin: 0 0 6px;
}

.calc-results__hero {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary-press);
  margin: 0 0 18px;
}

.calc-results__rows {
  margin: 0 0 18px;
  padding: 0;
}

.calc-results__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(50, 207, 102, 0.2);
}

.calc-results__row:last-child {
  border-bottom: none;
}

.calc-results__row dt {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.calc-results__row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.calc-results__ind-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-gray);
  margin: 0 0 10px;
}

.calc-results__indicators {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.calc-results__indicators li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--color-gray);
  padding: 4px 0;
}

.calc-results__indicators strong {
  font-weight: 600;
  color: var(--color-ink);
}

.calc-tool-note {
  margin: 20px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-gray);
}

.calc-how-header {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 8px;
}

.calc-how-intro {
  max-width: 560px;
  margin-inline: auto;
}

.calc-how-cards {
  margin-top: 28px;
}

.calc-how-close {
  margin: 32px auto 0;
  max-width: 560px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-ink);
}

.calc-illus-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 720px;
  margin-inline: auto;
  padding: 20px 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--r-card);
  background: var(--color-bg);
}

.calc-illus-note__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-ink);
}

.calc-illus-note__text p {
  margin: 0;
}

.calc-illus-note__link {
  font-weight: 600;
  color: var(--color-primary-press);
  text-decoration: none;
}

.calc-illus-note__link:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .calc-page-intro__title {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .calc-page-intro__title {
    font-size: 40px;
  }

  .calc-tool-card {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px 36px;
    align-items: stretch;
  }

  .calc-results__hero {
    font-size: 36px;
  }

  .page-calc .section--cta.calc-page-cta {
    padding-block: 72px;
  }
}

/* ——— Sobre nosotros page ——— */
.page-about .about-hero {
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: var(--section-pad-mobile);
}

.about-hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.about-hero__eyebrow {
  text-align: left;
  margin-bottom: 12px;
}

.about-hero__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.about-hero__subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 480px;
}

.about-hero__mascot {
  display: flex;
  justify-content: center;
}

.about-hero__mascot img {
  width: min(280px, 75vw);
  height: auto;
  object-fit: contain;
}

.container--about {
  max-width: 560px;
}

.about-section-intro {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray);
}

.about-close {
  margin: 32px auto 0;
  max-width: 560px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--color-ink);
}

.about-two-col {
  display: grid;
  gap: 32px;
  max-width: 960px;
  margin-inline: auto;
}

.about-two-col__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.about-two-col__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray);
}

@media (min-width: 640px) {
  .about-hero__title {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .page-about .about-hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: var(--section-pad-desktop);
  }

  .about-hero__grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }

  .about-hero__content {
    flex: 1;
    max-width: 520px;
  }

  .about-hero__title {
    font-size: 40px;
  }

  .about-hero__mascot {
    flex: 0 0 auto;
  }

  .about-hero__mascot img {
    width: 320px;
  }

  .about-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

/* ——— La app page ——— */
.app-store-badge--dark {
  background: var(--color-ink);
  color: #fff;
}

.app-store-badge--dark:hover {
  opacity: 0.92;
}

.app-store-badge--dark svg {
  fill: currentColor;
}

/* iPhone frame — narrow ~1:2 aspect (not tablet-wide) */
.phone-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 200px;
  height: 420px;
  padding: 10px;
  background: #000;
  border-radius: 42px;
  box-shadow: var(--shadow-float);
}

.phone-frame--hero {
  width: 230px;
  height: 480px;
}

.phone-frame--md {
  width: 200px;
  height: 420px;
}

.phone-frame__notch {
  position: absolute;
  top: 4.2%;
  left: 50%;
  z-index: 3;
  width: clamp(38px, 24%, 62px);
  height: clamp(9px, 3.2%, 16px);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.phone-frame__screen {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  border-radius: 34px;
  background: var(--color-bg-soft);
}

.phone-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-frame__img.is-hidden {
  display: none;
}

.phone-frame__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 28px 12px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-primary-soft) 0%, var(--color-bg-soft) 100%);
}

.phone-frame__placeholder.is-hidden {
  display: none;
}

.phone-frame__placeholder span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-gray);
}

.page-app .app-hero {
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: var(--section-pad-mobile);
}

.app-hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.app-hero__eyebrow {
  text-align: left;
  margin-bottom: 12px;
}

.app-hero__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.app-hero__subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
  max-width: 440px;
}

.app-hero__download {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.app-hero__note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.app-hero__phone {
  display: flex;
  justify-content: center;
}

.app-features-intro {
  padding-top: 32px;
  padding-bottom: 16px;
}

.app-feature-section {
  padding-top: 24px;
  padding-bottom: 32px;
}

.app-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.app-feature__phone {
  display: flex;
  justify-content: center;
}

.app-feature__content {
  max-width: 480px;
}

.app-feature__content .icon-box {
  margin-bottom: 14px;
}

.app-feature__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-ink);
  margin-bottom: 10px;
}

.app-feature__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray);
}

.app-steps {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.app-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--r-card);
}

.app-step__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.app-step__text {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-ink);
}

.app-privacy__text {
  margin-bottom: 24px;
}

.privacy-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-chips__item {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  border-radius: var(--r-pill);
}

.app-final-cta__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.app-final-cta__mascot {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--color-accent);
}

.app-final-cta__mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1.15);
}

.app-final-cta__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 12px;
}

.app-final-cta__subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.app-final-cta__legal {
  margin: 0.75rem 0 0;
  font-size: 13px;
}

.app-final-cta__legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-final-cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.app-final-cta__content .app-store-badge {
  align-self: center;
}

@media (max-width: 639px) {
  .phone-frame {
    padding: 8px;
    border-radius: 34px;
  }

  .phone-frame__notch {
    top: 4%;
    width: clamp(34px, 22%, 48px);
    height: clamp(8px, 2.8%, 13px);
  }

  .phone-frame__screen {
    border-radius: 26px;
  }

  .phone-frame--hero {
    width: 190px;
    height: calc(480px * 190 / 230);
  }

  .phone-frame--md {
    width: calc(200px * 190 / 230);
    height: calc(420px * 190 / 230);
  }
}

@media (min-width: 640px) {
  .app-hero__title {
    font-size: 34px;
  }

  .app-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-app .app-hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: var(--section-pad-desktop);
  }

  .app-hero__grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }

  .app-hero__content {
    flex: 1;
    max-width: 520px;
  }

  .app-hero__title {
    font-size: 36px;
  }

  .app-feature {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
  }

  .app-feature--reverse {
    flex-direction: row-reverse;
  }

  .app-feature__phone {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
  }

  .app-feature__content {
    flex: 1;
    min-width: 0;
    max-width: 520px;
  }

  .app-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .app-final-cta__grid {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
  }

  .app-final-cta__content {
    align-items: flex-start;
    max-width: 480px;
  }

  .app-final-cta__content .app-store-badge {
    align-self: flex-start;
  }

  .app-final-cta__title {
    font-size: 28px;
  }
}

/* ——— Contacto page ——— */
.page-contact .contact-hero {
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: var(--section-pad-mobile);
}

.contact-hero__inner {
  text-align: center;
}

.contact-hero__eyebrow {
  margin-bottom: 12px;
}

.contact-hero__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.contact-hero__subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin-inline: auto;
}

.contact-body {
  padding-top: 40px;
}

.contact-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  margin-bottom: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--r-card);
}

.contact-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.contact-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-gray);
}

.contact-card__text a {
  font-weight: 600;
  color: var(--color-primary-press);
  text-decoration: none;
}

.contact-card__text a:hover {
  text-decoration: underline;
}

.contact-faq-hint {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-gray);
}

.contact-faq-hint a {
  font-weight: 600;
  color: var(--color-primary-press);
  text-decoration: none;
}

.contact-faq-hint a:hover {
  text-decoration: underline;
}

.contact-form-card,
.contact-success {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--r-card-lg);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
}

.contact-form-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
  margin-bottom: 20px;
}

.contact-form__error {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-accent-text);
  background: var(--color-accent-soft);
  border-radius: var(--r-chip);
}

.contact-field {
  margin-bottom: 16px;
}

.contact-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.contact-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.contact-input--area {
  min-height: 120px;
  resize: vertical;
}

.contact-consent {
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-gray);
}

.contact-consent a {
  font-weight: 600;
  color: var(--color-primary-press);
  text-decoration: none;
}

.contact-consent a:hover {
  text-decoration: underline;
}

.contact-success {
  text-align: center;
  padding: 48px 28px;
}

.contact-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary-press);
}

.contact-success__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
  margin-bottom: 10px;
}

.contact-success__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-gray);
}

@media (min-width: 640px) {
  .contact-hero__title {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .page-contact .contact-hero {
    padding-bottom: var(--section-pad-desktop);
  }

  .contact-hero__title {
    font-size: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .contact-form-card,
  .contact-success {
    padding: 32px 36px;
  }
}

/* ——— Legal pages (privacy, terms) ——— */
.page-legal .legal-doc.reveal {
  opacity: 1;
  transform: none;
}

.legal-main {
  padding: calc(var(--header-height) + 24px) 0 var(--section-pad-mobile);
  background: var(--color-bg);
}

.legal-doc {
  max-width: 760px;
  margin-inline: auto;
}

.legal-doc__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}

.legal-doc__eyebrow {
  text-align: left;
  margin-bottom: 8px;
}

.legal-doc__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.legal-doc__related {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface-muted, #f4f6f8);
  border-left: 4px solid var(--color-primary, #ff6b2c);
  border-radius: 0 8px 8px 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.legal-doc__related a {
  font-weight: 600;
}

.legal-section--lead {
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.legal-section--lead ul {
  margin: 0.75rem 0 1rem 1.25rem;
}

.legal-caps {
  font-size: 0.9em;
  letter-spacing: 0.02em;
}

ul.legal-caps li {
  text-transform: uppercase;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border, #e2e8f0);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--color-surface-muted, #f4f6f8);
  font-weight: 600;
}

.legal-doc__meta {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-gray);
}

.legal-doc__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-ink);
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
  margin: 0 0 16px;
}

.legal-section h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
  margin: 24px 0 12px;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section a {
  color: var(--color-primary-press);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section--highlight {
  padding: 22px 24px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  border-radius: var(--r-card);
  border-left: 4px solid var(--color-accent);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--color-line);
}

.legal-table th {
  font-weight: 600;
  background: var(--color-bg-soft);
}

.legal-table td em {
  font-size: 13px;
  color: var(--color-gray);
}

.legal-doc__disclaimer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-gray);
  font-style: italic;
}

@media (min-width: 640px) {
  .legal-doc__title {
    font-size: 32px;
  }

  .legal-section h2 {
    font-size: 22px;
  }
}

@media (min-width: 1024px) {
  .legal-main {
    padding-bottom: var(--section-pad-desktop);
  }
}
