/* Shared styling for the plain pages: legal, security, about, 404.
   Deliberately not the landing page's stylesheet. These pages are read, not
   scrolled through, and a buyer's lawyer opens them in a tab next to five
   other vendors' terms. Nothing here animates, nothing needs WebGL, and the
   whole file is small enough to serve with the page. */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600..800&family=Figtree:wght@400;500;600;700&display=swap");

/* Same palette as /assets/site.css ("Harbour"): cool white, deep ink, teal links. */
:root {
  color-scheme: light dark;
  --bg: #F4F7F7;
  --panel: #FFFFFF;
  --ink: #0F2A33;
  --muted: #4F6870;
  --line: #DCE7E7;
  --accent: #0E6E72;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1E24;
    --panel: #132C33;
    --ink: #E8F2F2;
    --muted: #9DB5BA;
    --line: #21414A;
    --accent: #4FC2BE;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1E24;
  --panel: #132C33;
  --ink: #E8F2F2;
  --muted: #9DB5BA;
  --line: #21414A;
  --accent: #4FC2BE;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.top {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-bottom: 40px;
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
header.top a.home {
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
header.top nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a:hover, header.top nav a:focus { color: var(--ink); text-decoration: underline; }

main { padding-bottom: 72px; }

h1 {
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 10px;
}
h2 {
  font-family: "Bricolage Grotesque", "Figtree", sans-serif;
  font-size: clamp(19px, 3vw, 23px);
  letter-spacing: -.015em;
  margin: 40px 0 10px;
}
h3 { font-size: 17px; margin: 26px 0 8px; }

.updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }

p, li { color: var(--ink); }
.muted { color: var(--muted); }

a { color: var(--accent); }

ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 16px 0 24px;
}
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.scroll { overflow-x: auto; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 24px 0;
}
.panel h2, .panel h3 { margin-top: 0; }

.plain { font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }

footer.foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
footer.foot a { color: var(--muted); }
footer.foot .links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
}
