:root {
  --bg: #050505;
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --rule: rgba(255, 255, 255, 0.14);
  --panel: rgba(8, 8, 8, 0.82);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg) url("images/trade-witness-logo.jpg") center / cover no-repeat fixed;
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--text); }
a:hover { color: #fff; }

/* Home: the logo shows through a light veil. */
.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.8));
}

.home h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 24px #000;
}

.home .company {
  margin: 12px 0 0;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px #000;
}

.home .product {
  margin: 28px 0 0;
  max-width: 34rem;
  color: var(--text);
  text-shadow: 0 1px 10px #000;
}

/* Legal pages: readable text on a dark panel over the logo. */
.doc {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 40px 24px;
  background: var(--panel);
}

.doc h1 { margin-top: 0; font-weight: 400; }
.doc h2 { margin-top: 2em; font-weight: 500; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.doc .meta { color: var(--muted); }
.doc .back { display: inline-block; margin-bottom: 24px; color: var(--muted); }

footer {
  padding: 20px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid var(--rule);
}

footer nav a { margin: 0 10px; color: var(--muted); }
footer nav a:hover { color: var(--text); }
footer p { margin: 8px 0 0; }

@media (max-width: 600px) {
  body { background-attachment: scroll; }
  .doc { padding: 28px 16px; }
}
