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

:root {
  --bg: #0a0a0b;
  --bg-raised: #111113;
  --bg-surface: #18181b;
  --bg-hover: #1f1f23;
  --border: #27272a;
  --border-subtle: #1e1e21;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-dim: #52525b;
  --accent: #3b82f6;
  --green: #22c55e;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Menlo', monospace;
}

html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 88px; }
html, body { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(10,10,11,0.82);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1120px;
  height: 56px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.legal-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 128px 32px 72px;
}

.legal-hero {
  width: 100%;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.legal-subtitle {
  width: 100%;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.legal-layout {
  width: 100%;
  padding-top: 56px;
  min-width: 0;
}

.legal-document {
  width: 100%;
  min-width: 0;
}

.legal-document a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.legal-document a:hover { color: var(--text-secondary); }
.legal-document a:visited { color: var(--text); }

.legal-document > p:first-child {
  margin-top: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.legal-document h2 {
  margin: 56px 0 18px;
  padding-top: 8px;
  color: var(--text);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
  scroll-margin-top: 88px;
}

.legal-document h3 {
  margin: 34px 0 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  scroll-margin-top: 88px;
}

.legal-document p,
.legal-document li {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.72;
  overflow-wrap: break-word;
}

.legal-document p { margin: 0 0 18px; }

.legal-document ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.legal-document li { margin-bottom: 10px; }
.legal-document li::marker { color: var(--text-dim); }

.legal-document strong {
  color: var(--text);
  font-weight: 600;
}

.contact-block {
  margin-top: 48px;
  padding: 22px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.contact-block a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.contact-block a:hover { color: var(--text-secondary); }

footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner span,
.footer-inner a {
  color: var(--text-dim);
  font-size: 12.5px;
}

.footer-inner a {
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-inner a:hover { color: var(--text-secondary); }

@media (width <= 40rem) {
  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .legal-shell {
    padding: 5rem 1.25rem 3.5rem;
  }

  .legal-hero {
    padding-bottom: 40px;
  }

  .legal-layout {
    padding-top: 40px;
  }

  .legal-hero h1 {
    font-size: clamp(36px, 11vw, 44px);
  }

  .legal-subtitle {
    font-size: 16px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
