/*
 * Intuitive-Me legal pages — minimal, readable, accessible.
 *
 * Design constraints
 * ------------------
 * - System fonts (zero web-font request — privacy-respecting + fast)
 * - WCAG 2.1 AA color contrast (4.5:1 minimum)
 * - 65-character max line length for body text
 * - Mobile-first; reads cleanly at 320px viewport up
 * - No analytics, no trackers, no third-party assets
 */

* { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #111827;
  background: #FFFFFF;
  margin: 0;
  padding: 0;
}

.main-container,
main,
article,
body > *:not(header):not(footer) {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 2rem 0 0.75rem;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1F2937;
  margin: 1.5rem 0 0.5rem;
}

p, ul, ol {
  font-size: 1rem;
  color: #374151;
  margin: 0 0 1rem;
}

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin: 0.25rem 0;
}

a {
  color: #2563EB;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover, a:focus {
  color: #1E40AF;
}

a:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  border-radius: 2px;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  background: #F3F4F6;
  border-radius: 4px;
}

code { padding: 0.1em 0.3em; }

pre {
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid #E5E7EB;
}

pre code { padding: 0; background: transparent; }

blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid #2563EB;
  color: #4B5563;
  background: #F9FAFB;
  font-style: italic;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #E5E7EB;
}

th {
  background: #F9FAFB;
  font-weight: 700;
  color: #111827;
}

tr:hover { background: #F9FAFB; }

hr {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 2rem 0;
}

/* Pandoc metadata block + title page */
.title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  border-bottom: 2px solid #2563EB;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  color: #6B7280;
  margin-bottom: 1.5rem;
}

.author, .date {
  font-size: 0.9rem;
  color: #6B7280;
  margin: 0.25rem 0;
}

/* Wellness-boundary callout (apply class manually if needed) */
.disclaimer {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  color: #78350F;
  font-size: 0.95rem;
}

/* Footer */
footer {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid #E5E7EB;
  color: #6B7280;
  font-size: 0.85rem;
  text-align: center;
}

footer a { color: #6B7280; }

@media print {
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  pre, code { background: #f5f5f5; }
}
