/* Spydar: the legal pages. Generated by tools/legal/build.mjs; change it there. */
:root {
  --desk: #11172A;
  --shadow: #05070F;
  --on-desk: #F1EDE4;
  --muted-on-desk: #A4ACC8;
  --sheet: #F4EAD5;
  --navy: #1E2A4F;
  --muted-on-sheet: #4A5373;
  --red: #A94832;
  --yellow: #F2C230;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; padding: 0 0.75rem; background: var(--desk); color: var(--on-desk); font: 1.0625rem/1.6 var(--sans); }
.top, .pages, .sheet, .foot { max-width: 46rem; margin-left: auto; margin-right: auto; }

/* On the desk: the name, the language switch, the four pages. */
.skip { position: absolute; left: -999rem; top: 0; background: var(--on-desk); color: var(--navy); padding: 0.75rem 1rem; }
.skip:focus { left: 0.75rem; top: 0.75rem; z-index: 1; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.75rem; }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--on-desk); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
.label, .lang a, .pages a, .foot { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; }
.lang { display: flex; gap: 0.25rem; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; border: 2px solid transparent; color: var(--muted-on-desk); text-decoration: none; }
.lang a[aria-current] { border-color: var(--muted-on-desk); color: var(--on-desk); }
.pages { display: flex; flex-wrap: wrap; column-gap: 1.25rem; margin-top: 0; margin-bottom: 0; padding: 0 0 0.5rem; }
.pages a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted-on-desk); text-decoration: none; }
.pages a:hover, .lang a:hover, .brand:hover { color: var(--on-desk); text-decoration: underline; text-underline-offset: 0.3em; }
.pages a[aria-current] { color: var(--on-desk); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.foot { padding-bottom: 3rem; color: var(--muted-on-desk); }
.foot p { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* The sheet. */
.sheet { margin-top: 0.25rem; margin-bottom: 2.25rem; padding: 2rem 2.75rem 2.5rem; background: var(--sheet); color: var(--navy); border: 2px solid var(--navy); box-shadow: 0.5rem 0.5rem 0 var(--shadow); color-scheme: light; overflow-wrap: break-word; }
.sheet a:focus-visible, .sheet button:focus-visible, .sheet input:focus-visible, .sheet summary:focus-visible { outline-color: var(--red); }
.sheet .label { margin: 0; color: var(--muted-on-sheet); }
h1 { margin: 0.35rem 0 1.1rem; font-size: 2.4rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; }
h2 { margin: 2.25rem 0 0.6rem; padding-top: 1.1rem; border-top: 2px dashed var(--navy); font-size: 1.3rem; line-height: 1.25; font-weight: 800; }
/* Only a long German title may break, and only with a hyphen. */
h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 4; hyphenate-limit-chars: 14 6 4; }
h3 { margin: 1.5rem 0 0.3rem; font-size: 1.0625rem; line-height: 1.3; font-weight: 800; }
p, ul { margin: 0 0 0.9rem; }
ul { padding-left: 1.25rem; }
li { margin: 0.4rem 0; }
strong { font-weight: 700; }
.sheet a { color: inherit; text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.16em; }
.sheet a:hover { color: var(--red); }
.note { padding: 0.35rem 0 0.35rem 0.8rem; border-left: 0.25rem solid var(--red); font-family: var(--mono); font-size: 0.875rem; line-height: 1.5; }
.note + .note { margin-top: -0.3rem; }
mark.todo { padding: 0.05em 0.3em; background: var(--yellow); color: var(--navy); font-family: var(--mono); font-size: 0.9em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.contents { margin: 1.25rem 0 0; padding: 0 1rem; border: 2px dashed var(--navy); }
.contents summary { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; cursor: pointer; list-style: none; }
.contents summary::-webkit-details-marker { display: none; }
.contents summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.contents[open] summary::after { content: "\2212"; }
.contents + h2 { margin-top: 1.75rem; padding-top: 0; border-top: 0; }
.contents ul { margin: 0 0 0.75rem; padding: 0; list-style: none; }
.contents li { margin: 0; }
.contents a { display: block; padding: 0.45rem 0; line-height: 1.35; }

/* The deletion form. */
.form { margin: 1.25rem 0; padding: 1rem 1rem 1.15rem; border: 2px solid var(--navy); }
.form label { display: block; margin: 1rem 0 0.3rem; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; }
.form input[type="text"] { display: block; width: 100%; max-width: 18rem; min-height: 2.75rem; margin: 0; padding: 0.4rem 0.6rem; border: 2px solid var(--navy); border-radius: 0; background: transparent; color: var(--navy); font: 1.125rem/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; -webkit-appearance: none; appearance: none; }
.form .hint { margin: 0.3rem 0 0; color: var(--muted-on-sheet); font-size: 0.875rem; }
.form label.check { display: flex; align-items: flex-start; gap: 0.65rem; min-height: 2.75rem; margin: 1.15rem 0; font: inherit; letter-spacing: 0; text-transform: none; cursor: pointer; }
.form .check input { flex: none; width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; accent-color: var(--navy); }
.form button { min-height: 2.75rem; padding: 0.65rem 1.1rem; border: 2px solid var(--navy); border-radius: 0; background: var(--on-desk); color: var(--navy); box-shadow: 0.25rem 0.25rem 0 var(--red); font: 700 1.0625rem/1.2 var(--sans); cursor: pointer; }
.form button:active { transform: translate(0.125rem, 0.125rem); box-shadow: 0.125rem 0.125rem 0 var(--red); }
.form button:disabled { opacity: 0.55; cursor: default; }
.result { margin: 1.1rem 0 0; padding-left: 0.7rem; border-left: 0.25rem solid var(--navy); font-weight: 700; }
.result:empty { display: none; }
.result[data-state="fail"] { border-left-color: var(--red); }

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .sheet { padding: 1.4rem 1.1rem 1.75rem; box-shadow: 0.35rem 0.35rem 0 var(--shadow); }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }
}
@media print {
  html { color-scheme: light; }
  body { padding: 0; background: #fff; }
  .skip, .top, .pages, .foot, .contents, .form { display: none; }
  .sheet { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff; color: #000; }
  h2 { border-top-color: #000; }
}
