body.page-legal {
  height: 100vh;
  overflow: hidden;
}

.page-legal .page {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.legal-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 32px;
}
.legal-scroll::-webkit-scrollbar { display: none; }

.legal-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
}

.legal-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.legal-section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.legal-text {
  font-size: 0.8125rem;
  color: var(--t2);
  line-height: 1.7;
}

.legal-email {
  color: var(--primary);
}

.legal-link {
  color: var(--primary);
  text-decoration: underline;
}

/* Dated documents (privacy_*.jsp, terms_*.jsp): the update date and the bullet lists. */
.legal-updated {
  font-size: 0.75rem;
  color: var(--t3);
  margin-bottom: 12px;
}

.legal-text + .legal-text,
.legal-text + .legal-list,
.legal-list + .legal-text {
  margin-top: 8px;
}

.legal-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8125rem;
  color: var(--t2);
  line-height: 1.7;
}

.legal-list li + li {
  margin-top: 4px;
}

.legal-list strong {
  color: var(--t1);
  font-weight: 600;
}
