/* === Terms & Conditions — public page === */

.terms-page {
  max-width: 920px;
  margin: 32px auto 64px;
  padding: 0 20px;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
}

/* --- Header --- */
.terms-page__header {
  margin: 0 0 28px;
  text-align: center;
}

.terms-page__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.terms-page__title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin: 0 0 14px;
  line-height: 1.2;
}

.terms-page__rule {
  width: 56px;
  height: 4px;
  margin: 0 auto;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  border-radius: 3px;
}

/* --- Card container --- */
.terms-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 36px 44px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
              0 12px 32px -8px rgba(15, 23, 42, 0.08);
}

/* --- Content typography --- */
.terms-content > *:first-child { margin-top: 0; }
.terms-content > *:last-child  { margin-bottom: 0; }

.terms-content h1,
.terms-content h2 {
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  letter-spacing: -0.005em;
}

.terms-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin: 24px 0 8px;
}

.terms-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin: 18px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.terms-content p {
  margin: 0 0 14px;
}

.terms-content ul,
.terms-content ol {
  margin: 0 0 16px 4px;
  padding-left: 22px;
}

.terms-content li {
  margin-bottom: 6px;
}

.terms-content li::marker {
  color: #2563eb;
}

.terms-content a {
  color: #1d4ed8;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 78, 216, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.terms-content a:hover {
  color: #1e40af;
  border-bottom-color: #1e40af;
}

.terms-content strong { color: #0f172a; }

.terms-content blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 4px solid #2563eb;
  background: #f8fafc;
  color: #334155;
  border-radius: 0 6px 6px 0;
}

.terms-content hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 28px 0;
}

.terms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
}

.terms-content th,
.terms-content td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  text-align: left;
}

.terms-content th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

/* --- Empty state --- */
.terms-empty {
  text-align: center;
  padding: 48px 24px;
  color: #64748b;
}

.terms-empty__icon {
  width: 56px;
  height: 56px;
  color: #94a3b8;
  margin: 0 auto 14px;
  display: block;
}

.terms-empty p {
  margin: 0;
  font-size: 15px;
  font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .terms-page {
    margin: 20px auto 40px;
    padding: 0 14px;
    font-size: 15px;
  }
  .terms-page__title { font-size: 26px; }
  .terms-card {
    padding: 24px 20px;
    border-radius: 12px;
  }
  .terms-content h1,
  .terms-content h2 { font-size: 18px; margin-top: 24px; }
  .terms-content h3 { font-size: 16px; }
}
