/* The legal pages: Terms, Privacy Policy and deleting an account (M1 plan 6, Task 4).
   Colors from docs/design-system.md §2.1, as join.html uses them. Links and the focus ring use accentText.
   System fonts only, sizes in rem and widths in ch, so the text reflows at 200% zoom with no sideways scrolling. */
:root {
  color-scheme: light dark;
  --background: #F5F4F1;
  --surface: #FFFFFF;
  --divider: #E4E2DD;
  --text: #1C1B19;
  --text-secondary: #5F5C56;
  --accent: #F2A516;
  --accent-text: #8F5300;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #121110;
    --surface: #1C1B19;
    --divider: #34322E;
    --text: #F2F0EC;
    --text-secondary: #B3AFA8;
    --accent: #F5B041;
    --accent-text: #F5B041;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100rem;
  padding: 0.5em 0.75em;
  background: var(--surface);
  color: var(--text);
  border-radius: 0.5rem;
}

.skip:focus {
  top: 1rem;
}

.site {
  max-width: 70ch;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
}

.brand {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

main {
  max-width: 70ch;
  margin: 1.5rem auto 2rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border-radius: 1rem;
}

@media (max-width: 40em) {
  main {
    margin: 1rem 0 1.5rem;
    border-radius: 0;
  }
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2rem 0 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.25rem;
}

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

li {
  margin-bottom: 0.375rem;
}

.version {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
}

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

a:hover {
  text-decoration-thickness: 0.125em;
}

a:focus-visible {
  outline: 0.1875rem solid var(--accent-text);
  outline-offset: 0.125rem;
  border-radius: 0.125rem;
}

footer {
  max-width: 70ch;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
}

footer p {
  margin-top: 1rem;
}
