@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  color-scheme: light dark;
  --bg: #faf8f4;
  --bg-subtle: #f1ede3;
  --text: #17181a;
  --text-muted: #67655f;
  --border: #e3ded2;
  --accent: #b3561f;
  --accent-soft: #f2e3d3;
  --footer-text: #8f897d;

  --violet: #6652ea;
  --violet-soft: #ece8fd;
  --coral: #ef5d6f;
  --coral-soft: #fde6e9;
  --amber: #e2a520;
  --amber-soft: #faf0d6;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0c0a;
    --bg-subtle: #17150f;
    --text: #f3f1e9;
    --text-muted: #a19c8e;
    --border: #2b2821;
    --accent: #e8945c;
    --accent-soft: #2a1f14;
    --footer-text: #716b5e;

    --violet: #9686ff;
    --violet-soft: #221d3f;
    --coral: #ff8699;
    --coral-soft: #3a1e24;
    --amber: #f0c04b;
    --amber-soft: #352811;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0c0a;
  --bg-subtle: #17150f;
  --text: #f3f1e9;
  --text-muted: #a19c8e;
  --border: #2b2821;
  --accent: #e8945c;
  --accent-soft: #2a1f14;
  --footer-text: #716b5e;

  --violet: #9686ff;
  --violet-soft: #221d3f;
  --coral: #ff8699;
  --coral-soft: #3a1e24;
  --amber: #f0c04b;
  --amber-soft: #352811;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; opacity: 0.85; }

.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}
.site-header nav a { color: var(--text-muted); }
.site-header nav a:hover { color: var(--text); }

.site-footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 36px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--footer-text);
}
.site-footer nav { display: flex; gap: 16px; }
.site-footer nav a { color: var(--footer-text); }
.site-footer nav a:hover { color: var(--text); }

main.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

main.legal h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.legal .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal .intro {
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.toc {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 40px;
}
.toc p { margin: 0 0 10px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 24px; }
.toc li { margin-bottom: 6px; font-size: 0.92rem; }
@media (max-width: 560px) {
  .toc ol { columns: 1; }
}

.legal section { margin-bottom: 34px; }
.legal h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  scroll-margin-top: 24px;
}
.legal h2 .num { color: var(--accent); margin-right: 8px; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 1.3rem; margin: 0 0 12px; }
.legal strong { color: var(--text); }

.back-link { font-size: 0.9rem; color: var(--text-muted); }
