* { box-sizing: border-box; }
:root { --legal-accent: #2DD881; }
body {
  margin: 0;
  background: #000000;
  color: #E2E2E2;
  font: 16px/1.6 'IBM Plex Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

.terms-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.legal-logo {
  display: block;
  width: 180px;
  margin: 0 0 36px;
}

.legal-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.terms-footer .legal-logo {
  margin: 0 0 20px;
}

.terms-label {
  margin: 0 0 14px;
  color: var(--legal-accent);
  font: 12px/1.6 'IBM Plex Mono', 'Courier New', monospace;
  letter-spacing: 0.12em;
}

h1, h2 {
  font-family: 'Bricolage Grotesque', Arial, sans-serif;
  line-height: 1.15;
  color: #FFFFFF;
  overflow-wrap: anywhere;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.015em;
}

.terms-dates {
  color: #9A9A9A;
  font: 13px/1.6 'IBM Plex Mono', 'Courier New', monospace;
  margin-bottom: 40px;
}

p {
  margin: 0 0 20px;
}

section {
  padding: 40px 0;
  border-top: 1px solid #252525;
}

section p {
  color: #BDBDBD;
}

nav[aria-labelledby="toc-heading"] {
  margin-bottom: 48px;
  padding: 28px;
  background: #111111;
  border: 1px solid #2A2A2A;
  border-radius: 10px;
}

#toc-heading {
  margin-bottom: 20px;
  font-size: 20px;
}

.toc-list {
  margin: 0;
  padding-left: 20px;
  color: #BDBDBD;
}

.toc-list li {
  margin-bottom: 9px;
  padding-right: 20px;
  break-inside: avoid;
}

.toc-list li:last-child {
  margin-bottom: 0;
}

nav[aria-labelledby="toc-heading"] a {
  text-decoration-color: var(--legal-accent);
}

nav[aria-labelledby="toc-heading"] a:hover {
  color: var(--legal-accent);
}

a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #555555;
}

a:hover {
  text-decoration-color: #FFFFFF;
}

a:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 4px;
  border-radius: 2px;
}

.terms-nav, .terms-footer {
  margin: 40px 0;
}

.terms-nav {
  margin-top: 0;
}

.terms-footer {
  border-top: 1px solid #333333;
  padding-top: 40px;
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(45, 216, 129, 0.55);
  border-radius: 8px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.back-link:hover {
  border-color: var(--legal-accent);
  color: var(--legal-accent);
  background: rgba(45, 216, 129, 0.06);
}

@media (min-width: 768px) {
  .terms-page { padding-top: 64px; }
  h1 { font-size: 52px; }
  h2 { font-size: 27px; }
  .toc-list {
    column-count: 2;
    column-gap: 48px;
    column-rule: 1px solid #252525;
  }
}
