/* Shared additions: language switch, legal pages, price box, withdrawal button.
   The product page keeps its own inline styles; this file only adds to them. */

/* Fonts, self-hosted (SIL OFL): DM Mono for running text, Archivo Black for everything in caps. */
@font-face { font-family: "DM Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/dm-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/dm-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo Black"; font-weight: 100 900; font-style: normal; font-display: swap; src: url(/fonts/archivo-black-latin-400-normal.woff2) format("woff2"); }

:root {
  --bb-todo: #fff200;
  --caps: "Archivo Black", "Arial Black", Impact, sans-serif;
  --text: "DM Mono", ui-monospace, "Courier New", monospace;
}
html { font-synthesis: none; }
h1, h2, h3, .scrub, .btn, .bar-btn, .stats b, .spec .v, .step .n, .who .big, .g-text .big, .shot .meta .big, .plate b, .meter b, .phases p strong { font-family: var(--caps); }
.spec .v small, .who li, .step p { font-family: var(--text); }
.who li { font-weight: 500; }

/* language switching: both languages live in the HTML, one is hidden */
html[data-lang="de"] .en,
html[data-lang="en"] .de { display: none !important; }

.topbar { flex-wrap: wrap; gap: 0.5rem 1rem; }

.lang-btn {
  font-family: var(--caps);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  padding: 0.35rem 0.8rem;
  min-height: 44px;
  cursor: pointer;
}
.lang-btn:hover, .lang-btn:focus-visible { background: #000; color: #fff; }

/* footer legal links + withdrawal button (all pages) */
.legal-links {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  border-top: 2px solid #000;
  padding-top: 1rem;
  margin-top: 0.5rem;
}
.legal-links a { color: #000; text-decoration: underline; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.legal-links a:focus-visible, .lang-btn:focus-visible { outline: 4px solid #ff0000; outline-offset: 3px; }
.legal-links a:hover { background: #000; color: #fff; }
.withdraw-btn {
  display: inline-block;
  background: #d00000;
  color: #fff !important;
  text-decoration: none !important;
  border: 3px solid #000;
  padding: 0.5rem 1rem;
  font-family: var(--caps);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.withdraw-btn { min-height: 44px; }
.withdraw-btn:hover, .withdraw-btn:focus-visible { background: #000; color: #fff !important; }

/* price box on the product page */
.pricebox { margin-top: 2rem; border: 4px solid #000; max-width: 560px; }
.pricebox .pb-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 2px solid #000;
  font-family: var(--caps);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pricebox .pb-total { font-weight: 900; font-size: 1.15rem; border-bottom: none; background: #000; color: #fff; }
.pricebox .pb-note {
  padding: 0.7rem 1rem;
  border-top: 2px solid #000;
  font-family: var(--text);
  font-size: 0.875rem;
  color: #666;
  line-height: 1.4;
}
/* brand mark: Bowl black, Buddy red, big dot black with a hard red shadow.
   Small text uses the darker red (Small Red Rule); display sizes use pure alarm red. */
span.bb .bb-b { color: #000; }
span.bb .bb-y { color: #d00000; }
.cta h2 span.bb .bb-y, .hero span.bb .bb-y { color: #ff0000; }
.cta h2 .red .bb-dot { color: #000; }
.bb-dot { color: #000; text-shadow: 0.06em 0.06em 0 #ff0000; }

/* ---------- legal pages ---------- */
:where(body.legal, body.legal *) { margin: 0; padding: 0; }
body.legal { background: #fff; color: #000; font-family: var(--text); line-height: 1.05; -webkit-font-smoothing: antialiased; }
body.legal * { box-sizing: border-box; }
body.legal .topbar {
  border-bottom: 4px solid #000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--caps);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
body.legal .topbar .brand { font-weight: 700; color: #000; text-decoration: none; }
body.legal .topbar .tag { color: #666; }
body.legal main { max-width: 900px; margin: 0 auto; padding: 4rem 2rem 6rem; }
body.legal .label {
  font-family: var(--caps);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
body.legal .label::before { content: ""; width: 40px; height: 2px; background: #000; }
body.legal h1 {
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-transform: uppercase;
  word-break: break-word;
}
body.legal h1 .red { color: #ff0000; }
body.legal .lead { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 500; line-height: 1.2; max-width: 640px; }
body.legal h2 {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 4px solid #000;
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
body.legal h3 { margin-top: 1.5rem; font-size: 1rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; }
body.legal p, body.legal li { margin-top: 0.8rem; font-size: 1rem; line-height: 1.4; max-width: 720px; }
body.legal ul { margin-left: 1.2rem; }
body.legal a { color: #000; font-weight: 700; }
body.legal .box { margin-top: 1.5rem; border: 4px solid #000; padding: 1.25rem; }
body.legal .box p:first-child { margin-top: 0; }
body.legal .mono { font-family: var(--caps); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #666; }
body.legal .draft {
  margin-bottom: 2rem;
  border: 4px solid #000;
  background: var(--bb-todo);
  padding: 1rem 1.25rem;
  font-family: var(--caps);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.todo { background: var(--bb-todo); border: 2px solid #000; padding: 0 0.3em; font-family: var(--text); font-weight: 500; }
body.legal .btn, body.legal button.btn {
  display: inline-block;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 1.1rem 1.8rem;
  font-family: inherit;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 4px solid #000;
  font-size: 1rem;
  line-height: 1.05;
  cursor: pointer;
}
body.legal .btn:hover { background: #fff; color: #000; }
body.legal .btn.alt { background: #fff; color: #000; }
body.legal .btn.alt:hover { background: #000; color: #fff; }
body.legal .btn:disabled { opacity: 0.45; cursor: wait; }
body.legal .row { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
body.legal .form-line { margin-top: 1.25rem; border-bottom: 2px solid #000; padding-bottom: 0.4rem; min-height: 2rem; }
body.legal footer {
  border-top: 4px solid #000;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--caps);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}
body.legal footer .left { color: #000; font-weight: 700; }

/* withdrawal form */
body.legal form label { display: block; margin-top: 1.25rem; font-family: var(--caps); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
body.legal form input[type="text"], body.legal form input[type="email"], body.legal form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.9rem;
  border: 4px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 1rem;
}
body.legal form textarea { min-height: 6rem; resize: vertical; }
body.legal .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.legal .error { margin-top: 1rem; border: 4px solid #ff0000; padding: 1rem; color: #ff0000; font-weight: 700; }
body.legal .summary dt { margin-top: 1rem; font-family: var(--caps); font-size: 0.75rem; text-transform: uppercase; color: #666; }
body.legal .summary dd { margin-top: 0.2rem; font-weight: 700; word-break: break-word; }
[hidden] { display: none !important; }

@media (max-width: 768px) {
  body.legal main { padding: 2.5rem 1.25rem 4rem; }
  body.legal .topbar { padding: 1rem 1.25rem; }
  body.legal footer { padding: 1.5rem 1.25rem; }
}

/* the legal pages are meant to be saved: print / "save as PDF" gets a clean page */
@media print {
  .topbar, .no-print, .legal-links, .withdraw-btn, footer .legal-links { display: none !important; }
  body.legal main { padding: 0; max-width: none; }
  body.legal h1 { font-size: 2rem; }
  body.legal .draft { background: none; }
  .todo { background: none; }
  a { text-decoration: none; }
}
