.terms-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #fafafa;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e4e4e7;
  background: #fff;
}

.legal-hero-glow {
  position: absolute;
  top: -120px;
  left: 8%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(167, 243, 208, 0.55);
  filter: blur(95px);
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  padding-block: 60px 52px;
}

.legal-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: #047857;
  font-size: 14px;
  font-weight: 900;
}

.legal-eyebrow i {
  font-size: 21px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.2;
  letter-spacing: -2px;
}

.legal-introduction {
  max-width: 760px;
  margin: 18px 0 22px;
  color: #71717a;
  font-size: 18px;
  font-weight: 600;
  line-height: 2;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  background: #fafafa;
  padding: 8px 14px;
  color: #52525b;
  font-size: 12px;
  font-weight: 800;
}

.legal-updated i {
  color: #047857;
  font-size: 17px;
}

.legal-main {
  flex: 1;
  padding-block: 64px 86px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
  gap: 44px;
}

.legal-sidebar {
  position: sticky;
  top: 220px;
  display: grid;
  gap: 20px;
}

.legal-navigation {
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 24px;
  background: #fff;
  padding: 20px 15px;
  box-shadow: 0 12px 35px -28px rgba(24, 24, 27, 0.35);
}

.legal-navigation > p {
  margin: 0 10px 13px;
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.legal-navigation a {
  position: relative;
  display: block;
  border-radius: 10px;
  padding: 10px 14px;
  color: #71717a;
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s ease;
}

.legal-navigation a::before {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 3px;
  border-radius: 99px;
  background: #047857;
  content: "";
  opacity: 0;
  transform: scaleY(0.45);
  transition: 0.2s ease;
}

.legal-navigation a:hover {
  background: #fafafa;
  color: #18181b;
}

.legal-navigation a.is-active {
  background: #f4f4f5;
  color: #047857;
}

.legal-navigation a.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.legal-support {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border-radius: 22px;
  background: #18181b;
  padding: 20px;
  color: #fff;
}

.legal-support > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: #047857;
  color: #fff;
  font-size: 22px;
}

.legal-support h2 {
  margin: 1px 0 5px;
  font-size: 14px;
}

.legal-support p {
  margin: 0;
  color: #a1a1aa;
  font-size: 11px;
  line-height: 1.7;
}

.legal-support a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 900;
}

.legal-document {
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 40px;
  background: #fff;
  padding: 9px 48px;
  box-shadow: 0 24px 60px -42px rgba(24, 24, 27, 0.35);
}

.legal-document section {
  padding-block: 42px;
  scroll-margin-top: 225px;
}

.legal-document section + section {
  border-top: 1px solid #f0f0f1;
}

.legal-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.legal-section-title > span {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: #ecfdf5;
  color: #047857;
  font: 900 13px Outfit, sans-serif;
}

.legal-section-title h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.4;
}

.legal-document section > p {
  margin: 0;
  color: #52525b;
  font-size: 15px;
  font-weight: 600;
  line-height: 2.15;
}

.legal-document section > p + p,
.legal-feature-grid + p {
  margin-top: 16px;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.legal-list li {
  position: relative;
  padding-right: 22px;
  color: #52525b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.legal-list li::before {
  position: absolute;
  top: 11px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px #ecfdf5;
  content: "";
}

.legal-notice {
  display: flex;
  gap: 14px;
  margin: 24px 0;
  border: 1px solid #fde68a;
  border-radius: 18px;
  background: #fffbeb;
  padding: 19px 20px;
}

.legal-notice > i {
  flex: 0 0 auto;
  color: #d97706;
  font-size: 25px;
}

.legal-notice h3 {
  margin: 0 0 6px;
  color: #92400e;
  font-size: 14px;
}

.legal-notice p {
  margin: 0;
  color: #a16207;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}

.legal-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.legal-feature-grid > div {
  border: 1px solid #e4e4e7;
  border-radius: 19px;
  background: #fafafa;
  padding: 20px;
}

.legal-feature-grid i {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: #d1fae5;
  color: #047857;
  font-size: 21px;
}

.legal-feature-grid h3 {
  margin: 14px 0 6px;
  font-size: 14px;
}

.legal-feature-grid p {
  margin: 0;
  color: #71717a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
}

.terms-page--en .legal-navigation a::before {
  right: auto;
  left: 0;
}

.terms-page--en .legal-list li {
  padding-right: 0;
  padding-left: 22px;
}

.terms-page--en .legal-list li::before {
  right: auto;
  left: 2px;
}

@media (max-width: 960px) {
  .legal-layout {
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 24px;
  }

  .legal-document {
    padding-inline: 31px;
  }
}

@media (max-width: 760px) {
  .legal-hero-inner {
    padding-block: 38px 34px;
  }

  .legal-hero h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }

  .legal-introduction {
    margin-block: 13px 18px;
    font-size: 14px;
    line-height: 1.9;
  }

  .legal-main {
    padding-block: 28px 50px;
  }

  .legal-layout {
    display: block;
  }

  .legal-sidebar {
    display: none;
  }

  .legal-document {
    border-radius: 26px;
    padding: 0 20px;
  }

  .legal-document section {
    padding-block: 30px;
    scroll-margin-top: 160px;
  }

  .legal-section-title {
    gap: 11px;
    margin-bottom: 16px;
  }

  .legal-section-title > span {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .legal-section-title h2 {
    font-size: 20px;
  }

  .legal-document section > p {
    font-size: 13px;
  }

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