/* Legal Page Styles */

/* Import base styles from landing.css for consistency */
@import url('./landing.css');

/* Legal Page Specific Variables */
:root {
  --legal-nav-height: 70px;
  --legal-section-spacing: 4rem;
  --legal-content-max-width: 800px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

/* Navigation Styles (reuse from landing page) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo {
  width: 32px;
  height: 32px;
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.legal-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.hero-description {
  font-size: 1.25rem;
  opacity: 0.9;
  line-height: 1.6;
  color: #fff;
}

/* Legal Navigation */
.legal-nav {
  position: sticky;
  top: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  height: var(--legal-nav-height);
}

.legal-nav-container {
  max-width: var(--legal-content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.legal-nav-links {
  display: flex;
  gap: var(--space-8);
}

.legal-nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: var(--space-4) 0;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.legal-nav-link:hover,
.legal-nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.last-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Main Content */
.legal-main {
  padding: var(--legal-section-spacing) 0;
  background: var(--background);
}

.legal-container {
  max-width: var(--legal-content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.legal-section {
  margin-bottom: calc(var(--legal-section-spacing) * 2);
}

.legal-section:last-child {
  margin-bottom: 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Content Area */
.content-area {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

/* Placeholder Content Styling */
.placeholder-content {
  text-align: center;
  padding: var(--space-8);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--background-alt);
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.placeholder-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.placeholder-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.sample-content {
  text-align: left;
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-top: var(--space-6);
}

.sample-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.sample-content ul {
  list-style: none;
  padding: 0;
}

.sample-content li {
  padding: var(--space-2) 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  padding-left: var(--space-6);
}

.sample-content li:last-child {
  border-bottom: none;
}

.sample-content li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: var(--space-2);
}

/* Legal Content Styling */
.legal-content {
  text-align: left;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.legal-content h1 { font-size: 2rem; }
.legal-content h2 { font-size: 1.75rem; }
.legal-content h3 {
  font-size: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: var(--space-2);
}
.legal-content h4 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-top: var(--space-6);
}
.legal-content h5 { font-size: 1.125rem; }
.legal-content h6 { font-size: 1rem; }

.legal-content p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-content p:first-child {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-6);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-content li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
  color: var(--text-secondary);
}

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

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

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

/* Special styling for contact information */
.legal-content p:last-child {
  background: var(--background-alt);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  margin-top: var(--space-6);
}

/* Footer Styles (reuse from landing page) */
.footer {
  background: var(--text-primary);
  color: white;
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-24);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  margin-bottom: var(--space-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  width: 40px;
  height: 40px;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .legal-nav-container {
    flex-direction: column;
    height: auto;
    padding: var(--space-4) var(--space-6);
    gap: var(--space-4);
  }

  .legal-nav {
    position: static;
    height: auto;
  }

  .legal-nav-links {
    gap: var(--space-6);
  }

  .last-updated {
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.125rem;
  }

  .content-area {
    padding: var(--space-8);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .legal-nav-links {
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
  }

  .legal-nav-link {
    text-align: center;
    padding: var(--space-3) 0;
  }

  .content-area {
    padding: var(--space-6);
  }

  .placeholder-content {
    padding: var(--space-6);
  }

  .sample-content {
    padding: var(--space-4);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .legal-nav,
  .footer {
    display: none;
  }

  .legal-hero {
    background: none;
    color: var(--text-primary);
    padding: var(--space-8) 0;
  }

  .legal-main {
    padding: 0;
  }

  .content-area {
    box-shadow: none;
    border: 1px solid var(--border);
  }

  .placeholder-content {
    display: none;
  }
}