:root {
  --bg: #060b12;
  --surface: rgba(10, 18, 28, 0.84);
  --surface-strong: rgba(7, 13, 22, 0.96);
  --text: #f2f6ff;
  --text-soft: #91a7c2;
  --line: rgba(135, 170, 211, 0.14);
  --accent: #ff6a3d;
  --signal-blue: #46a5ff;
  --signal-red: #ff4664;
  --signal-gold: #ffb64a;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.36);
}

/* Global page shell and ambient background */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 14%, rgba(70, 165, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 84% 16%, rgba(255, 70, 100, 0.17), transparent 25rem),
    radial-gradient(circle at 78% 80%, rgba(255, 106, 61, 0.11), transparent 24rem),
    linear-gradient(180deg, #050911 0%, #07101a 44%, #050911 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: -14%;
  pointer-events: none;
  z-index: -1;
}

/* Moving light bands echo the homepage atmosphere */
body::before {
  background:
    linear-gradient(110deg, transparent 18%, rgba(70, 165, 255, 0.12) 28%, transparent 38%),
    linear-gradient(292deg, transparent 46%, rgba(255, 70, 100, 0.11) 56%, transparent 66%);
  filter: blur(34px);
  animation: police-sweep 10s linear infinite alternate;
}

/* Grid texture keeps the document feeling tied to the futuristic UI */
body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 86%);
  opacity: 0.6;
}

.terms-page {
  width: min(1040px, calc(100vw - 1rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

/* Return link and primary content shells */
.return-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 700;
}

.return-button:hover,
.return-button:focus-visible {
  color: var(--text);
}

.terms-hero,
.terms-container {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 20, 31, 0.96), rgba(7, 12, 20, 0.96)),
    linear-gradient(135deg, rgba(70, 165, 255, 0.06), rgba(255, 70, 100, 0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.terms-hero::before,
.terms-container::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(70, 165, 255, 0.08), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 34%);
}

.terms-hero {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.terms-eyebrow {
  margin: 0;
  color: var(--signal-blue);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
}

.terms-hero h1,
.terms-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
}

.terms-hero h1 {
  margin: 0.75rem 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  max-width: 13ch;
  text-shadow: 0 0 34px rgba(70, 165, 255, 0.08);
}

.terms-lead,
.terms-section p {
  color: var(--text-soft);
  line-height: 1.65;
}

/* Reminder chips surface the most important limits immediately */
.terms-signal-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.terms-signal-bar span {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(135, 170, 211, 0.18);
  background: rgba(8, 15, 24, 0.72);
  color: #c8d9ee;
  font-size: 0.92rem;
  font-weight: 600;
}

.terms-signal-bar span:nth-child(2) {
  border-color: rgba(255, 182, 74, 0.2);
  color: #ffe0ac;
}

.terms-signal-bar span:nth-child(3) {
  border-color: rgba(255, 70, 100, 0.2);
  color: #ffc4cf;
}

/* Terms content blocks stay calm and readable despite the darker palette */
.terms-container {
  padding: 1.2rem;
}

.terms-section + .terms-section {
  border-top: 1px solid rgba(135, 170, 211, 0.1);
  margin-top: 1rem;
  padding-top: 1rem;
}

.terms-section h2 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  color: #eef4ff;
}

/* Responsive rules keep the typography and shell comfortable on phones */
@media (max-width: 640px) {
  .terms-page {
    width: min(100vw - 0.75rem, 1040px);
    padding-top: 0.9rem;
  }

  .terms-hero,
  .terms-container {
    border-radius: 24px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@keyframes police-sweep {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(0deg);
  }

  to {
    transform: translate3d(2%, 1%, 0) rotate(6deg);
  }
}
