:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --border: #292929;
  --text: #f5f5f5;
  --muted: #a6a6a6;
  --accent: #e11d48;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Readex Pro", Arial, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }
.site-header {
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - 960px) / 2));
  border-bottom: 1px solid var(--border);
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.legal-nav { display: flex; gap: 8px; }
.legal-nav a {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.legal-nav a:hover { color: var(--text); border-color: var(--border); }
.legal-nav a.active { color: #fff; background: var(--accent); }
.legal-shell {
  width: min(100% - 40px, 880px);
  margin: 0 auto;
  padding: 48px 0 64px;
}
.title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 13px; font-weight: 700; }
h1 { margin: 0; font-size: 32px; line-height: 1.35; }
.updated { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.legal-content {
  padding-top: 24px;
  color: #d0d0d0;
  font-size: 15px;
  line-height: 2;
  overflow-wrap: anywhere;
}
.legal-content h1,
.legal-content h2,
.legal-content h3 { color: var(--text); line-height: 1.5; margin: 32px 0 12px; }
.legal-content h1 { font-size: 24px; }
.legal-content h2 { font-size: 20px; }
.legal-content h3 { font-size: 17px; }
.legal-content p { margin: 0 0 16px; }
.legal-content ul,
.legal-content ol { margin: 8px 0 20px; padding-right: 24px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: #ff6b8b; }
.legal-content .ql-align-center { text-align: center; }
.legal-content .ql-align-left { text-align: left; }
.legal-content .ql-align-right { text-align: right; }
.legal-content .ql-align-justify { text-align: justify; }
.legal-content .ql-direction-rtl { direction: rtl; }
.loading,
.error { padding: 28px 0; text-align: center; color: var(--muted); }
.error { color: #ff7b91; }
.site-footer {
  width: min(100% - 40px, 880px);
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--border);
  color: #737373;
  text-align: center;
  font-size: 13px;
}
@media (max-width: 640px) {
  .site-header { align-items: stretch; flex-direction: column; gap: 10px; }
  .brand { justify-content: center; }
  .legal-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .legal-nav a { text-align: center; }
  .legal-shell { width: min(100% - 32px, 880px); padding-top: 32px; }
  .title-row { align-items: start; flex-direction: column; gap: 10px; }
  h1 { font-size: 27px; }
  .site-footer { width: min(100% - 32px, 880px); }
}
