

.tos {
  max-width: 880px;
  margin: 3.5rem auto 4rem;
  padding: 2.75rem 2.25rem 3rem;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 55%),
              rgba(7, 10, 24, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  color: #f5f7ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Layout helpers */
.tos *::selection {
  background: rgba(245, 166, 35, 0.3);
}

/* Top meta (Last updated) */
.tos > p:first-of-type {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(245, 247, 255, 0.7);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.tos > p:first-of-type strong {
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.12);
  color: #f5a623;
}

/* Base text */
.tos p {
  margin: 0 0 1rem;
  color: rgba(245, 247, 255, 0.9);
}

.tos p em {
  font-style: italic;
  color: rgba(245, 247, 255, 0.85);
}

/* Headings */
.tos h1,
.tos h2,
.tos h3 {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 2.4rem 0 0.75rem;
}

.tos h2:first-of-type {
  margin-top: 1.75rem;
}

.tos h2 {
  position: relative;
  font-size: 0.95rem;
  padding-top: 1.1rem;
}

.tos h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5a623, #ffd27a);
}

.tos h3 {
  font-size: 0.9rem;
}

/* Lists */
.tos ul {
  margin: 0.25rem 0 1.25rem 1.2rem;
  padding-left: 0;
  list-style: none;
}

.tos ul li {
  position: relative;
  margin: 0.4rem 0;
  padding-left: 1.15rem;
  color: rgba(245, 247, 255, 0.9);
}

.tos ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.9);
}

/* Nested lists */
.tos ul ul {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  margin-left: 1.1rem;
  padding-left: 0.4rem;
  border-left: 1px solid rgba(245, 166, 35, 0.25);
}

.tos ul ul li {
  font-size: 0.9rem;
  color: rgba(245, 247, 255, 0.8);
}

.tos ul ul li::before {
  width: 4px;
  height: 4px;
  background: rgba(245, 166, 35, 0.8);
}

/* Links */
.tos a {
  color: #f5a623;
  text-decoration: none;
  border-bottom: 1px dashed rgba(245, 166, 35, 0.5);
  padding-bottom: 1px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.tos a:hover,
.tos a:focus-visible {
  color: #ffd27a;
  border-bottom-color: rgba(255, 210, 122, 0.9);
  box-shadow: 0 2px 0 rgba(255, 210, 122, 0.4);
}

/* Emphasis elements */
.tos strong {
  font-weight: 600;
  color: #ffffff;
}

/* Inline code or tokens, if ever present */
.tos code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Callouts / special notes (using <p><em>...) */
.tos p em {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

/* Section spacing tweaks for last elements */
.tos > h2:last-of-type {
  margin-top: 2.4rem;
}

.tos > p:last-child {
  margin-bottom: 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .tos {
    margin: 2.25rem 1.25rem 3rem;
    padding: 2rem 1.4rem 2.4rem;
    border-radius: 16px;
  }

  .tos h2 {
    font-size: 0.9rem;
  }

  .tos p,
  .tos li {
    font-size: 0.93rem;
  }
}

@media (max-width: 480px) {
  .tos {
    margin: 1.8rem 1rem 2.4rem; 
    padding: 1.6rem 1.1rem 2rem;
  }

  .tos > p:first-of-type {
    font-size: 0.78rem;
  } 

  .tos ul {
    margin-left: 0.9rem;
  }
}