.terms-page {
  color: var(--ink);
  background: #f4f7fb;
}

.terms-page p,
.terms-page li,
.terms-page a,
.terms-page h1,
.terms-page h2,
.terms-page h3 {
  word-break: normal;
  word-break: auto-phrase;
  overflow-wrap: normal;
}

.terms-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  min-height: 43rem;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #070b12 0%, #0a1628 62%, #0c2340 100%);
}

.terms-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(142, 179, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 179, 255, 0.12) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  mask-image: linear-gradient(105deg, #000, rgba(0, 0, 0, 0.28) 68%, transparent);
}

.terms-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem var(--page-gutter) 6rem;
}

.terms-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.65rem;
  margin-bottom: 3rem;
  padding: 0.45rem 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(142, 179, 255, 0.24);
  background: rgba(12, 35, 64, 0.5);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.terms-status span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 1rem rgba(29, 92, 255, 0.9);
}

.terms-hero h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 6.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.07em;
}

.terms-hero-copy > p:not(.eyebrow) {
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.terms-back {
  align-self: flex-start;
  margin-top: 3rem;
  padding-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.terms-back span {
  margin-right: 0.45rem;
}

.terms-logo-panel {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 32rem;
  margin: 8.5rem var(--page-gutter) 4.5rem 0;
  overflow: hidden;
  border: 1px solid rgba(142, 179, 255, 0.22);
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(145deg, rgba(29, 92, 255, 0.18), rgba(7, 11, 18, 0.45));
  background-size: 1.75rem 1.75rem, 1.75rem 1.75rem, auto;
}

.terms-logo-panel::before,
.terms-logo-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(142, 179, 255, 0.18);
  border-radius: 50%;
}

.terms-logo-panel::before {
  width: 30rem;
  height: 30rem;
}

.terms-logo-panel::after {
  width: 20rem;
  height: 20rem;
}

.terms-logo-panel img {
  position: relative;
  z-index: 2;
  width: min(64%, 20rem);
  max-height: 22rem;
  object-fit: contain;
  filter: drop-shadow(0 1rem 3rem rgba(0, 0, 0, 0.42));
}

.terms-panel-index {
  position: absolute;
  z-index: 3;
  top: 1.35rem;
  left: 1.5rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.terms-panel-meta {
  position: absolute;
  z-index: 3;
  right: 1.5rem;
  bottom: 1.25rem;
  left: 1.5rem;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.terms-content {
  padding: clamp(5rem, 9vw, 9rem) var(--page-gutter) clamp(7rem, 11vw, 11rem);
}

.terms-intro {
  display: grid;
  grid-template-columns: minmax(12rem, 0.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  max-width: 88rem;
  margin: 0 auto clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.terms-intro > p:last-child {
  max-width: 52rem;
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: -0.02em;
}

.terms-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8.5rem);
  max-width: 88rem;
  margin: 0 auto;
}

.terms-sidebar {
  align-self: start;
  position: sticky;
  top: 7rem;
}

.terms-sidebar > p {
  margin: 0 0 1.25rem;
  color: var(--cobalt);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.terms-sidebar ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.terms-sidebar a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.55rem;
  padding: 0.72rem 0;
  color: rgba(7, 11, 18, 0.62);
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color 180ms ease, padding-left 180ms ease;
}

.terms-sidebar a:hover {
  padding-left: 0.3rem;
  color: var(--cobalt);
}

.terms-sidebar span {
  color: var(--cobalt);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.terms-document {
  min-width: 0;
}

.review-note {
  margin-bottom: 3.5rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-left: 3px solid var(--cobalt);
  background: #e9efff;
}

.review-note p {
  margin: 0;
}

.review-note-label {
  margin-bottom: 0.55rem !important;
  color: var(--cobalt);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.review-note p:last-child {
  color: rgba(7, 11, 18, 0.7);
  font-size: 0.88rem;
}

.terms-section {
  scroll-margin-top: 7rem;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(2.5rem, 5vw, 4.2rem) 0;
  border-top: 1px solid var(--line);
}

.terms-no {
  margin: 0.35rem 0 0;
  color: var(--cobalt);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.terms-section h2 {
  margin: 0 0 1.8rem;
  font-size: clamp(1.35rem, 2.25vw, 2rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.03em;
}

.terms-section p,
.terms-section li {
  color: rgba(7, 11, 18, 0.68);
  font-size: 0.96rem;
  line-height: 2;
}

.terms-section p {
  margin: 0 0 1rem;
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-section ul {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.terms-section li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  border-bottom: 1px solid rgba(7, 20, 39, 0.1);
}

.terms-section li::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  background: var(--cobalt);
}

.terms-signature {
  margin-top: 4rem;
  padding: clamp(2rem, 4vw, 3rem);
  color: #fff;
  background: linear-gradient(135deg, #0c2340, #123b9a);
}

.terms-signature p {
  margin: 0;
}

.terms-signature p:first-child {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
}

.terms-signature p:nth-child(2) {
  font-size: 1.2rem;
  font-weight: 600;
}

.terms-signature a {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .terms-hero {
    grid-template-columns: 1fr;
  }

  .terms-hero-copy {
    padding-bottom: 4rem;
  }

  .terms-logo-panel {
    min-height: 28rem;
    margin: 0 var(--page-gutter) 4.5rem;
  }

  .terms-intro,
  .terms-layout {
    grid-template-columns: 1fr;
  }

  .terms-sidebar {
    position: static;
  }

  .terms-sidebar ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

@media (max-width: 760px) {
  .terms-hero {
    min-height: auto;
  }

  .terms-hero-copy {
    min-height: 34rem;
    padding-top: 8rem;
  }

  .terms-status {
    margin-bottom: 2rem;
  }

  .terms-hero h1 {
    font-size: clamp(2.85rem, 13vw, 4.6rem);
  }

  .terms-logo-panel {
    min-height: 24rem;
  }

  .terms-panel-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .desktop-only {
    display: none;
  }

  .terms-sidebar ol {
    grid-template-columns: 1fr;
  }

  .terms-section {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .terms-section p,
  .terms-section li {
    font-size: 0.94rem;
    overflow-wrap: normal;
    word-break: auto-phrase;
  }

  .terms-section h2,
  .review-note,
  .terms-signature {
    min-width: 0;
    max-width: 100%;
  }
}
