/* Legal-only presentation. Shared support styles/controllers are unchanged. */
.toma-legal .legal-wrap, .toma-legal .terms-container {
  width:100%; max-width:840px; margin:0 auto; padding:24px 24px 48px;
}
.toma-legal .info-hero-inner { max-width:792px; }
.toma-legal .terms-header { margin:8px 0 24px; }
.toma-legal .terms-header h1 { margin:0 0 8px; }
.toma-legal .terms-header p { margin:0; font:var(--type-caption); color:var(--text-muted); }
.toma-legal .terms-section, .toma-legal .section {
  min-width:0; padding:24px; margin:0 0 16px; background:var(--card);
  border:1px solid var(--border); border-radius:var(--radius-card); box-shadow:var(--shadow-small);
  overflow-wrap:anywhere;
}
.toma-legal .terms-section h2, .toma-legal .section h2 {
  margin:0 0 16px; padding-bottom:12px; border-bottom:1px solid var(--border);
  color:var(--text-primary); font:var(--type-subheading); scroll-margin-top:24px;
}
.toma-legal .terms-section p, .toma-legal .section p,
.toma-legal .terms-section li, .toma-legal .section li {
  font:var(--type-body); line-height:1.85; color:var(--text-secondary);
}
.toma-legal .terms-section p, .toma-legal .section p { margin:0 0 12px; }
.toma-legal ul { padding-inline-start:24px; margin:0 0 12px; }
.toma-legal li { margin-bottom:8px; }
.toma-legal li ul { margin-top:8px; }
.toma-legal strong { color:var(--text-primary); font-weight:600; }
.toma-legal .terms-section > :last-child, .toma-legal .section > :last-child { margin-bottom:0; }
.toma-legal .highlight-box, .toma-legal .warning-box {
  border:1px solid var(--border); background:var(--subdued);
  padding:16px; border-radius:var(--radius-input); margin:16px 0;
}
.toma-legal .warning-box { background:var(--warning-background); border-color:var(--warning); }
.toma-legal .warning-box p, .toma-legal .warning-box strong { color:var(--warning); }
.toma-legal .highlight-box > :last-child, .toma-legal .warning-box > :last-child { margin-bottom:0; }
.toma-legal .history-back, .toma-legal .back-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; padding:10px 16px; border:1px solid var(--border);
  border-radius:var(--radius-button); font:var(--type-label);
  background:var(--card); color:var(--link); text-decoration:none;
}
.toma-legal .history-back { margin-bottom:16px; }
.toma-legal .back-btn { background:var(--primary); color:var(--on-primary); border-color:var(--primary); }
.toma-legal .legal-home { text-align:center; margin-top:24px; }
.toma-legal .update-date { color:var(--text-muted); font:var(--type-caption); margin:24px 0 12px; }
.toma-legal .skip-legal { position:absolute; inset-inline-start:16px; top:8px; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.toma-legal .skip-legal:focus { position:relative; display:block; inset:auto; width:auto; height:auto; clip-path:none; padding:16px; background:var(--card); }
@media(max-width:767px) {
  .toma-legal .legal-wrap, .toma-legal .terms-container { padding:20px 16px 32px; }
  .toma-legal .terms-section, .toma-legal .section { padding:20px 16px; }
}
