/* Toilet Panic — public legal/support pages */

:root {
  --text: #1a1a1a;
  --muted: #666;
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --border: #e5e5e7;
  --accent: #5b3df5;
  --accent-hover: #4a2fd8;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f0f0f0;
    --muted: #a1a1a6;
    --bg: #1a1a1c;
    --bg-alt: #2a2a2e;
    --border: #3a3a3e;
    --accent: #8b6dff;
    --accent-hover: #a888ff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding: 24px 16px 64px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header.site-header .brand {
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
}

header.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
  font-size: 14px;
}

header.site-header nav a:hover {
  color: var(--accent);
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 8px;
}

h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
}

p, ul, ol {
  margin: 12px 0;
}

ul, ol { padding-left: 24px; }

li { margin: 4px 0; }

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.meta strong { color: var(--text); }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { color: var(--accent-hover); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-alt);
  font-weight: 600;
}

code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
}

footer.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

footer.site-footer a:hover { color: var(--accent); }

.disclaimer-block {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
  font-size: 15px;
}

.legal-caps {
  font-size: 14px;
  letter-spacing: 0.02em;
}
