/* License & Privacy pages — permission cards, license text, policy list.
   Card surface and typography are shared with the About cards (about.css). */

.legal-grid {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

@media (min-width: 640px) {
  .legal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The --yes / --no / --warn modifiers stay in the markup; their accent colours were already being
   overridden by the neutral card border and are not applied. */
.legal-card {
  border-left: 3px solid var(--border);
}

.legal-card h3 {
  margin: 0 0 var(--space-xs);
}

.legal-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.legal-license-text {
  margin: 0;
  padding: var(--space-md);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  color: var(--text-dim);
  font-family: var(--font-code);
  font-size: 0.78rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.legal-list {
  margin: 0 0 var(--space-md);
  padding-left: 1.2rem;
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.8;
}

.legal-list li {
  margin-bottom: var(--space-xs);
}

.legal-list strong {
  color: var(--text);
}
