/* SmartTutor — legal pages (privacy notice, child safety & data).
   Loaded after style.css. Uses the site's own variables, so the palette,
   type and rhythm stay identical to the rest of the site; this file only
   adds the reading-column layout that long-form prose needs. */

.legal {
  max-width: var(--measure, 65ch);
  margin: 0 auto;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink-muted);
  margin: 0 0 28px;
}

/* The "this notice stands on its own" box. Uses the accent wash already
   defined for .callout, so it reads as part of the same system. */
.legal-note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 40px 0 12px;
}

.legal h2:first-of-type { margin-top: 8px; }

.legal p,
.legal li { color: var(--ink); }

.legal ul { margin: 12px 0; padding-left: 20px; }

.legal li { margin: 7px 0; }

.legal code {
  font-family: var(--font-mono);
  font-size: .86em;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
}

/* The itemised-data table. .table-wrap already handles the horizontal
   scroll on narrow screens; this only sets the reading size. */
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  margin: 16px 0;
}

.legal th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-muted);
  background: var(--bg);
  padding: 9px 11px;
  border: 1px solid var(--rule);
}

.legal td {
  padding: 9px 11px;
  border: 1px solid var(--rule);
  vertical-align: top;
}

.legal-contact {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin: 18px 0 0;
  line-height: 1.7;
}

.legal-contact strong { color: var(--ink); }

.legal-foot {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: .86rem;
  color: var(--ink-muted);
}

@media (max-width: 620px) {
  .legal table { font-size: .86rem; }
  .legal th, .legal td { padding: 7px 8px; }
}
