/*
 * (legal) The Terms of Service (/terms) and the Privacy Policy (/privacy), on top of the landing page's and
 * the documentation's stylesheets: the docs' contents sidebar and reading column, light and dark as the system
 * is. Its own: the draft notice and placeholders (marked data-legal-review: never in a production build), the
 * dates, the summary, the disclaimers and the providers table.
 */

.legal .docs-main {
  line-height: 1.65;
}

.legal .docs-main h2 {
  margin-top: 48px;
}

.legal .docs-main h3 {
  margin: 28px 0 10px;
  font-size: var(--text-lg);
}

.legal-draft {
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid var(--warning-fg);
  border-radius: var(--radius);
  background: var(--warning-bg);
  color: var(--warning-fg);
}

.legal-placeholder {
  padding: 0 1px;
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
  color: var(--warning-fg);
  font-weight: 600;
}

.legal-note {
  padding: 10px 14px;
  border-left: 4px solid var(--warning-fg);
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
  color: var(--warning-fg);
  font-size: var(--text-md);
}

.legal-dates {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 16px;
  margin: 0 0 32px;
  color: var(--fg-muted);
  font-size: var(--text-md);
}

.legal-dates dt {
  font-weight: 700;
}

.legal-dates dd {
  margin: 0;
}

.legal-summary {
  padding: 4px 24px 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--bg-app);
}

.legal .docs-main .legal-summary h2 {
  margin-top: 20px;
}

/* Disclaimers and limits stand out by weight, not capitals: easier to read, the same emphasis. */
.legal-caps {
  font-weight: 600;
}

.legal-providers th[scope="row"] {
  white-space: normal;
}

.legal address {
  font-style: normal;
  margin: 0 0 16px;
}
