/* Safety & privacy: legal pages, consent, recovery codes, parent page, danger zone. */
.legal { max-width: 780px; margin: 0 auto; }
.legal .page-head { justify-content: center; text-align: center; }
.legal section { margin-bottom: 18px; }
.legal h2 { font-size: 21px; margin-bottom: 8px; }
.legal p, .legal ul { margin: 0; }
.legal ul { padding-inline-start: 22px; display: grid; gap: 4px; }
.legal .updated { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.draft-banner { background: var(--tint-yellow); color: var(--amber-ink); border: 1px solid var(--edge-yellow); border-radius: 16px; padding: 14px 18px; font-weight: 600; font-size: 15px; margin: 8px 0 18px; }
.contact-value { font-weight: 700; display: inline-block; margin-top: 6px; }

.footer-links { font-size: 15px; }

.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; }
.check-row input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.check-row span { font-weight: 700; }
.field.invalid .check-row { border-color: var(--danger); }
.terms-note { font-size: 14px; color: var(--muted); text-align: center; margin: 12px 0 0; }

.code-box { font: 700 clamp(22px, 6vw, 30px) / 1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 2px; text-align: center; direction: ltr;
  padding: 18px 12px; border: 2px dashed var(--primary); border-radius: 16px; background: var(--primary-soft); color: var(--link-strong); margin: 16px 0; user-select: all; word-break: break-all; }
.code-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.safety-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.safety-row:first-of-type { border-top: 0; }
.safety-row small { display: block; color: var(--muted); font-size: 14px; }
.safety-row .status { font-size: 14px; font-weight: 700; color: var(--muted); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; width: 100%; }
.inline-form .field { margin: 0; flex: 1 1 160px; }
.inline-form input { width: 100%; }
.danger-zone { border-color: var(--edge-red); }
.danger-zone h2 { color: var(--danger-ink); }
.danger-zone p { color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-grid .stat-box { background: var(--primary-soft); border-radius: 16px; padding: 14px; text-align: center; }
.stat-grid .stat-box b { display: block; font: 700 26px var(--font-display); color: var(--link-strong); }
.stat-grid .stat-box span { font-size: 14px; color: var(--muted); }
.kid-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.kid-head .av { font-size: 44px; width: 64px; height: 64px; display: grid; place-items: center; background: var(--primary-soft); border-radius: 18px; }
.kid-head small { color: var(--muted); display: block; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mini-table th, .mini-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: start; }
.mini-table th { color: var(--muted); font-weight: 700; font-size: 14px; }
.table-wrap { overflow-x: auto; }
