/**
 * Terms of Service — professional legal page
 */
.terms-page {
  background: #07060b;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.terms-main {
  padding: 0 0 4rem;
}

.terms-article {
  max-width: 100%;
}

/* Header */
.terms-header {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, transparent 100%);
}

.terms-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin: 0 0 0.75rem;
}

.terms-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.75rem;
}

.terms-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Content card */
.terms-content-wrap {
  padding: 2.5rem 0 0;
}

.terms-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: rgba(18, 16, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 4px 40px -12px rgba(0, 0, 0, 0.5);
}

.terms-body {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  line-height: 1.75;
}

.terms-body .terms-loading {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

/* Typography for CMS content */
.terms-body h1,
.terms-body h2,
.terms-body h3,
.terms-body h4 {
  color: #fff;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.terms-body h1 { font-size: 1.5rem; margin-top: 0; }
.terms-body h2 { font-size: 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 0.5rem; }
.terms-body h3 { font-size: 1.1rem; }
.terms-body h4 { font-size: 1rem; }

.terms-body p {
  margin: 0 0 1.25rem;
}

.terms-body p:last-child {
  margin-bottom: 0;
}

.terms-body ul,
.terms-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.terms-body li {
  margin-bottom: 0.5rem;
}

.terms-body a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-body a:hover {
  color: #a5b4fc;
}

.terms-body strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.terms-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.08);
  border-radius: 0 8px 8px 0;
  color: rgba(255, 255, 255, 0.8);
}

.terms-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2rem 0;
}

.terms-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.terms-body th,
.terms-body td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.terms-body th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 640px) {
  .terms-card {
    padding: 1.5rem 1.25rem;
  }
  .terms-body {
    font-size: 0.95rem;
  }
}
