/* The privacy and support pages: standalone documents in the app's look. Every colour, size,
   radius and space comes from tokens.css, which the page links before this file. */

* { box-sizing: border-box; }

html { background: var(--stage); }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--stage-glow), var(--stage) 280px, var(--stage-deep));
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-long);
  font-weight: var(--weight-prose);
  line-height: var(--leading-long);
  overflow-wrap: anywhere;
}

.legal {
  max-width: var(--column);
  margin: 0 auto;
  padding: calc(var(--safe-top) + var(--space-4)) calc(var(--gutter) + var(--safe-right)) calc(var(--safe-bottom) + var(--space-7)) calc(var(--gutter) + var(--safe-left));
}

.legal__back {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text-soft);
  font-weight: var(--weight-label);
}

h1 {
  margin: var(--space-3) 0 var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
}

h2 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: var(--text-l);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
}

p, ul, ol { margin: var(--space-2) 0; }

ul, ol { padding-left: var(--space-5); }

li { margin: var(--space-1) 0; }

.legal__lead { color: var(--text-soft); }

.legal__card {
  margin: var(--space-3) 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-m);
  background: var(--panel);
}

.legal__card ul { margin: 0; }

code {
  font-family: inherit;
  font-weight: var(--weight-label);
  color: var(--torch);
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: var(--rule);
  text-underline-offset: 4px;
  text-decoration-color: var(--panel-edge);
}

a:hover { text-decoration-color: var(--sun); }

a:focus-visible {
  outline: var(--ring) solid var(--focus);
  outline-offset: var(--lip-xs);
  border-radius: var(--radius-s);
}

.legal__foot {
  margin-top: var(--space-6);
  color: var(--text-faint);
  font-size: var(--text-s);
}

/* A wide screen gets a longer line, about 68 characters, instead of a phone-wide strip. */
@media (min-width: 700px) {
  .legal {
    max-width: var(--column-prose);
  }
}
