/* MallardGPT — legal and information pages. Loaded after styles.css, which supplies the theme tokens. */

html, body { height: auto; }
body { overflow: auto; }

.page { min-height: 100dvh; display: flex; flex-direction: column; }

.page-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.page-head-inner {
  max-width: 780px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.back-link { font-size: 14px; font-weight: 550; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.back-link:hover { color: var(--text); }
.back-link .i { width: 16px; height: 16px; }

.doc { flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: 48px 20px 64px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.updated { margin: 0 0 36px; font-size: 14px; color: var(--muted); }
.lead { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5; margin: 0 0 12px; }
.lead strong { font-weight: 650; }
.doc h2 { margin: 36px 0 10px; font-size: 20px; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 6px 0; padding-left: 2px; }
.doc li::marker { color: var(--accent-2); }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-2); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.doc a:hover { color: var(--accent-2); }
.doc strong { font-weight: 650; }

.about-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.about-hero .duck { width: 72px; height: 72px; flex: none; filter: drop-shadow(0 8px 14px rgba(255, 143, 31, .3)); }
.about-hero h1 { margin: 0; }

.page-foot { border-top: 1px solid var(--border); background: var(--sidebar); }
.page-foot-inner {
  max-width: 780px; margin: 0 auto; padding: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  font-size: 13px; color: var(--muted);
}
.page-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.page-foot a { color: var(--muted); }
.page-foot a:hover { color: var(--text); }
.page-foot a[aria-current="page"] { color: var(--text); font-weight: 600; }

@media (max-width: 600px) {
  .doc { padding: 32px 16px 48px; }
  .page-head-inner { padding: 10px 16px; }
  .page-foot-inner { padding: 18px 16px; }
  .about-hero .duck { width: 56px; height: 56px; }
}
