@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #0d0d0f;
  --surface: #16161a;
  --border: #2a2a32;
  --accent: #c9a84c;
  --accent-dim: #8a6f2e;
  --text: #e8e6e0;
  --text-muted: #7a7870;
  --radius: 14px;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* ── Top bar ── */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  background: rgba(13, 13, 15, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-topbar-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.site-topbar-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.92;
}

.site-topbar-wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
  line-height: 1;
  white-space: nowrap;
}

.site-topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-topbar-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.site-topbar-link:hover {
  color: var(--text);
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.08);
  transform: translateY(-1px);
}

/* ── Main Layout ── */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.02em;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 32px 0 16px;
  color: var(--accent);
}

p {
  margin-bottom: 16px;
  color: var(--text);
  opacity: 0.9;
  font-size: 0.95rem;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  opacity: 0.9;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.back-link:hover {
  color: var(--accent);
}

@media (max-width: 520px) {
  .site-topbar-wordmark {
    display: none;
  }
  main {
    padding: 32px 16px 60px;
  }
}
