/* Legal Pages — mirrors Everwhen design system (src/index.css) */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #000000;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.7;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* Sticky nav */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
}

.legal-nav-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.legal-nav a:hover {
  color: #ffffff;
}

.legal-nav .nav-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.legal-nav .nav-brand {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.125rem;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Title — gradient text */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 50%, #8b5cf6 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Effective date pill */
.effective-date {
  display: inline-block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}

/* Sections */
section {
  margin-top: 2.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* Lists — purple dot bullets */
ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

ul li {
  position: relative;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8b5cf6;
}

/* Links */
a {
  color: #8b5cf6;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #38bdf8;
}

/* Contact card — glass */
.contact-info {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.contact-info h2 {
  border-bottom: none;
  padding-bottom: 0;
}

/* Footer copyright */
.container > p:last-child {
  text-align: center;
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.3) !important;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 2rem 1rem 3rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.25rem;
  }
}
