/* Shared by the three legal pages: privacy.html, terms.html and licenses.html. They are plain
   documents, separate from the app, so they load without its code. */
:root {
  /* Dark, like the app they are opened from. */
  color-scheme: dark;
  --bg: #0b0c0a;
  --ink: #f1efe8;
  --muted: rgb(255 255 255 / 0.55);
  --line: rgb(241 239 232 / 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  border-radius: 22%;
}

nav {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
}

nav [aria-current] {
  color: var(--ink);
  text-decoration: none;
}

h1,
h2 {
  font-family: ui-serif, Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  font-size: 2.75rem;
  margin: 3rem 0 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

p,
ul {
  margin: 0.75rem 0;
}

ul {
  padding-left: 1.25rem;
}

a {
  color: inherit;
}

/* The company's details, which UK law asks a company's website to show. */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9375rem;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  cursor: pointer;
}

summary span {
  color: var(--muted);
  font-size: 0.9375rem;
  white-space: nowrap;
}

pre {
  margin: 0 0 1rem;
  overflow-x: auto;
  color: var(--muted);
  font: 0.8125rem/1.55 ui-monospace, 'SF Mono', Menlo, monospace;
  white-space: pre-wrap;
}
