/* shared/legal.css — Privacy and Terms on Chalk Line (OPS-101 P5, OPS-141).
 * Colors, type and dark mode come from shared/tokens.css. The header uses the
 * same wordmark as login.html. */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--pt-font-ui);
  background: var(--pt-bg);
  color: var(--pt-ink);
  min-height: 100vh;
  padding: max(32px, env(safe-area-inset-top, 0px)) 20px 80px;
  line-height: 1.65;
}
.page-wrap { max-width: 680px; margin: 0 auto; }

.page-header { margin-bottom: 32px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--pt-tap); margin-bottom: 20px;
  color: var(--pt-forest); text-decoration: none;
  font-size: var(--pt-text-sm); font-weight: 600;
}
.back-link:hover { text-decoration: underline; }
.back-link:focus-visible, a:focus-visible { outline: 2px solid var(--pt-focus); outline-offset: 2px; }
.brand-mark { display: block; width: 160px; max-width: 50vw; height: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-pt-theme="light"]) .brand-mark { filter: invert(1) hue-rotate(180deg); } }

.page-title {
  font-family: var(--pt-font-display);
  font-size: var(--pt-text-2xl); font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.01em;
  margin-top: 28px; margin-bottom: 8px;
}
.effective-date { font-size: var(--pt-text-sm); color: var(--pt-muted); }
.intro { font-size: var(--pt-text-md); color: var(--pt-muted); margin-bottom: 8px; }

.divider { border: none; border-top: 1px solid var(--pt-line); margin: 28px 0; }

.section { margin-bottom: 32px; }
.section h2 {
  font-family: var(--pt-font-display);
  font-size: 22px; font-weight: 700; line-height: 1.15;
  text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 10px;
  display: flex; align-items: baseline; gap: 10px;
}
.section h2 .section-num {
  font-family: var(--pt-font-mono); font-size: var(--pt-text-sm); font-weight: 500;
  color: var(--pt-forest); letter-spacing: 0; min-width: 22px;
}
.section p { font-size: var(--pt-text-md); margin-bottom: 10px; }
.section ul { list-style: none; padding: 0; margin: 0; }
.section ul li { font-size: var(--pt-text-md); padding: 4px 0 4px 18px; position: relative; }
.section ul li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 1px; background: var(--pt-forest);
}

.info-card, .highlight-card {
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius-card);
  padding: 18px 20px; margin-top: 12px;
}
.highlight-card { background: var(--pt-warning-tint); border-color: transparent; }
.info-card p, .highlight-card p { margin-bottom: 0; }
.highlight-card p + p { margin-top: 12px; }

.contact-link { color: var(--pt-forest); text-decoration: none; font-weight: 600; }
.contact-link:hover { text-decoration: underline; }

.page-footer {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--pt-line);
  font-size: 13px; color: var(--pt-muted);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.page-footer a { color: var(--pt-muted); text-decoration: none; min-height: var(--pt-tap); display: inline-flex; align-items: center; }
.page-footer a:hover { color: var(--pt-forest); }
.highlight-card + p { margin-top: 12px; }
