/* Legal pages (privacy, terms, imprint).
   Same tokens as app.css so the pages read as part of the product rather than a
   bolted-on PDF. Self-hosted like everything else: no webfont, no CDN, no
   analytics -- which is precisely what lets these pages say "no consent banner". */

@import url("app.css");

body.legal {
  display: block;
  height: auto;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

.legal-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.legal-bar a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.legal-bar a.back:hover { text-decoration: underline; }
.legal-bar .sep { color: var(--text-faint); }
.legal-bar nav { display: flex; gap: 14px; font-size: 14px; }
.legal-bar nav a { color: var(--text-muted); text-decoration: none; }
.legal-bar nav a:hover { color: var(--text); text-decoration: underline; }
.legal-bar nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

main.legal-doc {
  max-width: 68ch;
  margin: 0 auto;
  padding: 44px 20px 96px;
}

main.legal-doc h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 6px;
  text-wrap: balance;
}

.legal-sub {
  color: var(--text-muted);
  margin: 0 0 8px;
}

.legal-meta {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0 0 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

main.legal-doc h2 {
  font-size: 19px;
  margin: 40px 0 10px;
  padding-top: 4px;
  text-wrap: balance;
}

main.legal-doc h3 {
  font-size: 15px;
  margin: 24px 0 6px;
  color: var(--text);
}

main.legal-doc p, main.legal-doc li { color: var(--text); }
main.legal-doc ul, main.legal-doc ol { padding-left: 22px; }
main.legal-doc li { margin: 5px 0; }
main.legal-doc a { color: var(--accent-text); }

dl.pairs { margin: 0; }
dl.pairs dt { font-weight: 600; margin-top: 14px; }
dl.pairs dd { margin: 2px 0 0; color: var(--text-muted); }

/* Tables carry the processor list and the retention schedule, which are the two
   things a customer's data-protection reviewer looks for first. */
.table-scroll { overflow-x: auto; margin: 14px 0; }

table.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 460px;
}

table.legal-table th, table.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}

table.legal-table th {
  background: var(--surface-2);
  font-weight: 600;
  white-space: nowrap;
}

table.legal-table tr:last-child td { border-bottom: none; }

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 20px 0;
}

.callout.warn { border-left-color: var(--danger); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Unfilled company details. Loud on purpose: scripts/check_legal_pages.py fails
   the deploy on these, and if one ever slips through it must be obvious on the
   rendered page rather than reading as finished text. */
.fill {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px dashed var(--danger);
  border-radius: 4px;
  padding: 0 5px;
  font-family: var(--mono);
  font-size: 0.86em;
  font-weight: 600;
}

footer.legal-foot {
  max-width: 68ch;
  margin: 0 auto;
  padding: 24px 20px 60px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
}

/* Landing page (/). The only page a signed-out visitor can reach, which is what
   makes the Impressum "unmittelbar erreichbar" under § 5 DDG and puts the Art. 13
   notice in front of anyone before they sign in. Same tokens as the app so the
   first thing a visitor sees is recognisably the same product. */

main.landing {
  max-width: 56ch;
  margin: 0 auto;
  padding: 72px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-logo img {
  display: block;
  width: 216px;
  height: auto;
}

.landing-lede {
  margin: 26px 0 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: balance;
}

.landing-cta {
  display: inline-block;
  margin: 30px 0 0;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.landing-cta:hover { background: var(--accent-text); }
.landing-cta:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.landing-note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-faint);
  max-width: 46ch;
}

/* Left-aligned inside a centred column: these are read, not scanned. */
.landing-points {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.landing-points li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-points strong { color: var(--text); }

footer.landing-footer {
  margin: 44px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  width: 100%;
  color: var(--text-faint);
  font-size: 13px;
}

footer.landing-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

footer.landing-footer nav a {
  color: var(--text-muted);
  text-decoration: none;
}

footer.landing-footer nav a:hover { color: var(--text); text-decoration: underline; }
footer.landing-footer p { margin: 0; }

@media (max-width: 520px) {
  main.landing { padding-top: 48px; }
  .landing-logo img { width: 172px; }
  .landing-lede { font-size: 17px; }
}

/* Processor addresses under the entity name. Small and quiet: the name and the
   role are what a reader is scanning for, the address is what a customer's
   reviewer copies into their own register. */
.legal-table .addr {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-faint);
}
