/* /privacy and /imprint (DE root, EN under /en/). The controller apps show
   these pages in a web view under their own title bar and hide the page's
   title (`.legal-shell > h1`, injected CSS), so the pages carry no site header
   or footer: everything here must read well on its own, in-app and on the web.
   Same type and colours as the rest of the site (theme.css). */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--on-surface-variant);
  font-family: var(--font-sans);
  font-size: clamp(16px, 2vw, 17px);
  line-height: 1.7;
  min-height: 100vh; /* fallback for browsers without dvh (Safari < 15.4) */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

.legal-shell {
  width: 100%;
  max-width: 800px;
  /* Only a small baseline top padding here; the rest of the gap above the
     title lives on the h1, so that when the apps hide the h1 most of the gap
     collapses but the content keeps a little breathing room from the top. */
  padding: clamp(1.5rem, 3vh, 2rem) clamp(16px, 4vw, 40px) clamp(2rem, 4vh, 3rem);
}

h1 {
  color: var(--on-surface);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  overflow-wrap: break-word;
  padding-top: clamp(1rem, 4vh, 2.5rem);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.intro { margin-bottom: clamp(1.5rem, 3vh, 2rem); }

/* Plain-language summary above the formal notice, and the objection notice
   below it: soft panels like the site's cards. */
.summary, .objection {
  padding: 22px 26px;
  background: var(--surface-low);
  border: 1px solid var(--outline-variant);
  border-radius: 18px;
}
.summary { margin-bottom: clamp(1.5rem, 3vh, 2rem); }
.summary strong { color: var(--on-surface); font-weight: 600; }
.objection { margin-top: 2.5rem; }
.objection h2 {
  color: var(--on-surface);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

dt {
  color: var(--on-surface);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 1.8rem;
}
dt:first-child { margin-top: 0; }
dd { margin-top: 0.3rem; }

a {
  color: var(--on-surface);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--outline);
}
a:hover, a:focus-visible { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--outline); outline-offset: 2px; border-radius: 2px; }

::selection { background: var(--surface-highest); color: var(--on-surface); }

/* Language switch (DE / EN) at the end of the page. */
.footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--outline-variant);
  font-size: 15px;
}
.lang-switch { font-weight: 500; }
