/* Booking flow — shared step chrome, fold-fit protection, premium add-ons */

:root {
  --rf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rf-dur: 480ms;
  --rf-sticky-top: 8.75rem;
  --rf-rail-h: 3.35rem;
  --rf-brand: #132a8e;
  --rf-accent: #ff7a1a;
  --rf-ink: #0e1116;
}

/* =========================================================
   Shared persistent step rail (all booking steps)
   ========================================================= */
#rf-shared-steps {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 48;
  pointer-events: none;
  padding: 0.55rem 0 0.65rem;
  background: rgba(250, 250, 252, 0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(14, 17, 22, 0.07);
  box-shadow: 0 8px 28px -18px rgba(14, 17, 22, 0.28);
  transition:
    opacity 280ms var(--rf-ease),
    transform 280ms var(--rf-ease);
}

#rf-shared-steps[hidden] {
  display: none !important;
}

#rf-shared-steps .rf-shared-inner {
  pointer-events: auto;
  max-width: 110rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  #rf-shared-steps .rf-shared-inner {
    padding-inline: 2.5rem;
  }
}

#rf-shared-steps .rf-shared-track {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

#rf-shared-steps .rf-shared-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

#rf-shared-steps .rf-shared-item:last-child {
  flex: 0 1 auto;
}

#rf-shared-steps .rf-shared-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  cursor: default;
  text-decoration: none;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: rgba(14, 17, 22, 0.45);
  background: rgba(14, 17, 22, 0.05);
  white-space: nowrap;
  transition:
    background-color 320ms var(--rf-ease),
    color 320ms var(--rf-ease),
    box-shadow 320ms var(--rf-ease),
    transform 320ms var(--rf-ease);
}

#rf-shared-steps .rf-shared-icon {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #fff;
  color: inherit;
  flex-shrink: 0;
  transition: background-color 320ms var(--rf-ease), color 320ms var(--rf-ease);
}

#rf-shared-steps .rf-shared-label {
  display: none;
}

@media (min-width: 768px) {
  #rf-shared-steps .rf-shared-label {
    display: inline;
  }
}

#rf-shared-steps .rf-shared-item.is-done .rf-shared-pill {
  cursor: pointer;
  color: var(--rf-brand);
  background: rgba(19, 42, 142, 0.08);
}

#rf-shared-steps .rf-shared-item.is-done .rf-shared-icon {
  background: var(--rf-brand);
  color: #fff;
}

#rf-shared-steps .rf-shared-item.is-done .rf-shared-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(19, 42, 142, 0.45);
}

#rf-shared-steps .rf-shared-item.is-current .rf-shared-pill {
  color: #fff;
  background: var(--rf-ink);
  box-shadow: 0 10px 24px -14px rgba(14, 17, 22, 0.65);
}

#rf-shared-steps .rf-shared-item.is-current .rf-shared-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

#rf-shared-steps .rf-shared-conn {
  flex: 1;
  height: 2px;
  min-width: 0.75rem;
  border-radius: 999px;
  background: rgba(14, 17, 22, 0.1);
  transition: background-color 360ms var(--rf-ease);
}

#rf-shared-steps .rf-shared-item.is-done .rf-shared-conn {
  background: var(--rf-brand);
}

#rf-shared-steps .rf-shared-item.is-current .rf-shared-conn {
  background: linear-gradient(90deg, var(--rf-brand), rgba(14, 17, 22, 0.1));
}

/* Hide native in-page step rails — shared chrome replaces them */
html.rf-has-shared-rail .rf-native-rail,
html.rf-has-shared-rail .rf-step-rail {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Protection / Add-ons / Checkout — no mini search strip under the header */
html[data-rf-step="build"] .sticky.top-0.z-50 > .border-t,
html[data-rf-step="addons"] .sticky.top-0.z-50 > .border-t,
html[data-rf-step="checkout"] .sticky.top-0.z-50 > .border-t {
  display: none !important;
}

/*
 * Sticky bottom CTA (price + Continue / Pay) on booking steps.
 * React already renders these bars; keep them visible on all breakpoints.
 */
html[data-rf-step="build"] #root .fixed.inset-x-0.bottom-0,
html[data-rf-step="addons"] #root .fixed.inset-x-0.bottom-0,
html[data-rf-step="checkout"] #root .fixed.inset-x-0.bottom-0 {
  display: block !important;
  z-index: 45 !important;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
  box-shadow: 0 -12px 40px -18px rgba(14, 17, 22, 0.35);
}

/* Keep support FAB clear of the sticky CTA */
html[data-rf-step="build"] #root .fixed.bottom-24.right-4,
html[data-rf-step="addons"] #root .fixed.bottom-24.right-4,
html[data-rf-step="checkout"] #root .fixed.bottom-24.right-4 {
  bottom: 6.5rem !important;
}

/* Room for the sticky CTA so page content isn't covered */
html[data-rf-step="build"] #root > div.flex.min-h-svh,
html[data-rf-step="addons"] #root > div.flex.min-h-svh,
html[data-rf-step="checkout"] #root > div.flex.min-h-svh {
  padding-bottom: 5.75rem !important;
}

/* Protection: sticky bar is the only CTA — hide the inline desktop total row */
html[data-rf-step="build"] #root .hidden.shrink-0.items-center.gap-4.rounded-2xl.border.border-line.bg-white.md\:flex {
  display: none !important;
}

/* Checkout: also kill any leftover step strip in the dark hero */
html.rf-has-shared-rail[data-rf-step="checkout"] section.bg-ink a[href="/addons"] + div {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Reserve space under sticky header for the fixed shared rail */
html.rf-has-shared-rail[data-rf-step] #root main > div.mx-auto,
html.rf-has-shared-rail[data-rf-step="build"] #root [class*="max-w-[110rem]"].px-4.py-8,
html.rf-has-shared-rail[data-rf-step="addons"] #root [class*="max-w-[110rem]"].px-4.py-8 {
  padding-top: calc(0.75rem + var(--rf-rail-h)) !important;
}

html.rf-has-shared-rail[data-rf-step="checkout"] section.bg-ink > div[class*="max-w"] {
  padding-top: calc(0.85rem + var(--rf-rail-h)) !important;
}

/* =========================================================
   Body-only premium transitions
   ========================================================= */
@keyframes rf-body-in {
  from {
    opacity: 0;
    transform: translate3d(28px, 6px, 0);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes rf-body-in-back {
  from {
    opacity: 0;
    transform: translate3d(-28px, 6px, 0);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

.rf-step-body.rf-enter {
  animation: rf-body-in var(--rf-dur) var(--rf-ease) both;
}

.rf-step-body.rf-enter-back {
  animation: rf-body-in-back var(--rf-dur) var(--rf-ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .rf-step-body.rf-enter,
  .rf-step-body.rf-enter-back {
    animation: none !important;
  }

  #rf-shared-steps .rf-shared-pill,
  #rf-shared-steps .rf-shared-conn,
  #rf-shared-steps .rf-shared-icon {
    transition: none !important;
  }
}

/* =========================================================
   Protection — cards fit one desktop viewport
   ========================================================= */
@media (min-width: 1024px) {
  html[data-rf-step="build"] #root a[href*="/car/"] {
    margin-bottom: 0;
  }

  /* Heading row: keep premium air, trim only excess before cards */
  html[data-rf-step="build"] #root a[href*="/car/"] ~ .rf-step-body.mt-8,
  html[data-rf-step="build"] #root .rf-step-body.mt-8.flex {
    margin-top: 1.15rem !important;
  }

  html[data-rf-step="build"] #root h1 {
    font-size: clamp(1.55rem, 2vw, 1.95rem) !important;
    line-height: 1.15 !important;
    margin-top: 0.35rem !important;
  }

  html[data-rf-step="build"] #root h1 + p {
    margin-top: 0.4rem !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    max-width: 36rem;
  }

  html[data-rf-step="build"] #root .rounded-2xl.border.border-line.bg-white {
    padding: 0.55rem 0.9rem !important;
  }

  html[data-rf-step="build"] #root .grid[class*="gap-4"][class*="grid-cols"] {
    margin-top: 0.85rem !important;
    gap: 0.8rem !important;
  }

  html[data-rf-step="build"] #root button[aria-pressed] {
    padding: 0.8rem 0.9rem !important;
    border-radius: 1.15rem !important;
  }

  html[data-rf-step="build"] #root button[aria-pressed] > span.absolute {
    top: -0.55rem !important;
    padding: 0.18rem 0.55rem !important;
    font-size: 9px !important;
  }

  html[data-rf-step="build"] #root button[aria-pressed] [class*="text-[1.35rem]"] {
    font-size: 1.1rem !important;
  }

  html[data-rf-step="build"] #root button[aria-pressed] .mt-3 {
    margin-top: 0.4rem !important;
  }

  html[data-rf-step="build"] #root button[aria-pressed] .mt-2 {
    margin-top: 0.3rem !important;
  }

  html[data-rf-step="build"] #root button[aria-pressed] .mt-4 {
    margin-top: 0.5rem !important;
  }

  html[data-rf-step="build"] #root button[aria-pressed] .border-t {
    padding-top: 0.5rem !important;
  }

  html[data-rf-step="build"] #root button[aria-pressed] [class*="space-y-2.5"] > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.32rem !important;
  }

  html[data-rf-step="build"] #root button[aria-pressed] [class*="h-8"][class*="w-8"] {
    height: 1.6rem !important;
    width: 1.6rem !important;
    border-radius: 0.45rem !important;
  }

  html[data-rf-step="build"] #root button[aria-pressed] [class*="text-[13px]"] {
    font-size: 0.74rem !important;
    line-height: 1.25 !important;
  }

  html[data-rf-step="build"] #root button[aria-pressed] [class*="text-2xl"] {
    font-size: 1.3rem !important;
  }
}

/* =========================================================
   Add-ons — premium hero strip + list peek
   ========================================================= */
@media (min-width: 1024px) {
  html[data-rf-step="addons"] #root h1 {
    font-size: clamp(1.55rem, 2vw, 1.95rem) !important;
    line-height: 1.15 !important;
    margin-top: 0.35rem !important;
  }

  html[data-rf-step="addons"] #root .rf-step-body .mt-8.grid,
  html[data-rf-step="addons"] #root .grid[class*="lg:grid-cols"] {
    margin-top: 1.15rem !important;
    gap: 1.25rem !important;
    align-items: start !important;
  }

  html[data-rf-step="addons"] #root p.font-display.text-lg {
    margin-top: 0.85rem !important;
    font-size: 1rem !important;
  }

  /* Recommended: horizontal premium strip */
  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] {
    margin-top: 0.55rem !important;
    border-radius: 1.2rem !important;
    max-height: 12.25rem;
  }

  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] > div {
    max-height: 12.25rem;
    align-items: stretch;
  }

  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] [class*="sm:w-64"] {
    width: 11.5rem !important;
    flex-shrink: 0 !important;
    overflow: hidden;
  }

  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] img,
  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] [class*="object-cover"] {
    height: 100% !important;
    max-height: 12.25rem !important;
    object-fit: cover !important;
  }

  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] .p-5,
  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] [class*="sm:p-6"],
  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] [class*="p-5"] {
    padding: 0.85rem 1.05rem !important;
  }

  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] .text-xl,
  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] [class*="text-xl"] {
    font-size: 1.15rem !important;
  }

  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] .text-sm {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }

  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] .mt-3 {
    margin-top: 0.35rem !important;
  }

  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] .mt-4 {
    margin-top: 0.45rem !important;
  }

  /* Hide bulky compare / warning so strip stays elegant */
  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] .rounded-2xl.border.border-line.bg-surface,
  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] .bg-amber-50 {
    display: none !important;
  }

  html[data-rf-step="addons"] #root [class*="overflow-hidden"][class*="rounded-[1.6rem]"] [class*="space-y-1.5"] > :nth-child(n + 4) {
    display: none !important;
  }

  html[data-rf-step="addons"] #root p.mt-10.font-display,
  html[data-rf-step="addons"] #root .mt-10.font-display.text-lg {
    margin-top: 1.1rem !important;
    font-size: 1rem !important;
  }

  html[data-rf-step="addons"] #root .mt-3.grid.gap-3 {
    margin-top: 0.55rem !important;
    gap: 0.5rem !important;
  }

  html[data-rf-step="addons"] #root .mt-3.grid.gap-3 > button {
    padding: 0.7rem 0.9rem !important;
    border-radius: 1rem !important;
  }

  html[data-rf-step="addons"] #root .mt-3.grid.gap-3 > button [class*="h-12"][class*="w-12"] {
    height: 2.5rem !important;
    width: 2.5rem !important;
    border-radius: 0.75rem !important;
  }

  html[data-rf-step="addons"] #root .sticky.top-24 [class*="rounded-[1.6rem]"],
  html[data-rf-step="addons"] #root .sticky.top-24 .card {
    padding: 1rem !important;
    border-radius: 1.2rem !important;
  }
}

/* =========================================================
   Checkout — no overlapping native rail; shared chrome only
   ========================================================= */
html[data-rf-step="checkout"] section.bg-ink .rf-native-rail {
  display: none !important;
}

@media (min-width: 1024px) {
  html[data-rf-step="checkout"] section.bg-ink h1 {
    font-size: clamp(1.85rem, 2.5vw, 2.5rem) !important;
    line-height: 1.05 !important;
  }
}

/* Thin sticky price-hold timer (shown after full banner scrolls away) */
#rf-sticky-timer {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 47;
  pointer-events: none;
  transform: translateY(-110%);
  opacity: 0;
  transition:
    transform 240ms var(--rf-ease),
    opacity 240ms var(--rf-ease);
}

#rf-sticky-timer:not([hidden]) {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#rf-sticky-timer[hidden] {
  display: block !important;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

#rf-sticky-timer .rf-sticky-timer__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.35rem;
  padding: 0.35rem 1.25rem;
  background: linear-gradient(90deg, #ff7a1a, #ff9142);
  color: #fff;
  box-shadow: 0 8px 22px -14px rgba(255, 122, 26, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

#rf-sticky-timer.is-urgent .rf-sticky-timer__inner {
  background: linear-gradient(90deg, #e11d48, #ff7a1a);
}

#rf-sticky-timer.is-expired .rf-sticky-timer__inner {
  background: #0e1116;
}

#rf-sticky-timer .rf-sticky-timer__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

#rf-sticky-timer .rf-sticky-timer__clock {
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
}

#rf-sticky-timer .rf-sticky-timer__hint {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  #rf-sticky-timer .rf-sticky-timer__hint {
    display: none;
  }
}

/* Terms actions + inline legal links */
#terms-card .rf-terms-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.85rem;
}

#terms-card .rf-view-policy {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
  background: var(--rf-brand);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  transition: background 160ms ease, transform 160ms ease;
}

#terms-card .rf-view-policy:hover {
  background: #0f2280;
  transform: translateY(-1px);
}

#terms-card .rf-terms-page-link,
#terms-card .rf-inline-legal {
  color: var(--rf-brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#terms-card .rf-inline-legal--btn {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: var(--rf-brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#terms-card .rf-terms-page-link {
  font-size: 0.82rem;
}

/* Full location policy sheet */
#rf-policy-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
}

#rf-policy-sheet[hidden] {
  display: none !important;
}

#rf-policy-sheet .rf-policy-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 17, 22, 0.55);
  backdrop-filter: blur(2px);
}

#rf-policy-sheet .rf-policy-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(52rem, 100%);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--rf-ink);
  border-radius: 1.35rem 1.35rem 0 0;
  box-shadow: 0 -24px 60px -28px rgba(14, 17, 22, 0.45);
  overflow: hidden;
}

@media (min-width: 768px) {
  #rf-policy-sheet {
    place-items: center;
  }

  #rf-policy-sheet .rf-policy-sheet__panel {
    border-radius: 1.35rem;
    max-height: min(84vh, 820px);
  }
}

#rf-policy-sheet .rf-policy-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(14, 17, 22, 0.08);
}

#rf-policy-sheet .rf-policy-sheet__kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rf-accent);
}

#rf-policy-sheet #rf-policy-title {
  margin: 0.2rem 0 0;
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

#rf-policy-sheet .rf-policy-sheet__close {
  border: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(14, 17, 22, 0.06);
  color: var(--rf-ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

#rf-policy-sheet .rf-policy-sheet__body {
  overflow: auto;
  padding: 0.85rem 1.25rem 1.25rem;
  overscroll-behavior: contain;
}

#rf-policy-sheet .rf-policy-sheet__loading {
  margin: 1.5rem 0;
  text-align: center;
  color: rgba(14, 17, 22, 0.55);
}

#rf-policy-sheet .rf-policy-block {
  border: 1px solid rgba(14, 17, 22, 0.1);
  border-radius: 1rem;
  background: #fafafc;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

#rf-policy-sheet .rf-policy-block summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 750;
  font-size: 0.95rem;
}

#rf-policy-sheet .rf-policy-block summary::-webkit-details-marker {
  display: none;
}

#rf-policy-sheet .rf-policy-block__n {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #fff;
  color: var(--rf-brand);
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(14, 17, 22, 0.06);
  border: 1px solid rgba(19, 42, 142, 0.14);
}

#rf-policy-sheet .rf-policy-block__body {
  padding: 0 1rem 1rem 3.45rem;
  color: rgba(14, 17, 22, 0.78);
  font-size: 0.9rem;
  line-height: 1.55;
}

#rf-policy-sheet .rf-policy-block__body p {
  margin: 0 0 0.7rem;
}

#rf-policy-sheet .rf-policy-block__body a {
  color: var(--rf-brand);
  font-weight: 700;
}

#rf-policy-sheet .rf-policy-sheet__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  padding: 0.85rem 1.25rem 1.1rem;
  border-top: 1px solid rgba(14, 17, 22, 0.08);
  background: #fafafc;
}

#rf-policy-sheet .rf-policy-sheet__link {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--rf-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Standalone legal pages (/terms, /privacy) */
html.rf-legal,
html.rf-legal body {
  background: #f6f7fb;
}

#rf-legal-page {
  min-height: 100svh;
  color: var(--rf-ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

#rf-legal-page .rf-legal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

#rf-legal-page .rf-legal__shell {
  background: #fff;
  border-bottom: 1px solid rgba(14, 17, 22, 0.08);
}

#rf-legal-page .rf-legal__brand {
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--rf-brand);
  text-decoration: none;
}

#rf-legal-page .rf-legal__nav {
  color: rgba(14, 17, 22, 0.55);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

#rf-legal-page .rf-legal__main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

#rf-legal-page .rf-legal__card {
  background: #fff;
  border: 1px solid rgba(14, 17, 22, 0.1);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem 2rem;
  box-shadow: 0 18px 40px -30px rgba(14, 17, 22, 0.35);
}

#rf-legal-page .rf-legal__kicker {
  margin: 0;
  color: var(--rf-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#rf-legal-page h1 {
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.2rem 0 0.5rem;
}

#rf-legal-page .rf-legal__meta {
  color: rgba(14, 17, 22, 0.55);
  font-size: 0.92rem;
  margin: 0 0 1.2rem;
}

#rf-legal-page .rf-legal__section h2 {
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  font-size: 1.08rem;
  margin: 1.35rem 0 0.4rem;
}

#rf-legal-page .rf-legal__section p,
#rf-legal-page .rf-legal__section li {
  color: rgba(14, 17, 22, 0.82);
  line-height: 1.6;
}

#rf-legal-page .rf-legal__section ul {
  padding-left: 1.2rem;
}

#rf-legal-page .rf-legal__section a {
  color: var(--rf-brand);
  font-weight: 700;
}

#rf-legal-page .rf-legal__foot {
  margin-top: 1.5rem;
  color: rgba(14, 17, 22, 0.5);
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  :root {
    --rf-sticky-top: 4.25rem;
    --rf-rail-h: 3rem;
  }

  #rf-shared-steps {
    padding: 0.4rem 0 0.5rem;
  }

  #rf-shared-steps .rf-shared-inner {
    padding-inline: 1rem;
  }

  #rf-shared-steps .rf-shared-pill {
    padding: 0.4rem 0.55rem;
  }
}
