/* Styles for the legal pages (impressum.html, datenschutz.html). Colors match index.html and the app. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito.woff2") format("woff2-variations"), url("fonts/nunito.woff2") format("woff2");
}

:root {
  --bg: #F5F6FB;
  --card: #FFFFFF;
  --ink: #1E2140;
  --muted: #6A6F8E;
  --line: #E6E8F2;
  --primary: #5B5BD6;
  --primary-soft: #ECECFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .inner, main, footer .inner { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.top .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 19px; }
.brand img { width: 32px; height: 32px; }
.back { color: var(--muted); font-weight: 700; text-decoration: none; }
.back:hover { color: var(--ink); }

main { padding-top: 40px; padding-bottom: 56px; }
.card { background: var(--card); border-radius: 24px; padding: 36px 32px; box-shadow: 0 1px 2px rgba(30, 33, 64, .04), 0 8px 24px rgba(30, 33, 64, .07); }
h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 900; line-height: 1.15; margin: 0 0 8px; }
h2 { font-size: 21px; font-weight: 900; line-height: 1.25; margin: 36px 0 10px; }
h3 { font-size: 17px; font-weight: 900; margin: 22px 0 6px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--primary); font-weight: 700; }
.lead { color: var(--muted); }
.stand { color: var(--muted); font-size: 15px; margin-top: 32px; }
address { font-style: normal; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-weight: 800; }
td code { font-size: 14px; background: var(--primary-soft); padding: 1px 6px; border-radius: 6px; word-break: break-all; }

footer { padding: 0 0 40px; color: var(--muted); font-size: 15px; }
footer .inner { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 560px) {
  main { padding-top: 24px; }
  .card { padding: 26px 20px; border-radius: 20px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  td { border: 0; padding: 2px 0; }
}
