/* /safety, /terms, /privacy — horizontal scroll-snap legal chain */

body[data-page="legal-help"]:has(.topbar) {
  padding-top: 0 !important;
}

body[data-page="legal-help"] {
  overflow: hidden;
  background: #020617;
}

body[data-page="legal-help"] .ac-page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 55% 45% at 78% 18%, rgba(37, 99, 235, 0.12), transparent 68%),
    radial-gradient(ellipse 50% 40% at 18% 22%, rgba(236, 72, 153, 0.06), transparent 62%),
    linear-gradient(180deg, #050b1d 0%, #020617 45%, #020617 100%);
}

body[data-page="legal-help"] main.page,
body[data-page="legal-help"] main.container.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

body[data-page="legal-help"] footer.site-footer,
body[data-page="legal-help"] .site-footer {
  display: none;
}

.legalHelp {
  position: relative;
  flex: 1;
  min-height: 0;
  height: calc(100vh - var(--topbar-offset, 72px));
  height: calc(100dvh - var(--topbar-offset, 72px));
}

.legalHelp__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.legalHelp__track::-webkit-scrollbar {
  display: none;
}

.legalHelp__panel {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.legalHelp__panelInner {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding:
    clamp(28px, 4vw, 48px)
    clamp(24px, 4vw, 48px)
    clamp(96px, 12vw, 120px);
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.35) transparent;
}

.legalHelp__bgWord {
  position: absolute;
  top: clamp(24px, 4vw, 40px);
  left: clamp(16px, 4vw, 48px);
  z-index: 0;
  margin: 0;
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  color: rgba(148, 163, 184, 0.075);
}

.legalHelp__bgWord--right {
  left: auto;
  right: clamp(16px, 4vw, 48px);
  text-align: right;
}

.legalHelp__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(56px);
  z-index: 0;
}

.legalHelp__glow--left {
  left: -6%;
  top: 8%;
  width: min(380px, 38vw);
  height: min(380px, 38vw);
  background: rgba(236, 72, 153, 0.08);
}

.legalHelp__glow--right {
  right: -4%;
  top: 20%;
  width: min(420px, 42vw);
  height: min(420px, 42vw);
  background: rgba(59, 130, 246, 0.1);
}

.legalHelp__glow--center {
  left: 50%;
  top: 30%;
  width: min(360px, 36vw);
  height: min(360px, 36vw);
  transform: translateX(-50%);
  background: rgba(59, 130, 246, 0.08);
}

.legalHelp__header {
  position: relative;
  max-width: 640px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  padding-top: clamp(40px, 6vw, 64px);
}

.legalHelp__index {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(96, 165, 250, 0.55);
}

.legalHelp__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #60a5fa;
}

.legalHelp__eyebrowIcon {
  flex-shrink: 0;
  color: #60a5fa;
}

.legalHelp__title {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.legalHelp__lead {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(0.96rem, 1.2vw, 1.06rem);
  line-height: 1.65;
  color: rgba(203, 213, 225, 0.82);
}

.legalHelp__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 18px);
  max-width: 76rem;
  margin: 0 auto;
}

.legalHelp__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: clamp(18px, 2.2vw, 22px);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(8, 16, 34, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
}

.legalHelp__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

.legalHelp__cardTitle {
  margin: 0 0 6px;
  font-size: clamp(0.95rem, 1.1vw, 1rem);
  font-weight: 700;
  line-height: 1.3;
  color: #f8fafc;
}

.legalHelp__cardText {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.58;
  color: rgba(148, 163, 184, 0.9);
}

.legalHelp__note {
  max-width: 76rem;
  margin: clamp(24px, 3vw, 32px) auto 0;
  padding: clamp(18px, 2.2vw, 22px);
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(8, 16, 34, 0.52);
}

.legalHelp__noteTitle {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.legalHelp__noteText {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.92);
}

.legalHelp__noteText a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legalHelp__noteText a:hover {
  color: #bfdbfe;
}

.legalHelp__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
}

.legalHelp__arrow--prev {
  left: clamp(12px, 2vw, 20px);
}

.legalHelp__arrow--next {
  right: clamp(12px, 2vw, 20px);
}

.legalHelp__progress {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3vw, 28px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 14px);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 16, 34, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.legalHelp__progressItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(148, 163, 184, 0.75);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.legalHelp__progressItem:hover {
  color: #e2e8f0;
  background: rgba(59, 130, 246, 0.1);
}

.legalHelp__progressItem.is-active {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
}

.legalHelp__progressNum {
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .legalHelp__grid {
    grid-template-columns: 1fr;
  }

  .legalHelp__panelInner {
    padding-inline: 20px;
    padding-bottom: clamp(108px, 16vw, 128px);
  }

  .legalHelp__bgWord {
    top: clamp(16px, 3vw, 24px);
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .legalHelp__progress {
    left: 50%;
    right: auto;
    width: min(calc(100% - 32px), 22rem);
    justify-content: center;
    flex-wrap: wrap;
  }

  .legalHelp__progressLabel {
    display: none;
  }

  .legalHelp__arrow--prev {
    left: 8px;
  }

  .legalHelp__arrow--next {
    right: 8px;
  }
}

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