/* Static legal pages (privacy.html, terms.html). Adapted from magic-atlas's
 * legal.css with the Twilight Tiki notebook colors from src/styles.css. */
:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Karla", ui-sans-serif, system-ui, sans-serif;
  --bg: #efe2c6;
  --bg-grad-1: #f3e8d0;
  --bg-grad-2: #eadcbd;
  --surface: #f8efd8;
  --surface-2: #e7d5b0;
  --border: #d4bc8a;
  --text: #2a1810;
  --muted: #6e5640;
  --ring: #c9892e;
}
.dark {
  --bg: #0c1a1c;
  --bg-grad-1: #102325;
  --bg-grad-2: #0a1517;
  --surface: #142628;
  --surface-2: #1a3336;
  --border: #2f4a4c;
  --text: #f2e6c8;
  --muted: #9db0ab;
  --ring: #d9a441;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, var(--bg-grad-1), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, var(--bg-grad-2), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ring); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}
.brand img {
  height: 2.25rem;
  width: 2.25rem;
  object-fit: contain;
}
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-tag {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
}
.theme-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.theme-btn:hover { filter: brightness(1.03); }

main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}
.legal-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgb(12 16 48 / 0.04), 0 12px 30px -18px rgb(12 16 48 / 0.35);
  padding: 1.75rem 1.35rem 2rem;
}
@media (min-width: 640px) {
  .legal-doc { padding: 2rem 2.25rem 2.5rem; }
}

h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .4rem;
}
.meta { color: var(--muted); font-size: .85rem; margin: 0 0 1.75rem; }
h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 .6rem;
}
h3 { font-size: 1rem; margin: 1.25rem 0 .4rem; }
p, li { font-size: .95rem; }
ul { padding-left: 1.2rem; }
li { margin: .35rem 0; }

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.1rem 1.2rem;
  margin: 1rem 0;
}
.note { color: var(--muted); font-size: .9rem; }
.legal-btn {
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem 1rem;
  cursor: pointer;
}
.legal-btn:hover { border-color: var(--ring); }
.legal-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.site-footer {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer .sep { margin: 0 .35rem; }
.site-footer .fineprint { margin: .5rem 0 0; }
