/* Brick Forge Legal — dark theme matching app */
:root {
  --bg: #0a0d14;
  --bg-elev: #131826;
  --border: #233152;
  --text: #e8ecf5;
  --text-muted: #9aa3b8;
  --accent: #4a8eff;
  --accent-hover: #6ba3ff;
  --link: #6ba3ff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.topnav a { color: var(--accent); text-decoration: none; }
.topnav a:hover { color: var(--accent-hover); }

.lang-switch a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 500;
}

h1 { font-size: 32px; line-height: 1.25; margin: 0 0 24px; color: #fff; }
h2 { font-size: 22px; line-height: 1.3; margin: 36px 0 14px; color: #fff;
     padding-bottom: 6px; border-bottom: 1px solid var(--border); }
h3 { font-size: 18px; line-height: 1.35; margin: 24px 0 10px; color: var(--accent-hover); }
h4 { font-size: 16px; margin: 20px 0 8px; color: var(--text); }

p { margin: 0 0 14px; }

a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(107,163,255,0.4); }
a:hover { text-decoration-color: var(--link); }

strong { color: #fff; font-weight: 600; }

ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 6px; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
  background: var(--bg-elev);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(74, 142, 255, 0.08);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 20px 16px 48px; }
  h1 { font-size: 26px; }
  h2 { font-size: 19px; }
  h3 { font-size: 16.5px; }
  table { font-size: 13.5px; }
  th, td { padding: 8px 10px; }
  th { font-size: 11.5px; letter-spacing: 0.3px; }
}

/* Print */
@media print {
  body { background: #fff; color: #000; }
  .topnav, .footer { display: none; }
  a { color: #000; text-decoration: underline; }
  table, th, td { border: 1px solid #888; background: #fff; color: #000; }
  th { background: #eee; }
}
