.th-legal-page {
  background:
    radial-gradient(circle at 70% 0%, rgba(37, 99, 235, .08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #ffffff 100%);
}

.th-legal-container {
  max-width: 1100px;
}

.th-legal-hero {
  position: relative;
  overflow: hidden;
  padding: 126px 0 50px;
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, .1), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.th-legal-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5ebf5 18%, #e5ebf5 82%, transparent);
}

.th-legal-hero .th-kicker {
  min-height: 34px;
  padding: 0 17px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--th-primary);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .095em;
  text-transform: uppercase;
  white-space: nowrap;
}

.th-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: color var(--th-transition), transform var(--th-transition);
}

.th-legal-back:hover {
  color: var(--th-primary);
  transform: translateX(-2px);
}

.th-legal-back::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.th-legal-hero h1 {
  max-width: 820px;
  margin: 24px 0 0;
  color: #172033;
  font-size: 72px;
  line-height: .98;
  letter-spacing: 0;
  font-weight: 900;
}

.th-legal-hero p {
  max-width: 660px;
  margin: 24px 0 0;
  color: #334155;
  font-size: 21px;
  line-height: 1.62;
  font-weight: 500;
}

.th-legal-updated {
  width: fit-content;
  margin-top: 26px;
  padding: 10px 13px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #1e40af;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 850;
}

.th-legal-email {
  min-height: 48px;
  width: fit-content;
  margin-top: 18px;
  margin-left: auto;
  padding: 0 18px;
  border: 1px solid var(--th-primary);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  background: linear-gradient(180deg, #2563eb 0%, #1558f0 100%) !important;
  box-shadow: 0 16px 30px rgba(37, 99, 235, .18);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  transition: transform var(--th-transition), box-shadow var(--th-transition);
}

.th-legal-email:hover {
  color: #ffffff !important;
  background: linear-gradient(180deg, #1d5fea 0%, #144fd8 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, .22);
}

.th-legal-content {
  padding: 0 0 74px;
}

.th-legal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.th-legal-summary span {
  min-height: 92px;
  padding: 18px;
  border: 1px solid #e5ebf5;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  color: #334155;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .045);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.th-legal-stack {
  display: grid;
  gap: 16px;
}

.th-legal-card {
  padding: 28px;
  border: 1px solid #e5ebf5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .045);
}

.th-legal-card > span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--th-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.th-legal-card h2 {
  margin: 0 0 12px;
  color: #172033;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.th-legal-card p {
  max-width: 850px;
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.72;
}

.th-legal-card p + p {
  margin-top: 12px;
}

@media (max-width: 920px) {
  .th-legal-hero {
    padding-top: 112px;
  }

  .th-legal-hero h1 {
    font-size: 48px;
  }

  .th-legal-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .th-legal-hero {
    padding: 104px 0 40px;
  }

  .th-legal-hero h1 {
    font-size: 38px;
  }

  .th-legal-hero p {
    font-size: 17px;
  }

  .th-legal-email {
    width: 100%;
    margin-left: 0;
  }

  .th-legal-card {
    padding: 20px;
  }
}
