*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --border: #e8e6e0;
  --text: #111110;
  --muted: #888580;
  --tag-bg: #111110;
  --tag-text: #f7f6f3;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 243, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
}
.header-inner {
  max-width: 820px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1a;
}
.back-link {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--text); }

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1rem 5rem;
}
.legal-content .eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.legal-content h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.legal-content .updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.legal-content p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
}
.legal-content ul {
  margin: 0 0 1rem 1.25rem;
}
.legal-content li {
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.legal-content a { color: var(--text); }
.legal-content strong { font-weight: 600; }
.legal-content .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 0.25rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.footer-social a:hover { color: var(--text); border-color: var(--text); }
.footer-social svg { width: 16px; height: 16px; }
.footer-collab { font-size: 13px; color: var(--muted); }
.footer-collab a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.footer-note { font-size: 13px; color: var(--muted); }
.footer-disclaimer { font-size: 11px; color: var(--muted); opacity: 0.6; max-width: 400px; }
.footer-legal-links { font-size: 11px; color: var(--muted); }
.footer-legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; margin: 0 4px; }
.footer-legal-links a:hover { color: var(--text); }
.footer-legal-links button.link-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; margin: 0 4px;
  -webkit-tap-highlight-color: transparent;
}
.footer-legal-links button.link-btn:hover { color: var(--text); }

/* ── COOKIE CONSENT BANNER ── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 560px;
  margin: 0 auto;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  z-index: 1300;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.cookie-banner.active { display: flex; }
.cookie-banner p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(247,246,243,0.85);
}
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 8px; }
.cookie-banner-actions button {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(247,246,243,0.3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cookie-accept {
  background: #f7f6f3;
  color: #111110;
  border-color: #f7f6f3 !important;
}
.cookie-decline {
  background: transparent;
  color: #f7f6f3;
}

@media (min-width: 768px) {
  .legal-content { padding: 3.5rem 1rem 6rem; }
}
