/* Shared styling for the /legal/ pages. Adapted from the Drydock legal pages,
   repainted in the palette and system font of the Sketchwright home page and
   stripped to what a long-prose page needs. One shared file rather than a copy
   of the same CSS inlined into every document. No fonts or images are loaded. */
:root {
  --bg: #16161c;
  --surface: #24242d;
  --text: #ebebf2;
  --muted: #a3a3b2;
  --border: #3a3a48;
  --accent: #b9a5f5;
  --amber: #f59e0b;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.62 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
::selection { background: var(--accent); color: #1b1b21; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { filter: brightness(1.12); }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}
.nav-back { font-size: 13px; color: var(--muted); text-decoration: none; }
.nav-back:hover { color: var(--text); }

.wrap { max-width: 760px; margin: 0 auto; padding: 52px 24px 88px; }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.rule {
  display: block;
  width: 56px;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
  margin-bottom: 20px;
}

h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.024em;
  margin-bottom: 8px;
}
.updated { font-size: 13px; color: var(--muted); margin-bottom: 34px; }

h2 { font-size: 21px; font-weight: 600; margin: 38px 0 12px; }
h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }

p { margin-bottom: 14px; }
.lede { font-size: 17.5px; color: var(--muted); margin-bottom: 22px; }
strong { font-weight: 600; }

ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }
li > ul, li > ol { margin-top: 8px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  width: 34%;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.doc-list { list-style: none; margin: 0; }
.doc-list li {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--surface);
}
.doc-list a { font-size: 18px; font-weight: 600; color: var(--text); text-decoration: none; }
.doc-list a:hover { color: var(--accent); }
.doc-list .doc-desc { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.doc-list .doc-meta { font-size: 12px; color: var(--muted); margin-top: 8px; }

.attribution {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
}
.copyright {
  text-align: center;
  margin-top: 48px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  .wrap { padding: 34px 18px 68px; }
  th { width: auto; }
}
