/* Legal texts on rypox.com (Impressum, Datenschutz, app privacy policies,
   TopCalendar terms), version 2: theme v4 "Messraster" for running text.

   Own file instead of styles.v5.css: long text needs a limited line length,
   not the card and grid layout of the landing pages. Tokens, fonts and the
   light/dark logic are copied from styles.v5.css; keep them in sync.

   Light and dark follow the system unless the visitor picked one with the
   toggle (assets/theme.v1.js sets <html data-theme>; it puts the button into
   the .legalBar, which carries the "nav" class for that reason).

   CSP: style-src 'self' without 'unsafe-inline', so no <style> blocks.
   Cache: *.css is immutable for 30 days; changes go into legal.v3.css. */

@font-face{ font-family:"Chakra Petch"; font-style:normal; font-weight:600; font-display:swap;
  src:url("/assets/fonts/chakra-petch-600-latin-v1.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"Chakra Petch"; font-style:normal; font-weight:600; font-display:swap;
  src:url("/assets/fonts/chakra-petch-600-latin-ext-v1.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family:"Chakra Petch"; font-style:normal; font-weight:700; font-display:swap;
  src:url("/assets/fonts/chakra-petch-700-latin-v1.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"Chakra Petch"; font-style:normal; font-weight:700; font-display:swap;
  src:url("/assets/fonts/chakra-petch-700-latin-ext-v1.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family:"IBM Plex Sans"; font-style:normal; font-weight:400 600; font-display:swap;
  src:url("/assets/fonts/ibm-plex-sans-var-latin-v1.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"IBM Plex Sans"; font-style:normal; font-weight:400 600; font-display:swap;
  src:url("/assets/fonts/ibm-plex-sans-var-latin-ext-v1.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap;
  src:url("/assets/fonts/ibm-plex-mono-400-latin-v1.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap;
  src:url("/assets/fonts/ibm-plex-mono-400-latin-ext-v1.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap;
  src:url("/assets/fonts/ibm-plex-mono-500-latin-v1.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"IBM Plex Mono"; font-style:normal; font-weight:500; font-display:swap;
  src:url("/assets/fonts/ibm-plex-mono-500-latin-ext-v1.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root{
  color-scheme: light dark;
  --bg: #f1f3f8;
  --surface: #ffffff;
  --surface2: #e8ebf4;
  --text: #0f1631;
  --muted: #4d5774;
  --border: #c8cee0;
  --border-strong: #8a93b0;
  --grid: rgba(67,56,202,0.05);
  --grid2: rgba(67,56,202,0.10);
  --accent: #4338ca;
  --accent-ink: #ffffff;
  --accent-soft: rgba(67,56,202,0.10);
  --signal: #c2410c;
  --f-display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg: #080c19;
    --surface: #0e1326;
    --surface2: #171d36;
    --text: #e3e7f7;
    --muted: #9aa3c0;
    --border: #28314e;
    --border-strong: #4a5480;
    --grid: rgba(129,140,248,0.045);
    --grid2: rgba(129,140,248,0.10);
    --accent: #818cf8;
    --accent-ink: #080c19;
    --accent-soft: rgba(129,140,248,0.14);
    --signal: #ff8a4c;
  }
}
:root[data-theme="dark"]{
  --bg: #080c19;
  --surface: #0e1326;
  --surface2: #171d36;
  --text: #e3e7f7;
  --muted: #9aa3c0;
  --border: #28314e;
  --border-strong: #4a5480;
  --grid: rgba(129,140,248,0.045);
  --grid2: rgba(129,140,248,0.10);
  --accent: #818cf8;
  --accent-ink: #080c19;
  --accent-soft: rgba(129,140,248,0.14);
  --signal: #ff8a4c;
  color-scheme: dark;
}
:root[data-theme="light"]{ color-scheme: light; }

*{ box-sizing: border-box; }

/* Grid across the full viewport, text column centred on top */
html{
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid2) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 8px 8px, 8px 8px;
  background-attachment: fixed;
}
body{
  margin: 0 auto;
  max-width: 46rem;
  padding: 1.25rem max(16px, 1.2rem) 4rem;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  overflow-wrap: anywhere;
}
html, body{ min-height: 100%; }

a{ color: var(--accent); text-underline-offset: 2px; }
a:hover{ text-decoration: none; }
a:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* Top bar: back link (where there is one) and the theme toggle */
.legalBar{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 20px;
  min-height: 24px;
  margin: 0 0 2rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--muted);
}
.legalBar:empty{ display: none; }
.legalBar .back{ margin-right: auto; }
.legalBar a{ padding-bottom: 3px; color: var(--muted); text-decoration: none; }
.legalBar a:hover{ color: var(--text); box-shadow: 0 2px 0 var(--accent); }

.themeToggle{
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0; padding: 0 0 3px; border: 0; background: none;
  color: inherit; font: inherit; white-space: nowrap; cursor: pointer;
}
.themeToggle:hover{ color: var(--text); box-shadow: 0 2px 0 var(--accent); }
.themeToggle:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.themeToggle svg{ width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.themeToggle svg .fill{ fill: currentColor; stroke: none; }

h1, h2, h3{ font-family: var(--f-display); line-height: 1.25; text-wrap: balance; }
h1{ font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; margin: 0 0 .5rem; }
h2{ font-size: 1.2rem; font-weight: 600; margin: 2.4rem 0 .6rem; }
h3{ font-size: 1.02rem; font-weight: 600; margin: 1.8rem 0 .4rem; }

p, ul, ol{ margin: 0 0 1rem; }
ul, ol{ padding-left: 1.3rem; }
li{ margin-bottom: .3rem; }
strong{ font-weight: 600; }

code{
  font-family: var(--f-mono);
  font-size: .88em;
  background: var(--surface2);
  padding: .1em .35em;
  border-radius: 4px;
}

.updated, .langswitch, .muted{
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--muted);
}
.updated{ margin-bottom: .3rem; }
.langswitch{ margin-bottom: 2rem; }
.address{ line-height: 1.55; }

hr{
  border: 0;
  border-top: 1px solid var(--border-strong);
  margin: 4rem 0 2.5rem;
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
