.legal-page {
  background: var(--paper);
  color: var(--ink);
}

.legal-page .site-header {
  color: var(--white);
}

.legal-page .site-header:not(.is-scrolled) {
  background: transparent;
}

.legal-hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 122, 0, 0.14), transparent 27%),
    radial-gradient(circle at 16% 130%, rgba(255, 251, 244, 0.06), transparent 42%),
    #101218;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 40%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 40%, transparent);
}

.legal-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 145px 0 72px;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--white);
  font-size: clamp(54px, 8vw, 102px);
  font-weight: 670;
  letter-spacing: -0.072em;
  line-height: 0.92;
}

.legal-hero .eyebrow {
  margin-bottom: 20px;
}

.legal-hero p:last-child {
  max-width: 630px;
  margin: 26px 0 0;
  color: rgba(255, 250, 243, 0.57);
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.58;
}

.legal-content {
  background: var(--paper);
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: space-between;
  gap: clamp(70px, 11vw, 160px);
  padding-top: 88px;
  padding-bottom: 140px;
}

.legal-aside {
  align-self: start;
  position: sticky;
  top: 108px;
}

.legal-aside-label {
  margin: 0 0 18px;
  color: var(--action-primary-ink);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-aside p:not(.legal-aside-label) {
  margin: 0;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.6;
}

.legal-aside a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  color: var(--action-primary-ink);
  font-size: 13px;
  font-weight: 650;
}

.legal-article {
  min-width: 0;
}

.legal-article > section {
  padding: 0 0 48px;
  margin: 0 0 48px;
  border-bottom: 1px solid var(--paper-line);
  scroll-margin-top: 110px;
}

.legal-article > section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-article h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 650;
  letter-spacing: -0.044em;
  line-height: 1.13;
}

.legal-article p,
.legal-article li {
  color: #504a44;
  font-size: 16px;
  line-height: 1.78;
}

.legal-article p {
  margin: 0 0 18px;
}

.legal-article p:last-child {
  margin-bottom: 0;
}

.legal-article ul {
  margin: 20px 0 22px;
  padding: 0;
  list-style: none;
}

.legal-article li {
  position: relative;
  padding-left: 24px;
  margin-top: 13px;
}

.legal-article li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.legal-article strong {
  color: var(--ink);
  font-weight: 680;
}

.legal-article a,
.support-card a {
  color: var(--action-primary-ink);
  font-weight: 620;
  text-decoration-line: underline;
  text-decoration-color: var(--action-primary-ink-muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 22px;
  padding-top: 88px;
  padding-bottom: 130px;
}

.support-card {
  position: relative;
  padding: clamp(30px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(15, 17, 21, 0.09);
  border-radius: 27px;
  background: rgba(255, 251, 244, 0.82);
  box-shadow:
    0 2px 4px rgba(15, 17, 21, 0.035),
    0 18px 44px rgba(15, 17, 21, 0.075),
    0 40px 90px rgba(15, 17, 21, 0.045);
}

.support-card-primary {
  grid-row: span 2;
  min-height: 500px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 0, 0.14), transparent 33%),
    var(--paper-light);
}

.support-number {
  display: block;
  margin-bottom: 46px;
  color: var(--action-primary-ink);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.17em;
}

.support-card h2 {
  max-width: 510px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(29px, 3.2vw, 44px);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 1.06;
}

.support-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.support-card p,
.support-card li {
  color: var(--stone);
  font-size: 15px;
  line-height: 1.68;
}

.support-card p {
  margin: 20px 0 0;
}

.support-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.support-card li {
  position: relative;
  margin-top: 13px;
  padding-left: 22px;
}

.support-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.support-email {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: 32px;
  padding: 0 19px;
  border: 1px solid var(--action-primary-fill);
  border-radius: 999px;
  background: var(--action-primary-fill);
  box-shadow: none;
  color: var(--action-primary-text) !important;
  font-size: 14px;
  font-weight: 740 !important;
  text-decoration: none !important;
  transition: background var(--motion-normal) ease, opacity var(--motion-fast) ease, transform var(--motion-normal) var(--ease-out);
}

.support-note {
  position: absolute;
  right: 42px;
  bottom: 38px;
  left: 42px;
  padding-top: 23px;
  border-top: 1px solid var(--paper-line);
  color: rgba(15, 17, 21, 0.46) !important;
  font-size: 12px !important;
}

.support-card-privacy {
  background:
    radial-gradient(circle at 100% 100%, rgba(15, 17, 21, 0.055), transparent 40%),
    rgba(255, 251, 244, 0.82);
}

.support-feedback {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 30px;
  padding: 34px 4px 0;
  border-top: 1px solid var(--paper-line);
}

.support-feedback > div > span {
  color: var(--action-primary-ink);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.support-feedback p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.support-feedback > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--action-primary-ink);
  font-size: 13px;
  font-weight: 680;
}

.support-feedback > a span {
  margin-left: 8px;
}

.legal-page .site-footer {
  color: var(--white);
}

.callback-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding:
    max(28px, env(safe-area-inset-top))
    max(28px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(28px, env(safe-area-inset-left));
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 122, 0, 0.13), transparent 28%),
    radial-gradient(circle at 15% 90%, rgba(255, 251, 244, 0.055), transparent 36%),
    var(--ink);
}

.callback-page::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle, black, transparent 72%);
  mask-image: radial-gradient(circle, black, transparent 72%);
  pointer-events: none;
}

.callback-card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  overflow: hidden;
  padding: 54px 44px 45px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(26, 29, 36, 0.76);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 20px 50px rgba(0, 0, 0, 0.28),
    0 50px 110px rgba(0, 0, 0, 0.22);
  text-align: center;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.callback-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--action-primary);
}

.callback-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 34px;
  border-radius: 18px;
  object-fit: cover;
  filter: drop-shadow(0 0 20px rgba(255, 122, 0, 0.26));
}

.callback-card .eyebrow {
  margin-bottom: 17px;
}

.callback-card h1 {
  margin: 0;
  color: var(--white);
  font-size: 38px;
  font-weight: 660;
  letter-spacing: -0.055em;
}

.callback-card > p:not(.eyebrow) {
  margin: 16px auto 0;
  color: rgba(255, 250, 243, 0.56);
  font-size: 15px;
  line-height: 1.6;
}

.callback-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 31px;
  border: 1px solid var(--action-primary-fill);
  border-radius: 999px;
  background: var(--action-primary-fill);
  box-shadow: none;
  color: var(--action-primary-text);
  font-size: 15px;
  font-weight: 740;
  transition: background var(--motion-normal) ease, opacity var(--motion-fast) ease, transform var(--motion-normal) var(--ease-out);
}

.callback-card .callback-hint {
  margin-top: 21px !important;
  color: rgba(255, 250, 243, 0.36) !important;
  font-size: 12px !important;
}

.not-found-page {
  background: var(--ink);
  color: var(--white);
}

.not-found-stage {
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(255, 122, 0, 0.11), transparent 29%),
    radial-gradient(circle at 12% 88%, rgba(255, 251, 244, 0.045), transparent 32%),
    #0d0f13;
}

.not-found-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(circle at 66% 48%, black, transparent 73%);
  mask-image: radial-gradient(circle at 66% 48%, black, transparent 73%);
  pointer-events: none;
}

.not-found-atmosphere {
  position: absolute;
  top: 22%;
  right: -10%;
  width: min(760px, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.06), rgba(255, 122, 0, 0.02) 36%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.not-found-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: clamp(55px, 8vw, 120px);
  min-height: max(760px, 100svh);
  padding: 145px 0 90px;
}

.not-found-copy {
  min-width: 0;
  width: 100%;
  max-width: 680px;
}

.not-found-copy .eyebrow {
  margin-bottom: 26px;
}

.not-found-copy h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(64px, 7vw, 106px);
  font-weight: 690;
  letter-spacing: -0.068em;
  line-height: 0.98;
  text-wrap: balance;
}

.not-found-copy h1 .not-found-title-line,
.not-found-copy h1 .not-found-accent {
  display: block;
}

.not-found-copy h1 .not-found-accent {
  padding-bottom: 0.08em;
  background: linear-gradient(103deg, var(--action-primary), var(--action-primary-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found-lede {
  max-width: 570px;
  margin: 34px 0 0;
  color: rgba(255, 250, 243, 0.62);
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.not-found-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 39px;
}

.not-found-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 8px;
  color: rgba(255, 250, 243, 0.72);
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease;
}

.not-found-visual {
  position: relative;
  justify-self: end;
  width: min(500px, 38vw);
  aspect-ratio: 1;
}

.not-found-code {
  position: absolute;
  top: 50%;
  left: 50%;
  color: transparent;
  font-size: clamp(128px, 14vw, 220px);
  font-weight: 760;
  letter-spacing: -0.12em;
  line-height: 1;
  opacity: 0.15;
  transform: translate(-52%, -50%);
  -webkit-text-stroke: 1px rgba(255, 250, 243, 0.55);
}

.not-found-ring {
  position: absolute;
  border: 1px solid rgba(255, 250, 243, 0.09);
  border-radius: 50%;
}

.not-found-ring-outer {
  inset: 3%;
  box-shadow: 0 0 90px rgba(255, 122, 0, 0.03) inset;
}

.not-found-ring-inner {
  inset: 24%;
  border-color: rgba(255, 122, 0, 0.2);
}

.not-found-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 122, 0, 0.25);
  border-radius: 50%;
  background: rgba(15, 17, 21, 0.82);
  box-shadow: 0 0 65px rgba(255, 122, 0, 0.19), inset 0 0 30px rgba(255, 122, 0, 0.06);
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.not-found-core img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
}

.not-found-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--action-primary);
  box-shadow: 0 0 18px rgba(255, 122, 0, 0.68);
}

.not-found-spark-one { top: 12%; left: 42%; }
.not-found-spark-two { right: 9%; bottom: 32%; width: 4px; height: 4px; background: var(--paper-light); }
.not-found-spark-three { bottom: 8%; left: 27%; width: 3px; height: 3px; background: var(--orange); }

.not-found-page .site-footer {
  color: var(--white);
}

.support-email:active,
.callback-button:active {
  background: var(--action-primary-fill-hover);
  opacity: 1;
  transform: scale(0.982);
}

@media (hover: hover) and (pointer: fine) {
  .support-email:hover {
    background: var(--action-primary-fill-hover);
  }

  .callback-button:hover {
    background: var(--action-primary-fill-hover);
  }

  .not-found-secondary:hover {
    color: var(--white);
  }
}

@media (max-width: 820px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .legal-aside {
    position: static;
    max-width: 500px;
    padding-bottom: 38px;
    border-bottom: 1px solid var(--paper-line);
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-card-primary {
    grid-row: auto;
  }

  .not-found-layout {
    grid-template-columns: 1fr;
    min-height: max(760px, 100svh);
  }

  .not-found-copy {
    position: relative;
    z-index: 2;
  }

  .not-found-visual {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: var(--space-lg);
    width: min(64vw, 500px);
    opacity: 0.3;
  }
}

@media (max-width: 620px) {
  .legal-hero,
  .legal-hero-content {
    min-height: 420px;
  }

  .legal-hero-content {
    padding-top: 128px;
    padding-bottom: 56px;
  }

  .legal-hero h1 {
    font-size: clamp(48px, 10vw, 62px);
  }

  .legal-layout,
  .support-layout {
    padding-top: 60px;
    padding-bottom: 95px;
  }

  .legal-article > section {
    padding-bottom: 36px;
    margin-bottom: 36px;
  }

  .legal-article p,
  .legal-article li {
    font-size: 15px;
    line-height: 1.72;
  }

  .support-card {
    padding: 28px 24px;
    border-radius: 23px;
  }

  .support-card-primary {
    min-height: 540px;
  }

  .support-note {
    right: 24px;
    bottom: 27px;
    left: 24px;
  }

  .support-feedback {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
    padding-top: 28px;
  }

  .callback-page {
    padding:
      max(16px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }

  .callback-card {
    padding: 44px 24px 34px;
    border-radius: 24px;
  }

  .not-found-layout {
    align-items: start;
    min-height: 760px;
    padding-top: 152px;
    padding-bottom: 90px;
  }

  .not-found-copy h1 {
    font-size: clamp(48px, 14vw, 62px);
    line-height: 1;
  }

  .not-found-lede {
    margin-top: 27px;
    font-size: 16px;
  }

  .not-found-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-top: 32px;
  }

  .not-found-secondary {
    min-height: 44px;
  }

  .not-found-visual {
    right: 50%;
    bottom: var(--space-lg);
    width: min(86vw, 360px);
    opacity: 0.24;
    transform: translateX(50%);
  }
}
