/* Shared styles for the static legal + support pages.
   Self-contained: no web fonts, no external requests, no cookies. */

:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #ededed;
  --muted: #a1a1a1;
  --rule: #2a2a2a;
  --panel: #101010;
  --link: #fff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.masthead {
  display: block;
  padding: 1.5rem 0 2.5rem;
}

.masthead img {
  display: block;
  width: 9rem;
  max-width: 55vw;
  height: auto;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1.1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  color: #fff;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.lede {
  color: var(--muted);
}

/* Emphasised block: account deletion, the medical disclaimer, contact details. */
.callout {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.25rem;
}

.callout :last-child {
  margin-bottom: 0;
}

.path {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

/* Tables scroll horizontally rather than forcing the page to. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

th {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.pagefoot {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

.pagefoot a {
  color: var(--muted);
}

.pagefoot nav a {
  margin-right: 1rem;
  white-space: nowrap;
}

@media (max-width: 30rem) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .wrap {
    padding: 1.25rem 1.1rem 3rem;
  }
}
