/* ============================================================
   FOOTER — blue to match header, white text
   ============================================================ */
.rm-footer {
  background: var(--rm-blue);
  color: rgba(255,255,255,0.85);
  margin-top: 0;
}

/* Red disclaimer — ROM policy, above everything */
.rm-footer__rom-disclaimer {
  background: var(--rm-red);
  color: #fff;
  padding: 12px 0;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 700;
}

/* Affiliate disclosure — between red and main */
.rm-footer__disclaimer {
  background: var(--rm-blue-dark);
  color: rgba(255,255,255,0.88);
  padding: 10px 0;
  font-size: 0.80rem;
  text-align: center;
  font-weight: 500;
  border-top: 2px solid var(--rm-orange);
}

.rm-footer__main {
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.rm-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.rm-footer__brand { max-width: 360px; }
.rm-footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  text-decoration: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  transition: opacity var(--rm-transition), transform var(--rm-transition);
}
.rm-footer__logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.rm-footer__logo-image {
  display: block;
  width: auto;
  max-height: 40px;
}
.rm-footer__logo .pixel-text {
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.06em;
}
.rm-footer__logo .pixel-text span {
  color: var(--rm-orange);
}
.rm-footer__tagline {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  color: var(--rm-orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.rm-footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
}
.rm-language-switcher--footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
}
.rm-language-switcher--footer .rm-language-switcher__label {
  color: rgba(255,255,255,0.72);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* ------------------------------------------------------------
   Language dropdown — native <details> with real <a> links inside.
   No hidden duplicate DOM, no JS required for navigation, fully
   crawlable by search engines.
   ------------------------------------------------------------ */
.rm-language-switcher__dropdown {
  position: relative;
  width: 100%;
  max-width: 260px;
}
.rm-language-switcher__dropdown[open] {
  /* Higher z so the menu sits above neighbouring footer columns */
  z-index: 5;
}
.rm-language-switcher__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background var(--rm-transition), border-color var(--rm-transition);
}
.rm-language-switcher__summary::-webkit-details-marker { display: none; }
.rm-language-switcher__summary:hover,
.rm-language-switcher__summary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(4, 170, 109, 0.55);
  outline: none;
}
.rm-language-switcher__dropdown[open] > .rm-language-switcher__summary {
  border-color: rgba(4, 170, 109, 0.95);
  box-shadow: 0 0 0 3px rgba(4, 170, 109, 0.22);
}
.rm-language-switcher__summary-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.rm-language-switcher__summary-label {
  flex: 1 1 auto;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rm-language-switcher__summary-caret {
  font-size: 0.9rem;
  transition: transform 0.18s ease;
}
.rm-language-switcher__dropdown[open] .rm-language-switcher__summary-caret {
  transform: rotate(180deg);
}

.rm-language-switcher__menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #1a1d2e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rm-language-switcher__menu li { margin: 0; }
.rm-language-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--rm-transition), color var(--rm-transition);
}
.rm-language-switcher__option:hover,
.rm-language-switcher__option:focus-visible {
  background: rgba(4, 170, 109, 0.18);
  color: #fff;
  outline: none;
}
.rm-language-switcher__option.is-current {
  background: rgba(4, 170, 109, 0.22);
  color: #fff;
}
.rm-language-switcher__option-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.rm-language-switcher__option-label { flex: 1 1 auto; }
.rm-language-switcher__option-check { color: #04ffaf; font-weight: 900; }

.rm-footer__col {
  min-width: 0;
}
.rm-footer__title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 8px;
}
.rm-footer__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  background: var(--rm-orange);
}

.rm-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.rm-footer__list li a {
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--rm-transition);
  display: inline-block;
}
.rm-footer__list li a:hover {
  color: var(--rm-orange);
  transform: translateX(4px);
}

.rm-footer__bottom {
  padding: 24px 0;
}
.rm-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}
.rm-footer__legal {
  text-align: right;
  max-width: 480px;
}

@media (max-width: 1024px) {
  .rm-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .rm-footer__brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 640px) {
  .rm-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .rm-footer__bottom-inner { flex-direction: column; text-align: center; }
  .rm-footer__legal { text-align: center; }
  .rm-footer__main { padding: 40px 0 32px; }
  .rm-language-switcher--footer {
    align-items: center;
  }
  .rm-language-switcher__dropdown {
    max-width: 100%;
  }
}
