/* legal.css — shared styling for the Terms of Service and Privacy Notice pages.
   Assumes styles.css (tokens) + nav.css + footer.css are loaded. */

.legal-wrap { max-width: 880px; margin: 0 auto; padding: 52px 32px 88px; }

.legal-head { border-bottom: 1px solid var(--gray-light); padding-bottom: 26px; margin-bottom: 8px; }
.legal-eyebrow { color: var(--blue); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }
.legal-title { font-family: 'Sora', sans-serif; font-size: 2.1rem; color: var(--ink); margin: 10px 0 6px; letter-spacing: -0.01em; }
.legal-meta { color: var(--text-muted); font-size: 0.9rem; }

.legal-intro {
  background: var(--bg);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 28px 0 8px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.legal-body { color: var(--text); }
.legal-body h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 40px 0 12px;
  padding-top: 8px;
}
.legal-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  margin: 24px 0 8px;
}
.legal-part {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 52px 0 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}
.legal-body p { line-height: 1.75; color: var(--text-muted); margin-bottom: 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { line-height: 1.75; color: var(--text-muted); margin-bottom: 8px; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--blue); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }

.legal-note {
  background: rgba(80,162,255,0.08);
  border: 1px solid rgba(80,162,255,0.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 0;
  color: var(--ink);
  line-height: 1.7;
  font-size: 0.92rem;
}
.legal-note strong { color: var(--ink); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 22px;
  font-size: 0.9rem;
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: top;
  line-height: 1.55;
}
.legal-table thead th { background: var(--bg); color: var(--ink); font-weight: 700; font-size: 0.82rem; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.legal-table.wide td:first-child { white-space: normal; }
.legal-table .yes { color: var(--blue); font-weight: 700; }

.legal-footer-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--gray-light); color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }

@media (max-width: 640px) {
  .legal-wrap { padding: 36px 20px 64px; }
  .legal-title { font-size: 1.7rem; }
  .legal-table { display: block; overflow-x: auto; }
}

/* Print: legal documents are the pages people actually print or save as PDF.
   Strip the chrome, keep the content black-on-white, and surface link targets. */
@media print {
  nav, .footer, .skip-link, .tp-consent-bar, .tp-chat, .tp-chat-launch, .nav-toggle { display: none !important; }
  body { background: #ffffff !important; color: #000000 !important; }
  .legal-wrap { max-width: none; padding: 0; }
  .legal-table { page-break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555555; }
}
