/* Legal page. The chat shell locks document scroll; this page is a normal document. */

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.45;
}

body {
  margin: 0;
}

.bar {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: calc(var(--space-2) + var(--safe-top)) var(--space-4) var(--space-2);
  background: var(--paper);
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  min-width: var(--tap);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}

.legal {
  width: min(var(--column), 100%);
  margin: 0 auto;
  padding: 0 var(--space-4) calc(var(--space-12) + var(--safe-bottom));
}

h1 {
  margin: var(--space-4) 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h2 {
  margin: var(--space-8) 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 var(--space-4);
}

.date {
  margin-bottom: var(--space-2);
  color: var(--ink-faint);
  font-size: var(--text-sm);
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

:focus-visible {
  outline: 2px solid var(--own);
  outline-offset: 2px;
}

@media (min-width: 48rem) {
  h1 {
    font-size: var(--text-title);
    letter-spacing: -0.05em;
  }

  .legal {
    padding-top: var(--space-4);
  }
}
