/* Look of the legal pages on newwork.eu: Funnel Display headings, Roboto Flex text, NEWWORK colours. */
@font-face { font-family: "Funnel Display"; src: url("fonts/FunnelDisplay-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Funnel Display"; src: url("fonts/FunnelDisplay-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto Flex"; src: url("fonts/RobotoFlex-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto Flex"; src: url("fonts/RobotoFlex-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root { --ink: #030712; --ink-600: #374151; --line: rgba(3, 7, 18, .12); --blue: #003c8e; --fog: #f7f9fb; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink-600); font: 400 16px/1.72 "Roboto Flex", system-ui, sans-serif; }
.shell { width: min(100% - 32px, 880px); margin-inline: auto; }

/* Only the chosen language shows once lang.js has run; without it both follow each other. */
html[data-lang="en"] [data-only="de"], html[data-lang="de"] [data-only="en"] { display: none; }
html:not([data-lang]) .legal + .legal { margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--line); }

.site-header { position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--line); background: rgba(247, 249, 251, .94); }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { display: block; width: auto; height: 26px; }
.language { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.language a { padding: 3px 11px; border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.6; text-decoration: none; }
.language a[aria-current="true"] { background: var(--ink); color: #fff; }
.language a:focus-visible, .legal a:focus-visible, .site-footer a:focus-visible, .brand:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

main.shell { padding-block: clamp(48px, 8vw, 112px); }
.legal h1 { margin: 0 0 18px; overflow-wrap: anywhere; color: var(--ink); font: 400 clamp(40px, 7vw, 88px)/.95 "Funnel Display", sans-serif; letter-spacing: -.05em; }
.legal h1 + p { margin-bottom: clamp(40px, 6vw, 64px); font-size: 14px; }
.legal h2, .legal h3 { color: var(--ink); font-family: "Funnel Display", sans-serif; font-weight: 500; letter-spacing: -.025em; }
.legal h2 { margin: 64px 0 20px; font-size: 34px; line-height: 1.08; }
.legal h3 { margin: 48px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 26px; line-height: 1.15; }
.legal h4 { margin: 32px 0 12px; color: var(--ink); font-size: 18px; }
.legal p { margin: 0 0 22px; }
.legal ul, .legal ol { display: grid; gap: 10px; margin: 0 0 24px; padding-left: 24px; }
.legal ol { list-style: decimal; }
.legal ul { list-style: disc; }
.legal li { padding-left: 6px; }
.legal a, .site-footer a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal strong, .legal b { color: var(--ink); font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); background: var(--fog); padding-block: 28px; font-size: 14px; }
.site-footer p { margin: 0 0 6px; }

@media (max-width: 620px) {
  .legal h2 { margin-top: 48px; font-size: 28px; }
  .legal h3 { margin-top: 38px; font-size: 22px; }
}
