/* fleetd.sh's legal pages (terms.html, privacy.html, refunds.html, imprint.html) and support.html: pricing.html's type, colour, header
   and footer, then plain prose set like the docs, small headings and a tight rhythm, beside a list of the five pages. security.html
   and subprocessors.html share it, listed after the five, and so does the DPA's draft (dpa.html). */
@font-face{font-family:"Geist";src:url(/fonts/geist-sans.woff2) format("woff2");font-weight:100 900;font-display:swap}

:root{
  color-scheme:dark;
  --paper:#121212;
  --tone:#1c1c1c;
  --ink:#ededeb;
  --grey:#a2a3a5;
  --faint:#808285;
  --rule:#2c2c2e;
  --sans:"Geist",ui-sans-serif,-apple-system,"Segoe UI",sans-serif;
  --pad:clamp(20px,4.4vw,64px);
  --max:1280px;
  --snap:cubic-bezier(.2,0,0,1);
}
:root[data-theme="light"]{
  color-scheme:light;
  --paper:#f4f4f1;
  --tone:#e9e9e5;
  --ink:#17181a;
  --grey:#5b5d61;
  --faint:#6e7074;
  --rule:#d6d6d1;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 17px/1.55 var(--sans);font-kerning:normal;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.22em;text-decoration-color:var(--rule)}
a:hover{text-decoration-color:currentColor}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:2px}
p,h1,h2,table,blockquote{margin:0}
.w{max-width:var(--max);margin:0 auto;padding:0 var(--pad)}

/* header, as on home.html */
.top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:24px;padding-bottom:24px}
.mark{font-weight:600;font-size:19px;letter-spacing:-.035em;text-decoration:none}
.nav{display:flex;align-items:center;gap:22px;font-size:14px;color:var(--grey)}
.nav a{text-decoration:none}
.nav a:hover{color:var(--ink)}
.nav .up{font-size:13px;font-weight:500;line-height:20px;color:var(--paper);background:var(--ink);border-radius:5px;padding:3px 10px}
.nav .up:hover{color:var(--paper);opacity:.88}

/* the five pages on the left, the page's text on the right */
.legal{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px clamp(32px,4.4vw,72px);padding-top:clamp(28px,4vw,56px);padding-bottom:clamp(32px,4vw,56px)}
.pages{display:flex;flex-direction:column;align-self:start;position:sticky;top:24px;font-size:14px;color:var(--grey)}
.pages a{padding:5px 0;text-decoration:none}
.pages a:hover,.pages a[aria-current]{color:var(--ink)}
.pages a[aria-current]{font-weight:500}
.pages .gap{margin-top:12px}

.doc{max-width:46em;font-size:15.5px;line-height:1.6}
.doc h1{font-weight:600;font-size:clamp(26px,2.2vw,30px);line-height:1.12;letter-spacing:-.03em}
.doc .when{margin-top:6px;font-size:14px;color:var(--grey)}
.doc h2{margin-top:34px;font-weight:600;font-size:18px;line-height:1.3;letter-spacing:-.01em;scroll-margin-top:20px}
.doc h1+p:not(.when),.doc .when+p{margin-top:22px}
.doc p,.doc ul,.doc ol,.doc table,.doc blockquote{margin-top:12px}
.doc h2+p,.doc h2+ul,.doc h2+ol,.doc h2+table{margin-top:10px}
.doc ul,.doc ol{padding-left:1.25em}
.doc li+li{margin-top:5px}
.doc li::marker{color:var(--faint)}
.doc b{font-weight:600}
.doc a{text-decoration-color:var(--faint)}
.doc a:hover{text-decoration-color:currentColor}
.doc table{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.5}
.doc th,.doc td{text-align:left;vertical-align:top;padding:9px 16px 9px 0;border-bottom:1px solid var(--rule)}
.doc thead th{font-weight:500;color:var(--grey);font-size:13px;padding-top:0;padding-bottom:7px}
.doc tbody th{font-weight:500;white-space:nowrap}
.doc .num{text-align:right;padding-right:0;white-space:nowrap}
.doc blockquote{padding:2px 0 2px 16px;border-left:2px solid var(--rule);color:var(--grey)}
.doc blockquote p+p{margin-top:8px}
.doc .facts{list-style:none;padding:0;border-top:1px solid var(--rule)}
.doc .facts li{display:grid;grid-template-columns:11em minmax(0,1fr);gap:16px;margin:0;padding:9px 0;border-bottom:1px solid var(--rule)}
.doc .facts li>span:first-child{color:var(--grey)}
/* A draft's note, and what in it is still to check. */
.doc .draft{padding:10px 14px;border:1px solid var(--rule);border-radius:6px;background:var(--tone);font-size:14.5px}
.doc mark.confirm{background:none;color:#e0a33a;font-weight:500}
[data-theme="light"] .doc mark.confirm{color:#9a5b00}
.doc table.stack{table-layout:fixed}
.doc table.stack tbody th{white-space:normal}
.doc table.stack thead th:nth-child(1){width:18%}
.doc table.stack thead th:nth-child(2){width:28%}
.doc table.stack thead th:nth-child(4){width:21%}

.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;padding-top:20px;padding-bottom:40px;margin-top:clamp(24px,3vw,40px);background:linear-gradient(var(--rule),var(--rule)) no-repeat center top/calc(100% - 2*var(--pad)) 1px;font-size:13px;color:var(--faint)}
.foot nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
.foot .fine{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
.foot a{text-decoration:none}
.foot a:hover,.foot a[aria-current]{color:var(--ink)}
/* Light or Dark, as on home.html: one small icon at the footer's end, the other theme's. */
.theme{display:grid;place-items:center;width:24px;height:24px;margin:-4px -4px -4px 0;padding:0;border:0;border-radius:6px;background:none;color:var(--faint);cursor:pointer}
.theme:hover{color:var(--ink);background:var(--tone)}
.theme svg{width:14px;height:14px}
.theme .i-moon,[data-theme="light"] .theme .i-sun{display:none}
[data-theme="light"] .theme .i-moon{display:block}

/* Narrower: the five pages become one row above the text. */
@media (max-width:800px){
  .legal{grid-template-columns:minmax(0,1fr)}
  .pages{position:static;flex-direction:row;flex-wrap:wrap;gap:0 18px;padding-bottom:14px;border-bottom:1px solid var(--rule)}
  .pages .gap{margin-top:0}
}
@media (max-width:640px){
  .nav{gap:14px}
  .nav .gh{display:none}
  .doc .facts li{grid-template-columns:minmax(0,1fr);gap:0}
  .doc tbody th,.doc thead .num{white-space:normal}
  .doc .num{padding-left:12px}
  .doc thead .num{line-height:1.3}
  .doc th,.doc td{padding-right:10px}
  /* A wide table (class stack) becomes one block per row, each cell under its column's name. */
  .doc table.stack thead{display:none}
  .doc table.stack tr{display:block;padding:10px 0;border-bottom:1px solid var(--rule)}
  .doc table.stack th,.doc table.stack td{display:block;padding:0;border:0}
  .doc table.stack tbody th{margin-bottom:4px}
  .doc table.stack td+td{margin-top:4px}
  .doc table.stack td::before{content:attr(data-label);display:block;font-size:12.5px;color:var(--grey)}
}
/* The narrowest phones: Docs stays in the footer. */
@media (max-width:400px){
  .nav .docs{display:none}
}
@media (prefers-reduced-motion:no-preference){
  .nav a,a,.theme{transition:color .14s var(--snap),text-decoration-color .14s var(--snap)}
}

/* Opened from the phone app (?app=1, legal.js): the policy alone, without the site's header and footer. */
.app .top,
.app .foot {
  display: none;
}
