/* Sleek Minimalist Legal Styles - Light Theme (White Background) */

:root {
  --legal-max-width: 800px;
  --legal-bg: #ffffff;
  --legal-text-primary: #121212;
  --legal-text-secondary: #3d3d3d;
  --legal-text-muted: #707070;
  --legal-line-height: 1.9;
}

.legal-section {
  padding: 200px 2rem 150px;
  min-height: 100vh;
  background-color: var(--legal-bg);
  color: var(--legal-text-primary);
  position: relative;
  overflow-x: hidden;
  z-index: 10;
}

/* Ensure the header text is visible on the white background before scroll */
.legal-section ~ .header:not(.scrolled) .nav-link,
.legal-section ~ .header:not(.scrolled) .logo {
    color: var(--legal-text-primary) !important;
}

/* Wait, the header is actually BEFORE the section in HTML potentially. Let's check structure. */
/* header is before section. So I'll just use global styles or simple class. */

.legal-container {
  max-width: var(--legal-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

@media (max-width: 768px) {
  .legal-section {
    padding-top: 150px;
  }
}

.legal-header {
  text-align: center;
  margin-bottom: 6rem;
}

.legal-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--legal-text-primary);
  line-height: 1.1;
}

.legal-last-updated {
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 700;
  display: block;
  margin-top: 1rem;
}

.legal-content {
  font-size: 1.125rem;
  line-height: var(--legal-line-height);
  color: var(--legal-text-secondary);
}

.legal-content h2 {
  font-size: 1.75rem;
  margin: 4.5rem 0 1.5rem;
  color: var(--legal-text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-content h3 {
  font-size: 1.25rem;
  margin: 2.5rem 0 1rem;
  color: var(--legal-text-primary);
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 2rem;
}

.legal-content ul, .legal-content ol {
  margin: 1.5rem 0 2.5rem;
  padding-left: 0;
  list-style: none;
}

.legal-content li {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--legal-text-secondary);
}

.legal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--primary-red);
  border-radius: 50%;
}

.legal-content a {
  color: var(--legal-text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-red);
  transition: all 0.3s ease;
}

.legal-content a:hover {
  color: var(--primary-red);
  border-bottom-color: transparent;
}

/* Subtle Light Accents */
.legal-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.legal-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(18, 18, 18, 0.03) 0%, transparent 70%);
  filter: blur(100px);
}

/* Handle Global Header and Nav on White Section */
/* We'll add this to ensure the nav is readable if the body is white */
body.white-legal .nav-link,
body.white-legal .logo {
    color: var(--dark-bg);
}

body.white-legal .header.scrolled .nav-link,
body.white-legal .header.scrolled .logo {
    color: #fffce1; /* Return to creamy white on scrolled dark header */
}

/* Scroll Animation Adjustment */
.reveal {
  opacity: 1;
  transform: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .legal-content {
    font-size: 1rem;
  }
  
  .legal-content h2 {
    font-size: 1.5rem;
    margin-top: 3.5rem;
  }
}
