/* Shared styling for the legal pages. Self-contained: these pages must render
   even if the app bundle fails, and they are also read by people who are not
   logged in. Matches the Tool's dark theme (see public/404.html). */
:root {
  --mixx-bg: #0d0d12;
  --mixx-panel: #1a1a24;
  --mixx-surface: #252532;
  --mixx-accent: #5a8bff;
  --mixx-text: #e7e7ea;
  --mixx-muted: #8a8a9a;
  --mixx-border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 16px 96px;
  background: var(--mixx-bg);
  color: var(--mixx-text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 760px; margin: 0 auto; }

header.masthead {
  padding: 40px 0 8px;
  border-bottom: 1px solid var(--mixx-border);
  margin-bottom: 32px;
}
header.masthead a.home { color: var(--mixx-accent); text-decoration: none; font-weight: 600; }
header.masthead h1 { font-size: 2rem; line-height: 1.2; margin: 16px 0 8px; }
.updated { color: var(--mixx-muted); font-size: 0.9rem; margin: 0 0 24px; }

h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
  padding-top: 8px;
}
h3 { font-size: 1.05rem; margin: 24px 0 8px; }

p, li { color: #d3d3da; }
a { color: var(--mixx-accent); }

ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

.lede {
  background: var(--mixx-panel);
  border: 1px solid var(--mixx-border);
  border-left: 3px solid var(--mixx-accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 32px;
}
.lede p { margin: 8px 0; }
.lede p:first-child { margin-top: 0; }
.lede p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.94rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mixx-border);
}
th { color: var(--mixx-text); font-weight: 600; background: var(--mixx-panel); }
td { color: #c9c9d2; }

.contact {
  background: var(--mixx-surface);
  border: 1px solid var(--mixx-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 32px 0 0;
}

footer.legal-footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--mixx-border);
  color: var(--mixx-muted);
  font-size: 0.9rem;
}
footer.legal-footer a { margin-right: 16px; }

@media (max-width: 600px) {
  header.masthead h1 { font-size: 1.6rem; }
  table, th, td { font-size: 0.9rem; }
  th, td { padding: 8px; }
}
