.terms-page {
  max-width: 960px;
}

.terms-sheet {
  padding: clamp(1.4rem, 5vw, 3.5rem);
}

.terms-hero,
.terms-intro,
.terms-section,
.terms-contact,
.terms-footer {
  position: relative;
  z-index: 1;
}

.terms-hero {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.terms-hero h1 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.35rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: 0.035em;
  text-shadow: 0 0 25px rgba(125, 249, 255, 0.22);
}

.terms-lead {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.terms-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.5rem;
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.terms-intro {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2rem 0 0;
  padding: 1.4rem;
  border: 1px solid rgba(255, 212, 107, 0.36);
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(255, 212, 107, 0.11), rgba(255, 79, 216, 0.08));
  box-shadow: 0 0 28px rgba(255, 212, 107, 0.06);
}

.terms-mark {
  display: grid;
  place-items: center;
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(255, 212, 107, 0.55);
  border-radius: 1rem;
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(255, 212, 107, 0.08);
}

.terms-intro h2,
.terms-section h2,
.terms-contact h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
}

.terms-intro h2 {
  color: var(--gold);
  font-size: 1.15rem;
}

.terms-intro p,
.terms-section p,
.terms-contact p {
  max-width: 72ch;
  margin: 0.6rem 0 0;
}

.terms-section {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.terms-number {
  padding-top: 0.15rem;
  color: var(--pink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.terms-section h2 {
  color: var(--gold);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.terms-list {
  max-width: 70ch;
  margin: 0.8rem 0 0;
  padding-left: 1.25rem;
}

.terms-list li {
  margin: 0.4rem 0;
  padding-left: 0.25rem;
}

.terms-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.terms-links a,
.terms-email {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(125, 249, 255, 0.28);
  border-radius: 0.8rem;
  color: var(--cyan);
  background: rgba(125, 249, 255, 0.06);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.terms-links a:hover,
.terms-email:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 212, 107, 0.55);
  background: rgba(255, 212, 107, 0.08);
  color: var(--gold);
}

.terms-links a:focus-visible,
.terms-email:focus-visible,
.terms-inline:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.terms-inline {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.terms-inline:hover {
  color: var(--gold);
}

.terms-contact {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(125, 249, 255, 0.28);
  border-radius: 1.2rem;
  background: rgba(125, 249, 255, 0.06);
}

.terms-contact h2 {
  font-size: 1.4rem;
}

.terms-email {
  margin-top: 1rem;
  overflow-wrap: anywhere;
}

.terms-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  color: var(--text-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .terms-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .terms-section {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .terms-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-links a,
  .terms-email {
    transition: none;
  }
}
