html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 9rem;
}

.section-label {
  letter-spacing: 0.16em;
}

.blob-top-left {
  clip-path: ellipse(60% 70% at 0% 0%);
}

.blob-top-right {
  clip-path: ellipse(70% 70% at 100% 20%);
}

.blob-bottom-right {
  clip-path: ellipse(65% 75% at 100% 100%);
}

.hiw-curve {
  opacity: 0.5;
  filter: blur(0.2px);
}

.has-how-it-works-motion .hiw-step {
  opacity: 0.38;
  transform: translate3d(0, 2rem, 0) scale(0.96);
  filter: saturate(0.78);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms ease,
    filter 520ms ease;
  transition-delay: var(--step-delay, 0ms);
  will-change: transform, opacity, filter;
}

.has-how-it-works-motion .hiw-step.is-visible {
  opacity: 0.72;
  transform: translate3d(0, 0, 0) scale(1);
}

.hiw-step-visual,
.hiw-step-copy {
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms ease,
    filter 280ms ease;
}

.hiw-step-visual {
  transform-origin: center;
}

.hiw-step-copy {
  transform-origin: center left;
}

.hiw-step:hover,
.hiw-step:focus-within,
.has-how-it-works-motion .hiw-step.is-current {
  opacity: 1;
  filter: saturate(1);
  transform: translate3d(0, -0.45rem, 0) scale(1.015);
}

.hiw-step:hover .hiw-step-visual,
.hiw-step:focus-within .hiw-step-visual,
.has-how-it-works-motion .hiw-step.is-current .hiw-step-visual {
  transform: translate3d(0, -0.15rem, 0) scale(1.04) rotate(-1deg);
  filter: drop-shadow(0 28px 45px rgba(15, 23, 42, 0.14));
}

.hiw-step:hover .hiw-step-copy,
.hiw-step:focus-within .hiw-step-copy,
.has-how-it-works-motion .hiw-step.is-current .hiw-step-copy {
  transform: translate3d(0, -0.15rem, 0);
}

.has-how-it-works-motion .hiw-step.is-complete:not(.is-current) {
  opacity: 0.58;
  filter: saturate(0.9);
}

.float-orb-left,
.float-orb-right,
.float-orb-bottom,
.float-orb-hero {
  will-change: transform, opacity;
  animation: none;
}

@keyframes orb-drift-left {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate3d(18px, 16px, 0) scale(1.04);
    opacity: 0.92;
  }
}

@keyframes orb-drift-right {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate3d(-22px, 20px, 0) scale(1.05);
    opacity: 0.9;
  }
}

@keyframes orb-drift-bottom {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate3d(-18px, -18px, 0) scale(1.03);
    opacity: 0.9;
  }
}

@keyframes orb-pulse {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }

  50% {
    transform: translate3d(0, 10px, 0) scale(1.08);
    opacity: 0.72;
  }
}

.legal-page {
  background:
    radial-gradient(circle at top left, rgba(204, 242, 255, 0.72), transparent 34%),
    radial-gradient(circle at bottom right, rgba(104, 218, 18, 0.14), transparent 24%),
    #f8fbff;
}

.legal-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(24px);
}

.legal-richtext h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0c1d2e;
}

.legal-richtext h2:first-child {
  margin-top: 0;
}

.legal-richtext h3 {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.5;
  color: #0c1d2e;
}

.legal-richtext h2 + p,
.legal-richtext h3 + p,
.legal-richtext h2 + ul,
.legal-richtext h3 + ul {
  margin-top: 1rem;
}

.legal-richtext p,
.legal-richtext li {
  color: #475569;
  font-size: 1rem;
  line-height: 1.85;
}

.legal-richtext > div {
  color: #475569;
  font-size: 1rem;
  line-height: 1.85;
}

.legal-richtext > div + div {
  margin-top: 0.75rem;
}

.legal-richtext ul,
.legal-richtext .legal-document-list {
  margin-top: 1rem;
  list-style: disc;
  padding-left: 1.5rem;
}

.legal-richtext p + ul,
.legal-richtext p + .legal-document-list,
.legal-richtext .legal-document-list + p {
  margin-top: 0.75rem;
}

.legal-richtext li + li,
.legal-richtext p + p {
  margin-top: 0.75rem;
}

.legal-richtext .legal-document-index {
  font-weight: 700;
  color: #0c1d2e;
}

.legal-faq details {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.legal-faq summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-faq summary::-webkit-details-marker {
  display: none;
}

.legal-faq .faq-icon {
  flex-shrink: 0;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.legal-faq details[open] .faq-icon {
  transform: rotate(45deg);
}

.active-ads-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  min-height: 31rem;
  position: relative;
}

.active-ad-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.active-ad-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f1f5f9;
}

.active-ad-card-content {
  padding: 0.9rem;
}

.active-ad-card-title {
  color: #0c1d2e;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.active-ad-card-meta {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.4;
}

.active-ads-grid.is-loading {
  pointer-events: none;
}

.active-ads-grid.is-loading .active-ad-card {
  opacity: 0.45;
  transition: opacity 180ms ease;
}

.active-ads-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.active-ads-page-btn {
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #fff;
  color: #0c1d2e;
  border-radius: 9999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.active-ads-page-btn:disabled {
  opacity: 0.45;
}

.active-ads-page-indicator {
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
}

.active-ads-filters {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.active-ads-input,
.active-ads-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  color: #0c1d2e;
  background: #fff;
}

.active-ads-input {
  grid-column: span 2;
}

.active-ads-reset-btn {
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #fff;
  color: #0c1d2e;
  border-radius: 0.75rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .active-ads-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .active-ads-input {
    grid-column: span 2;
  }

  .active-ads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .active-ads-filters {
    grid-template-columns: 1fr;
  }

  .active-ads-input {
    grid-column: span 1;
  }

  .active-ads-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hiw-step,
  .hiw-step-visual,
  .hiw-step-copy,
  .float-orb-left,
  .float-orb-right,
  .float-orb-bottom,
  .float-orb-hero {
    animation: none;
    transition: none;
    transform: none;
    filter: none;
    opacity: 1;
  }
}
