/* Standalone stylesheet for the legal pages. These live outside the SPA — they are
   plain HTML in public/, copied verbatim into dist/ — so they cannot reference the
   app's hashed font assets. A system stack is used instead: it keeps these pages at
   ZERO third-party requests, which is the exact claim the cookie policy makes. Do not
   swap in a webfont link here without also rewriting that policy. */

:root {
  --bg: #faf7f0;
  --surface: #f1ece1;
  --ink: #292b27;
  --muted: #5f6459;
  --accent: #69745a;
  --line: #e3ddcd;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

/* Header bar — mirrors the sibling Bike n Herz legal pages: brand left, way back right. */
.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.legal-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* Mark + text, matching the main site's header. The full lockup was unreadable at
   header height — its wordmark and town line are only legible at ~150px wide. */
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.legal-brand img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 9px;
}
.legal-brand span {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
}
.legal-brand small {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 32px) 80px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.back:hover {
  color: var(--accent);
}

/* At 320px the mark, the brand name, the gap and the nowrap back link need ~289px of a
   280px row, and the page scrolled sideways. The mark is decoration; it goes first. */
@media (max-width: 400px) {
  .legal-brand img {
    display: none;
  }
  .back {
    letter-spacing: 0.02em;
  }
}

/* Document tabs. Every legal page carries the full set so you can move between them
   without going back to the site; the current one is marked with aria-current="page"
   and styled off that attribute, so the markup cannot say one thing and the styling
   another. */
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.legal-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.legal-tabs a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.legal-tabs a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #f8f5ef;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  margin: 0 0 6px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
}

/* A rule above every section, as on the sibling site — long legal text needs the
   visual breaks. :first-of-type has no rule because the notice already sits above it. */
h2 {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 23px);
  margin: 42px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 30px;
}

h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}

p,
li {
  color: #3c403a;
}

a {
  color: var(--accent);
}

ul {
  padding-left: 20px;
}

li + li {
  margin-top: 6px;
}

/* Wide tables must scroll inside their own box, never push the page sideways. */
.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 14.5px;
}

th,
td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--surface);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

.notice {
  background: #fdf3e3;
  border: 1px solid #e8d3a8;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 30px;
  font-size: 14.5px;
}
.notice strong {
  display: block;
  margin-bottom: 4px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 18px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
  font-size: 14px;
}
