/* =========================================================
   snaprigo — Privacy Policy / Terms of Service page styles
   Standalone static pages (privacy.html, terms.html) — not part of
   the app shell, no gating, no app.js. Reuses style.css's design
   tokens (colors, fonts) so they read as the same product, with
   comfortable reading-length typography of their own.
   ========================================================= */

.legal-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 24px calc(56px + env(safe-area-inset-bottom));
}

.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green); font-weight: 700; font-size: 14px;
  text-decoration: none; margin-bottom: 28px;
}
.legal-back:hover { text-decoration: underline; }
.legal-back svg { width: 16px; height: 16px; }

.legal-head h1 {
  font-family: var(--font-display); font-weight: 800; font-size: 34px;
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 8px;
}
.legal-updated { color: var(--muted); font-size: 13px; font-weight: 600; }

.legal-content { margin-top: 30px; }
.legal-content h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  letter-spacing: -0.01em; color: var(--green-deep); margin: 34px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; line-height: 1.7; color: var(--ink); margin-bottom: 14px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content strong { font-weight: 700; }
.legal-content a { color: var(--green); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.legal-content a:hover { text-decoration-color: var(--green); }
.legal-content ul, .legal-content ol { margin: 0 0 14px 20px; }
.legal-content li { font-size: 15px; line-height: 1.7; color: var(--ink); margin-bottom: 7px; }
.legal-content li:last-child { margin-bottom: 0; }

.legal-table-wrap { overflow-x: auto; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.legal-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 13.5px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.legal-table th { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--green-deep); background: var(--green-soft); }
.legal-table th:first-child { border-top-left-radius: 10px; }
.legal-table th:last-child { border-top-right-radius: 10px; }

.legal-footer {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
}
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer a:hover { color: var(--green); }

@media (max-width: 480px) {
  .legal-head h1 { font-size: 27px; }
  .legal-wrap { padding-left: 20px; padding-right: 20px; }
}
