/* Not in the design: the draft legal pages. Header, type and colours from the
   product's tokens; desktop only. Loaded with tokens.css alone (no app.css). */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); color: var(--text); background: var(--canvas); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.legal-header {
  background: #fff; border-bottom: 1px solid var(--border); height: 53px;
  display: flex; align-items: center;
}
.legal-brand { display: flex; align-items: center; padding: 0 24px; }
.legal-brand .brand-logo { display: block; height: 32px; width: auto; }

.legal-page { max-width: 1100px; padding: 40px var(--page-pad) 48px; }
.legal-banner {
  margin: 0 0 28px; padding: 14px 18px; border-radius: var(--radius-card);
  background: var(--amber-bg); color: var(--amber); font-size: 14px; line-height: 1.6;
}
.legal-title { margin: 0 0 24px; font-size: 28px; font-weight: 500; }
.legal-index { margin: 0; padding-left: 20px; font-size: 15px; line-height: 2; }

.legal-text {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-card);
  padding: 8px var(--card-pad) 28px; font-size: 15px; line-height: 1.65; color: var(--text-2);
}
.legal-text h2 { margin: 24px 0 12px; font-size: 22px; font-weight: 500; color: var(--text); }
.legal-text h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 500; color: var(--text); }
.legal-text h4 { margin: 20px 0 8px; font-size: 15px; font-weight: 500; color: var(--text); }
.legal-text p, .legal-text ul, .legal-text ol { margin: 0 0 12px; }
.legal-text code { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.legal-text hr { border: 0; border-top: 1px solid var(--divider); margin: 24px 0; }
/* Wide tables scroll inside their own box instead of widening the page. */
.legal-table { overflow-x: auto; margin: 0 0 16px; }
.legal-table table { border-collapse: collapse; font-size: 13px; line-height: 1.5; min-width: 100%; }
.legal-table th, .legal-table td {
  border: 1px solid var(--border-soft); padding: 8px 10px; text-align: left; vertical-align: top;
}
.legal-table th { background: var(--canvas); font-weight: 500; color: var(--text); }
.legal-table td { min-width: 120px; }

.legal-footer {
  height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted);
}
.legal-footer a { color: var(--text-4); }
