/* Legal document pages only: Terms of Service and Privacy Policy
   (loaded by terms.html and privacy.html after styles.css). */

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.terms-doc {
  overflow-wrap: break-word;
}

.doc-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.terms-doc h1 {
  font-size: clamp(28px, 5.4vw, 40px);
  letter-spacing: 0.04em;
}

.terms-doc .page__meta {
  margin-bottom: 6px;
}

.doc-effective {
  margin: 0 0 36px !important;
  font-size: 15px;
  color: var(--text) !important;
}

/* table of contents */
.toc {
  margin: 0 0 16px;
  padding: 24px 24px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.page .toc__title {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}
.page .toc li {
  margin: 0;
  break-inside: avoid;
}
.page .toc a {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.page .toc a:hover {
  color: var(--text);
}
.toc__num {
  flex: 0 0 1.8em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
  .page .toc a {
    padding: 8px 0;
  }
}

/* sections */
.doc-section {
  scroll-margin-top: 16px;
}
.doc-section h2 {
  scroll-margin-top: 16px;
}
.terms-doc h3 {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.doc-caps,
.doc-important {
  font-size: 14.5px;
  letter-spacing: 0.01em;
  line-height: 1.7;
}
.doc-important {
  margin: 28px 0 0 !important;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text) !important;
}

.doc-address {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.doc-copyright {
  margin-top: 40px !important;
  font-size: 14px;
  color: var(--muted) !important;
}

/* floating link back to the contents */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.92);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.to-top:hover {
  color: var(--text);
}
