/* ── Header ───────────────────────────────────────────── */
.header {
  background: var(--color-white);
  margin: 0 auto;
  padding: 1.25rem var(--gutter-mobile);
  display: flex;
  gap: 1rem;
  flex-direction: column;
  align-items: start;
}

.header__logo img {
  height: 28px;
  width: auto;
}

.header__om {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.header__legal {
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.header__legal-text {
  text-align: right;
  font-size: 0.625rem;
  color: var(--color-body);
  max-width: 180px;
}

.header__legal-title {
  font-weight: 700;
  line-height: 1.2;
}

.header__legal-desc {
  line-height: 1.3;
}

.header__risk {
  border: 1px solid #bdbfbe;
  padding: 0.5rem 0.625rem;
  max-width: 160px;
}

.header__risk-score {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.header__risk-muted {
  color: #a3a6a8;
}

.header__risk-desc {
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.header__lang {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  background: var(--color-white);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.header__lang:hover {
  background: var(--color-bg-page);
}

.header__lang[aria-expanded="true"] {
  background: var(--color-bg-page);
}

.header__lang[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ── Language Switcher Dropdown ─────────────────────── */
.lang-switcher {
  position: relative;
}

.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 0.375rem);
  padding: 4px;
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-hover);
  min-width: 80px;
  overflow: hidden;
  z-index: 300;
  list-style: none;
}

.lang-switcher__option {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: left;
  transition: background var(--transition);
}

.lang-switcher__option:hover {
  background: var(--color-bg-page);
}

.lang-switcher__option--active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--color-primary-dark);
  background: var(--color-bg-card);
}

.lang-switcher__check {
  width: 17px;
  height: 13px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .header {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
  }

  .header__legal-text {
    max-width: 50%;
  }

  .header__risk {
    max-width: 50%;
  }

  .header__lang {
    display: flex;
  }

  .header__inner {
    padding: 1.5rem var(--gutter-desktop);
  }

  .header__logo img {
    height: auto;
    width: auto;
  }

  .header__legal {
    display: flex;
  }
}

/* ── Sticky CTA Bar ─────────────────────────────────── */
.sticky-cta {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
  z-index: 200;
  padding: 1.5rem 2.8125rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;

  .btn--cta {
    width: 100%;

    @media (min-width: 560px) {
      width: fit-content;
    }
  }
}

.sticky-cta__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;

  @media (min-width: 800px) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sticky-cta__text {
  font-size: 1rem;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.sticky-cta__text strong {
  font-weight: 700;
}

.sticky-cta--visible {
  transform: translateY(0);
}

/* ── Legal ───────────────────────────────────────────── */
.legal {
  background: var(--color-bg-card);
  padding: 2.5rem var(--gutter-mobile);
}

.legal__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.legal__list {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal__list li {
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--color-dark);
  text-align: justify;
}

.legal__document {
  margin-top: 1rem;
  color: var(--color-dark);
  text-align: justify;
  font-family: Rubik;
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

@media (min-width: 900px) {
  .legal {
    padding: 3rem var(--gutter-desktop);
  }
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--color-bg-card);
  border-top: none;
  padding: 2.5rem var(--gutter-mobile) 2rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright {
  color: var(--color-dark);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.footer__logo img {
  height: 24px;
  width: auto;
}

.footer__social {
  display: flex;
  gap: 0.875rem;
  align-items: center;
}

.footer__social-link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  transition:
    color var(--transition),
    transform var(--transition);
}

.footer__social-link:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__utils {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__link {
  color: var(--color-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

@media (min-width: 900px) {
  .footer {
    padding: 2.5rem var(--gutter-desktop) 2rem;
  }
}
