/**
 * Header + Footer + Mobile drawer — pixel parity with app Header.tsx / Footer.tsx / MobileNavDrawer.tsx
 * Mobile-first; progressive min-width breakpoints.
 */

/* ——— Header ——— */
.ri-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

html.dark .ri-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 11, 0.8);
}

/* Shared page container — header, footer and body must match exactly */
.ri-container,
.ri-header__inner,
.ri-footer__inner,
.rodaria-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 0.75rem;
}

@media (min-width: 640px) {
  .ri-container,
  .ri-header__inner,
  .ri-footer__inner,
  .rodaria-shell {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 768px) {
  .ri-container,
  .ri-header__inner,
  .ri-footer__inner,
  .rodaria-shell {
    padding-inline: 2rem;
  }
}

@media (min-width: 1024px) {
  .ri-container,
  .ri-header__inner,
  .ri-footer__inner,
  .rodaria-shell {
    padding-inline: 3rem;
  }
}

@media (min-width: 1280px) {
  .ri-container,
  .ri-header__inner,
  .ri-footer__inner,
  .rodaria-shell {
    padding-inline: 4rem;
  }
}

.ri-header__inner {
  display: flex;
  height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .ri-header__inner {
    height: 4rem;
  }
}

.ri-header__left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .ri-header__left {
    gap: 0.5rem;
  }
}

.ri-ctrl {
  height: 2.75rem;
}

@media (min-width: 640px) {
  .ri-ctrl {
    height: 2.5rem;
  }
}

.ri-icon-btn {
  display: inline-flex;
  width: 2.75rem;
  flex-shrink: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  color: #475569;
  padding: 0;
  transition: color 0.2s, background 0.2s;
}

.ri-icon-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

html.dark .ri-icon-btn {
  border-color: rgba(255, 255, 255, 0.1);
  background: #09090b;
  color: #d4d4d8;
}

html.dark .ri-icon-btn:hover {
  background: #18181b;
  color: #fff;
}

@media (min-width: 1024px) {
  .ri-menu-toggle {
    display: none;
  }
}

.ri-logo {
  display: flex;
  min-height: 2.75rem;
  min-width: 0;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s;
}

.ri-logo:active {
  transform: scale(0.95);
}

@media (min-width: 640px) {
  .ri-logo {
    gap: 0.625rem;
  }
}

.ri-logo__mark {
  display: flex;
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(to top right, #9333ea, #db2777, #f59e0b);
  padding: 1.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .ri-logo__mark {
    height: 2.5rem;
    width: 2.5rem;
  }
}

.ri-logo__mark-inner {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
}

html.dark .ri-logo__mark-inner {
  background: #000;
}

.ri-logo__icon {
  height: 1rem;
  width: 1rem;
  color: #9333ea;
}

@media (min-width: 640px) {
  .ri-logo__icon {
    height: 1.25rem;
    width: 1.25rem;
  }
}

html.dark .ri-logo__icon {
  color: #c084fc;
}

.ri-logo__text-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ri-logo__title {
  font-family: var(--rodaria-font-sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.025em;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .ri-logo__title {
    font-size: 1.125rem;
  }
}

html.dark .ri-logo__title {
  color: #fff;
}

.ri-logo__ver {
  display: none;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.1);
  padding: 0.125rem 0.375rem;
  font-family: var(--rodaria-font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #9333ea;
}

html.dark .ri-logo__ver {
  color: #c084fc;
}

.ri-logo__tagline {
  display: none;
  margin: 0;
  font-family: var(--rodaria-font-sans);
  font-size: 10px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #64748b;
}

html.dark .ri-logo__tagline {
  color: #a1a1aa;
}

@media (min-width: 1024px) {
  .ri-logo__ver,
  .ri-logo__tagline {
    display: block;
  }

  .ri-logo__ver {
    display: inline-block;
  }
}

.ri-header__right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .ri-header__right {
    gap: 0.5rem;
  }
}

.ri-nav-pills {
  display: none;
  align-items: stretch;
  gap: 0.125rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(168, 85, 247, 0.15);
  background: linear-gradient(to right, rgba(168, 85, 247, 0.06), transparent);
  padding: 0.125rem;
}

html.dark .ri-nav-pills {
  border-color: rgba(192, 132, 252, 0.15);
  background: linear-gradient(to right, rgba(168, 85, 247, 0.1), transparent);
}

@media (min-width: 1024px) {
  .ri-nav-pills {
    display: inline-flex;
  }
}

.ri-nav-link {
  position: relative;
  display: inline-flex;
  height: 100%;
  align-items: center;
  gap: 0.375rem;
  padding-inline: 0.75rem;
  font-family: var(--rodaria-font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #475569;
  text-decoration: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

html.dark .ri-nav-link {
  color: #a1a1aa;
}

.ri-nav-link:hover {
  color: #7e22ce;
}

html.dark .ri-nav-link:hover {
  color: #d8b4fe;
}

.ri-nav-link.is-active {
  background: #fff;
  color: #6b21a8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html.dark .ri-nav-link.is-active {
  background: #18181b;
  color: #e9d5ff;
}

.ri-nav-link__icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: #a855f7;
}

.ri-badge-br {
  display: none;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.1);
  padding-inline: 0.625rem;
  font-family: var(--rodaria-font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #7e22ce;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.ri-badge-br:hover {
  background: rgba(168, 85, 247, 0.15);
  color: #7e22ce;
}

html.dark .ri-badge-br {
  color: #d8b4fe;
}

html.dark .ri-badge-br:hover {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

@media (min-width: 1280px) {
  .ri-badge-br {
    display: inline-flex;
  }
}

.ri-header__tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .ri-header__tools {
    margin-left: 0.125rem;
    gap: 0.375rem;
    border-left: 1px solid rgba(226, 232, 240, 0.8);
    padding-left: 0.5rem;
  }

  html.dark .ri-header__tools {
    border-left-color: rgba(255, 255, 255, 0.1);
  }
}

/* Theme toggle: Sun when dark (switch to light), Moon when light — matches Header.tsx */
.ri-theme-btn .ri-icon-sun {
  display: none;
}

.ri-theme-btn .ri-icon-moon {
  display: block;
}

html.dark .ri-theme-btn .ri-icon-sun {
  display: block;
}

html.dark .ri-theme-btn .ri-icon-moon {
  display: none;
}

.ri-logo__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ri-footer-ico {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
}

#link-privacy-policy .ri-footer-ico {
  color: rgba(168, 85, 247, 0.8);
}

#link-terms-of-use .ri-footer-ico {
  color: rgba(59, 130, 246, 0.8);
}

#link-about-contact .ri-footer-ico {
  color: rgba(236, 72, 153, 0.8);
}

@media (min-width: 640px) {
  .ri-theme-btn {
    width: 2.5rem;
  }
}

/* Language picker */
.ri-lang {
  position: relative;
}

.ri-lang__btn {
  display: inline-flex;
  height: 2.75rem;
  cursor: pointer;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  padding-inline: 0.625rem;
  font-family: var(--rodaria-font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #475569;
  transition: color 0.2s, background 0.2s;
}

@media (min-width: 640px) {
  .ri-lang__btn {
    height: 2.5rem;
  }
}

.ri-lang__btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

html.dark .ri-lang__btn {
  border-color: rgba(255, 255, 255, 0.1);
  background: #09090b;
  color: #a1a1aa;
}

html.dark .ri-lang__btn:hover {
  background: #18181b;
  color: #fff;
}

.ri-lang__globe {
  display: none;
  width: 0.875rem;
  height: 0.875rem;
}

@media (min-width: 640px) {
  .ri-lang__globe {
    display: block;
  }
}

.ri-lang__code {
  display: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}

@media (min-width: 640px) {
  .ri-lang__code {
    display: inline;
  }
}

.ri-lang__chevron {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0.6;
  transition: transform 0.2s;
}

.ri-lang.is-open .ri-lang__chevron {
  transform: rotate(180deg);
}

.ri-lang__menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 50;
  margin-top: 0.5rem;
  width: 14rem;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.45);
}

html.dark .ri-lang__menu {
  border-color: rgba(255, 255, 255, 0.1);
  background: #09090b;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
}

.ri-lang.is-open .ri-lang__menu {
  display: block;
}

.ri-lang__option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--rodaria-font-sans);
  font-size: 0.875rem;
  color: #334155;
  text-align: left;
}

html.dark .ri-lang__option {
  color: #d4d4d8;
}

.ri-lang__option:hover {
  background: #f8fafc;
}

html.dark .ri-lang__option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ri-lang__option.is-selected {
  background: #faf5ff;
  color: #7e22ce;
}

html.dark .ri-lang__option.is-selected {
  background: rgba(59, 7, 100, 0.4);
  color: #e9d5ff;
}

.ri-lang__check {
  width: 1rem;
  height: 1rem;
  opacity: 0;
}

.ri-lang__option.is-selected .ri-lang__check {
  opacity: 1;
}

/* Auth Entrar button */
.ri-auth {
  display: flex;
  height: 2.75rem;
  align-items: center;
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .ri-auth {
    height: 2.5rem;
  }
}

.ri-btn-entrar {
  display: inline-flex;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding-inline: 0.75rem;
  font-family: var(--rodaria-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(to bottom right, #9333ea, #c026d3);
  box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ri-btn-entrar:hover {
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.5);
  transform: scale(1.02);
}

@media (min-width: 640px) {
  .ri-btn-entrar {
    height: 2.5rem;
  }
}

/* ——— Mobile drawer (exact MobileNavDrawer) ——— */
.ri-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
}

.ri-drawer.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .ri-drawer.is-open {
    display: none;
  }
}

.ri-drawer__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ri-drawer__panel {
  position: absolute;
  inset-block: 0;
  left: 0;
  display: flex;
  width: min(100%, 20.5rem);
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #07070a;
  box-shadow: 16px 0 40px -18px rgba(0, 0, 0, 0.9);
  color: #fff;
}

.ri-drawer__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(255, 255, 255, 0.035) 27px,
      rgba(255, 255, 255, 0.035) 28px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 27px,
      rgba(255, 255, 255, 0.035) 27px,
      rgba(255, 255, 255, 0.035) 28px
    );
}

.ri-drawer__glow {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(251, 191, 36, 0.5), transparent);
}

.ri-drawer__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.ri-drawer__brand-mark {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #18181b;
  color: #e4e4e7;
}

.ri-drawer__brand-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ri-drawer__brand-sub {
  margin: 0;
  font-family: var(--rodaria-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #71717a;
}

.ri-drawer__close {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #d4d4d8;
  padding: 0;
}

.ri-drawer__close:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.ri-drawer__nav {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
}

.ri-drawer__nav-label {
  margin: 0 0 0.5rem;
  padding-inline: 0.5rem;
  font-family: var(--rodaria-font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #71717a;
}

.ri-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ri-drawer__link {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #d4d4d8;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ri-drawer__link:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.ri-drawer__link.is-active {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #fffbeb;
}

.ri-drawer__link.is-active .ri-drawer__link-icon {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
}

.ri-drawer__link.is-active .ri-drawer__chevron {
  color: rgba(252, 211, 77, 0.8);
}

.ri-drawer__link-icon {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: #a1a1aa;
}

.ri-drawer__chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #52525b;
  margin-left: auto;
}

.ri-drawer__badge-btn {
  margin-top: 1rem;
  display: flex;
  min-height: 3rem;
  width: 100%;
  cursor: pointer;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f4f4f5;
  text-align: left;
  text-decoration: none;
}

.ri-drawer__badge-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.ri-drawer__foot {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.ri-drawer__foot p {
  margin: 0;
  font-family: var(--rodaria-font-mono);
  font-size: 10px;
  line-height: 1.625;
  color: #71717a;
}

body.ri-drawer-open {
  overflow: hidden;
}

/* ——— Footer ——— */
.ri-footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s;
}

html.dark .ri-footer {
  border-top-color: rgba(24, 24, 27, 0.6);
  background: rgba(0, 0, 0, 0.8);
}

.ri-footer__inner {
  padding-block: 3rem;
}

.ri-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

html.dark .ri-footer__grid {
  border-bottom-color: rgba(24, 24, 27, 0.6);
}

@media (min-width: 768px) {
  .ri-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ri-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ri-footer__brand {
    align-items: flex-start;
    text-align: left;
  }
}

.ri-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.ri-footer__mark {
  display: flex;
  height: 1.75rem;
  width: 1.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: linear-gradient(to top right, #9333ea, #db2777, #f59e0b);
  padding: 1.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ri-footer__mark-inner {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #fff;
}

html.dark .ri-footer__mark-inner {
  background: #000;
}

.ri-footer__mark-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: #9333ea;
}

html.dark .ri-footer__mark-icon {
  color: #c084fc;
}

.ri-footer__brand-name {
  font-family: var(--rodaria-font-display);
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: #0f172a;
}

html.dark .ri-footer__brand-name {
  color: #fff;
}

.ri-footer__about {
  margin: 0;
  max-width: 24rem;
  font-family: var(--rodaria-font-sans);
  font-size: 0.75rem;
  line-height: 1.625;
  color: #64748b;
}

html.dark .ri-footer__about {
  color: #a1a1aa;
}

.ri-footer__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .ri-footer__col--end {
    align-items: flex-end;
    text-align: right;
  }
}

.ri-footer__heading {
  margin: 0;
  font-family: var(--rodaria-font-sans);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1e293b;
}

html.dark .ri-footer__heading {
  color: #d4d4d8;
}

.ri-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .ri-footer__col--end .ri-footer__list {
    align-items: flex-end;
  }
}

.ri-footer__list a,
.ri-footer__list button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-family: var(--rodaria-font-sans);
  font-size: 0.75rem;
  color: #64748b;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s;
}

html.dark .ri-footer__list a,
html.dark .ri-footer__list button {
  color: #a1a1aa;
}

.ri-footer__list a:hover,
.ri-footer__list button:hover {
  color: #9333ea;
}

html.dark .ri-footer__list a:hover,
html.dark .ri-footer__list button:hover {
  color: #c084fc;
}

.ri-footer__list a.is-teal:hover {
  color: #0f766e;
}

html.dark .ri-footer__list a.is-teal:hover {
  color: #5eead4;
}

.ri-footer__dot {
  display: inline-block;
  height: 0.25rem;
  width: 0.25rem;
  border-radius: 9999px;
  background: #a1a1aa;
  flex-shrink: 0;
}

html.dark .ri-footer__dot {
  background: #3f3f46;
}

.ri-footer__dot--teal {
  background: #14b8a6;
}

@media (min-width: 768px) {
  .ri-footer__col--end .ri-footer__list a,
  .ri-footer__col--end .ri-footer__list button {
    justify-content: flex-end;
    text-align: right;
    width: 100%;
  }
}

.ri-footer__bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

.ri-footer__rights {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

html.dark .ri-footer__rights {
  color: #a1a1aa;
}

.ri-footer__disclaimer {
  margin: 0.5rem 0 0;
  max-width: 48rem;
  font-size: 10px;
  line-height: 1.625;
  color: #94a3b8;
}

html.dark .ri-footer__disclaimer {
  color: #71717a;
}

.ri-footer__shorts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 11px;
  color: #94a3b8;
}

html.dark .ri-footer__shorts {
  color: #71717a;
}

.ri-footer__shorts a,
.ri-footer__shorts button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.ri-footer__shorts a:hover,
.ri-footer__shorts button:hover {
  color: #1e293b;
}

html.dark .ri-footer__shorts a:hover,
html.dark .ri-footer__shorts button:hover {
  color: #d4d4d8;
}

.ri-footer__sep {
  color: #cbd5e1;
}

html.dark .ri-footer__sep {
  color: #27272a;
}

/* ——— Legal modal ——— */
.ri-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ri-modal.is-open {
  display: flex;
}

.ri-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0;
  cursor: pointer;
}

.ri-modal__panel {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  max-width: 42rem;
  max-height: 85vh;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html.dark .ri-modal__panel {
  border-color: #27272a;
  background: #09090b;
}

.ri-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.5);
}

html.dark .ri-modal__head {
  border-bottom-color: rgba(24, 24, 27, 0.8);
  background: rgba(24, 24, 27, 0.2);
}

.ri-modal__icon {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(168, 85, 247, 0.1);
  color: #9333ea;
}

html.dark .ri-modal__icon {
  color: #c084fc;
}

.ri-modal__title {
  margin: 0;
  font-family: var(--rodaria-font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #0f172a;
}

html.dark .ri-modal__title {
  color: #fff;
}

.ri-modal__sub {
  margin: 0.125rem 0 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

html.dark .ri-modal__sub {
  color: #71717a;
}

.ri-modal__close {
  padding: 0.375rem;
  border-radius: 0.75rem;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.ri-modal__close:hover {
  background: #e2e8f0;
  color: #334155;
}

html.dark .ri-modal__close:hover {
  background: #27272a;
  color: #e4e4e7;
}

.ri-modal__body {
  padding: 1.5rem;
  overflow-y: auto;
  font-family: var(--rodaria-font-sans);
  font-size: 0.75rem;
  line-height: 1.625;
  color: #475569;
}

@media (min-width: 640px) {
  .ri-modal__body {
    font-size: 0.875rem;
  }
}

html.dark .ri-modal__body {
  color: #a1a1aa;
}

.ri-modal__body h4 {
  margin: 0 0 0.5rem;
  font-family: var(--rodaria-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

html.dark .ri-modal__body h4 {
  color: #fff;
}

.ri-modal__body p {
  margin: 0 0 1rem;
}

.ri-modal__banner {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.875rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.1);
  background: rgba(59, 130, 246, 0.05);
  color: #1e40af;
  font-size: 11px;
  font-weight: 600;
}

html.dark .ri-modal__banner {
  background: rgba(59, 130, 246, 0.02);
  color: #93c5fd;
}

.ri-modal__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
  color: #94a3b8;
}

html.dark .ri-modal__meta {
  border-top-color: #18181b;
  color: #71717a;
}

.ri-modal__foot {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.5);
}

html.dark .ri-modal__foot {
  border-top-color: rgba(24, 24, 27, 0.8);
  background: rgba(24, 24, 27, 0.2);
}

.ri-modal__foot-btn {
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #fff;
  font-family: var(--rodaria-font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.ri-modal__foot-btn:hover {
  background: #000;
}

.ri-modal__foot-btn:active {
  transform: scale(0.95);
}

html.dark .ri-modal__foot-btn {
  background: #fff;
  color: #000;
}

html.dark .ri-modal__foot-btn:hover {
  background: #f4f4f5;
}

body.ri-modal-open {
  overflow: hidden;
}
