:root {
  --bg: #050818;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --fg: #eeeef2;
  --fg-dim: #9294a6;
  --fg-muted: #55576a;
  --accent: #4361ee;
  --accent2: #7c8cf8;
  --font-display: 'Bricolage Grotesque', serif;
  --font-body: 'Instrument Sans', sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(5, 8, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.legal-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-nav-brand img {
  height: 40px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.15));
}

.legal-back {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-dim);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.legal-back:hover {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.legal-main {
  flex: 1;
  padding: 3rem 0 3rem;
  position: relative;
  z-index: 1;
}

.legal-panel {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
}

@media (max-width: 600px) {
  .legal-panel {
    padding: 1.75rem 1.25rem;
  }
}

.legal-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, #d4a843 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-subtitle {
  font-size: 1rem;
  color: var(--fg-dim);
  margin-bottom: 0.75rem;
}

.legal-meta {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--fg-muted);
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--fg-dim);
}

.legal-doc p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}

.legal-doc ul {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  color: var(--fg-dim);
}

.legal-doc li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.45rem;
}

.legal-doc strong {
  color: var(--fg);
  font-weight: 600;
}

.legal-doc a.inline-link,
.legal-doc a[href^="mailto:"] {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a.inline-link:hover,
.legal-doc a[href^="mailto:"]:hover {
  color: var(--fg);
}

.legal-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem 0 2rem;
  margin-top: auto;
}

.legal-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
}

.legal-footer-links a {
  font-size: 0.75rem;
  color: var(--fg-dim);
  transition: color 0.2s;
}

.legal-footer-links a:hover {
  color: var(--fg);
}
