/* legal.html's look, shared by legal.html, legal.pl.html and legal.es.html (moved out of legal.html
   2 Oct 2026 so the three languages never drift apart). Same tokens as the app. */
/* Dark (2 Oct 2026), same ground as the app and the same switch (Account > Appearance). */
:root[data-theme="dark"] { --bg: #171310; --bg2: #221d18; --border: #3a322a; --border2: #4b4237; --text: #eee7db; --muted: #b4a896; --faint: #877c6d; --accent: #db7040; --green: #86b46f; --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #171310; --bg2: #221d18; --border: #3a322a; --border2: #4b4237; --text: #eee7db; --muted: #b4a896; --faint: #877c6d; --accent: #db7040; --green: #86b46f; --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark; } }
/* BenchBear's own tokens (css/style.css). */
:root {
  --bg:      #f4efe6;
  --bg2:     #fdfaf4;
  --border:  #e2d9c9;
  --border2: #d2c6b1;
  --text:    #231f1a;
  --muted:   #6a6053;
  --faint:   #8d8272;
  --accent:  #b45527;
  --shadow:  0 1px 2px rgba(35, 31, 26, .05);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 36rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
.eyebrow {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin: 0;
}
h1 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(2.75rem, 14vw, 4rem);
  line-height: .95; letter-spacing: .02em; color: var(--accent);
  margin: .35rem 0 0;
}
.masthead { border-bottom: 2px solid var(--accent); padding-bottom: 1.25rem; }
.lede { margin: .9rem 0 0; font-size: 1.0625rem; text-wrap: pretty; }
nav.jump { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.25rem 0 0; }
nav.jump a { font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .06em; }

.summary {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 1rem 1.1rem; margin: 1.75rem 0 0;
}
.summary p { margin: 0 0 .5rem; font-weight: 700; }
.summary ul { margin: 0; padding-left: 1.1rem; }
.summary li { margin-bottom: .35rem; }

h2 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 2rem; letter-spacing: .03em; line-height: 1; color: var(--accent);
  margin: 3rem 0 .25rem; scroll-margin-top: 1rem;
}
h3 { font-size: 1.0625rem; margin: 1.75rem 0 .4rem; text-wrap: balance; }
p { margin: 0 0 .8rem; text-wrap: pretty; }
ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }
.muted { color: var(--muted); }

.table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 0 0 .8rem; background: var(--bg2); }
.row { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .7rem .85rem; border-top: 1px solid var(--border); }
.row:first-child { border-top: none; }
.row .k { font-weight: 700; }
.row .v { color: var(--muted); font-size: .9375rem; }
@media (min-width: 560px) { .row { grid-template-columns: 11rem 1fr; gap: 1rem; } }

.callout {
  border-left: 3px solid var(--accent); background: var(--bg2);
  border-radius: 8px; padding: .8rem .95rem; margin: 0 0 .8rem;
}
.callout p:last-child { margin-bottom: 0; }

footer {
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  font-family: 'DM Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .06em;
  color: var(--faint);
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Back to the app. Same tab by design: a new tab from an installed app strands the user. */
.back { display: inline-block; font-family: "DM Mono", ui-monospace, monospace; font-size: 12px;
  letter-spacing: .06em; text-decoration: none; color: var(--accent); padding: .5rem 0; margin: 0 0 1rem; }
/* Back to top: appears once the reader has scrolled a screen down. */
.to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border2);
  background: var(--bg2); color: var(--accent); font-size: 20px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(35, 31, 26, .12); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
/* On legal.pl.html and legal.es.html only: the translation is a courtesy, the English page governs. */
.governs { margin: 1rem 0 0; font-size: .9375rem; color: var(--muted); }
