/* The light reading layout of the generated legal pages. The root, the
   AstroSoma page and its delete-account page carry their own dark styles and
   borrow nothing from here. There is no build step for CSS and no framework —
   a few pages of text do not earn one. */

:root {
  --ink: #1c1b22;
  --ink-soft: #55535f;
  --line: #e3e1ea;
  --paper: #fbfaff;
  --accent: #5b4bd6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.bar a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

#lang-toggle {
  font: inherit;
  font-size: 0.875rem;
  padding: 0.35rem 0.8rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

#lang-toggle:hover {
  border-color: var(--accent);
}

main {
  max-width: 42rem;
  margin: 0 auto;
}

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

h2 {
  font-size: 1.125rem;
  margin: 2.25rem 0 0.5rem;
}

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

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent);
}

.meta {
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.contact {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

/* Both languages are in the page. Without JavaScript neither is hidden, so the
   reader still gets everything — the script below only picks one. */
[data-lang] {
  display: block;
}

[data-lang][hidden] {
  display: none;
}
