/* OTPGrove — Terms of Service (dark SaaS layout) */

.tos-page {
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --tos-line: 1.8;
  --tos-glass-bg: rgba(255, 255, 255, 0.045);
  --tos-glass-border: #ffffff10;
  --tos-text: rgba(255, 255, 255, 0.88);
  --tos-muted: rgba(255, 255, 255, 0.62);
}

.tos-container {
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
}

.tos-hero {
  margin-bottom: 2.5rem;
}

.tos-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(91, 33, 182, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tos-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin: 1rem 0 0;
}

.tos-lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: var(--tos-line);
  color: var(--tos-muted);
  max-width: 42rem;
}

.tos-glass {
  background: var(--tos-glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--tos-glass-border);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.tos-glass--pad {
  padding: 1.5rem 1.5rem;
}

@media (min-width: 640px) {
  .tos-glass--pad {
    padding: 2rem 2.25rem;
  }
}

.tos-glass h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1rem;
}

@media (min-width: 640px) {
  .tos-glass h2 {
    font-size: 1.5rem;
  }
}

.tos-glass h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 1.75rem 0 0.75rem;
}

.tos-glass h3:first-of-type {
  margin-top: 1.25rem;
}

.tos-prose {
  font-size: 1rem;
  line-height: var(--tos-line);
  color: var(--tos-text);
}

.tos-prose p {
  margin: 0 0 1rem;
}

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

.tos-prose strong,
.tos-prose .tos-key {
  font-weight: 700;
  color: #fff;
}

.tos-prose a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.tos-prose a:hover {
  color: #c4b5fd;
}

.tos-list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tos-list-check li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  line-height: var(--tos-line);
  color: var(--tos-text);
}

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

.tos-check-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.2rem;
  color: #a78bfa;
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.35));
}

.tos-list-disc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tos-list-disc li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  line-height: var(--tos-line);
  color: var(--tos-text);
}

.tos-list-disc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: #7c3aed;
  opacity: 0.85;
}

/* Table of contents — desktop */
.tos-toc-desktop {
  top: 6.5rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding: 1.25rem 1.25rem;
}

.tos-toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tos-muted);
  margin: 0 0 1rem;
}

.tos-toc-desktop a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.tos-toc-desktop a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Mobile accordion TOC */
.tos-toc-mobile summary {
  list-style: none;
}

.tos-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.tos-toc-mobile summary::after {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: auto;
}

.tos-toc-mobile[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.tos-toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
}

.tos-toc-mobile nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: 0.375rem;
}

.tos-toc-mobile nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

[id^="section-"] {
  scroll-margin-top: 6rem;
}

.tos-grid-main {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .tos-grid-main {
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

.tos-capline {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
