/* ===== TERMS OF SERVICE LAYOUT ===== */

.terms-hero {
  position: relative;
  padding: 180px 24px 80px;
  overflow: hidden;
  background: linear-gradient(to bottom, #d8e5ff, var(--white));
}

.terms-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.terms-hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -1.6px;
  color: var(--black);
  margin-bottom: 24px;
}

.terms-hero__meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.terms-hero__meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--gray-light);
}

/* Container */
.terms-container {
  max-width: 848px;
  margin: 0 auto;
  padding: 48px 24px 120px;
}

/* Legal Notice Card */
.terms-notice {
  background: rgba(239, 68, 68, 0.03);
  border: 1px dashed rgba(220, 38, 38, 0.3);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 48px;
}

.terms-notice__title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-notice__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #7f1d1d;
}

/* Callout Box (Zero-Knowledge & Critical terms) */
.terms-callout {
  background: rgba(19, 91, 236, 0.03);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}

.terms-callout--warning {
  background: rgba(220, 38, 38, 0.02);
  border-left-color: var(--red);
}

.terms-callout__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}

.terms-callout__title--warning {
  color: var(--red);
}

.terms-callout__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

/* Sections & Typography */
.terms-section {
  margin-bottom: 48px;
}

.terms-section__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-lighter);
  padding-bottom: 12px;
}

.terms-section__title::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--blue);
  margin-bottom: 12px;
}

.terms-subsection__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin: 28px 0 12px;
}

.terms-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.75);
  margin-bottom: 18px;
}

/* Lists */
.terms-list {
  padding-left: 24px;
  margin-bottom: 24px;
}

.terms-list--ordered {
  list-style-type: decimal;
}

.terms-list--unordered {
  list-style-type: disc;
}

.terms-list__item {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.75);
  margin-bottom: 10px;
  padding-left: 4px;
}

.terms-list__item strong {
  color: var(--black);
}

/* Subscription Tiers Table */
.terms-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.terms-table th {
  background: var(--gray-lighter);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--black);
  padding: 16px 20px;
  border-bottom: 2px solid var(--gray-light);
}

.terms-table td {
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.8);
  border-bottom: 1px solid var(--gray-light);
  vertical-align: top;
}

.terms-table tr:last-child td {
  border-bottom: none;
}

.terms-table tr:hover td {
  background-color: rgba(19, 91, 236, 0.01);
}

.terms-table__tier-name {
  font-weight: 600;
  color: var(--black);
}

.terms-table__price {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--blue);
  font-weight: 600;
}

.terms-table__features {
  padding-left: 16px;
  list-style-type: disc;
}

.terms-table__feature-item {
  margin-bottom: 4px;
}

/* Responsiveness */
@media (max-width: 768px) {
  .terms-hero {
    padding: 140px 16px 60px;
  }

  .terms-hero__title {
    font-size: 44px;
  }

  .terms-hero__meta {
    flex-direction: column;
    gap: 8px;
  }

  .terms-hero__meta-divider {
    display: none;
  }

  .terms-container {
    padding: 32px 16px 80px;
  }

  .terms-section__title {
    font-size: 24px;
  }
}
