/* Legal Pages Styling - Clean & Professional */

body {
  background: #ffffff;
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a1a;
}

/* Header */
.legal-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 2rem 0;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.98);
}

.legal-header .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: block;
}

.back-link {
  color: #666666;
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
  font-weight: 400;
  padding: 0.5rem 0;
}

.back-link:hover {
  color: #1a1a1a;
}

.legal-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  line-height: 1.2;
}

.last-updated {
  color: #666666;
  font-size: 0.875rem;
  font-weight: 400;
}

/* Content */
.legal-content {
  padding: 3rem 0 4rem;
  background: #ffffff;
}

.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: block;
}

/* Summary Box - Clean */
.summary-box {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-left: 3px solid #1a1a1a;
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.summary-box h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.summary-box p {
  color: #4a4a4a;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.summary-box ul {
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.summary-box li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  padding-left: 1.5rem;
  position: relative;
  color: #1a1a1a;
}

.summary-box li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #1a1a1a;
  font-weight: 400;
}

/* Sections */
section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

section:last-of-type {
  margin-bottom: 2rem;
}

section h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  color: #1a1a1a;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e5e5;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

section h2:first-of-type {
  margin-top: 0;
}

section h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

section p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #4a4a4a;
  font-size: 1rem;
}

section p:last-child {
  margin-bottom: 0;
}

section ul {
  margin: 1rem 0;
  padding-left: 0;
  line-height: 1.75;
  list-style-type: none;
}

section ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
  color: #4a4a4a;
}

section ul li::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  color: #1a1a1a;
  font-weight: 400;
  font-size: 1em;
  line-height: 1.4;
}

section li strong {
  color: #1a1a1a;
  font-weight: 600;
}

section ul li:last-child {
  margin-bottom: 0;
}

/* Alerts - Clean & Professional */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
  border-left: 3px solid #1a1a1a;
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-left: 3px solid #1a1a1a;
  line-height: 1.7;
}

.alert strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.alert-primary {
  border-left-color: #1a1a1a;
  background: #f9f9f9;
}

.alert-info {
  border-left-color: #1a1a1a;
  background: #f9f9f9;
}

.alert-success {
  border-left-color: #1a1a1a;
  background: #f9f9f9;
}

.alert-warning {
  border-left-color: #1a1a1a;
  background: #f9f9f9;
}

.alert p {
  color: #4a4a4a;
  margin: 0.5rem 0 0 0;
}

/* Cards - Clean */
.card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  font-weight: 600;
}

.card p {
  margin: 0.5rem 0 0 0;
  color: #4a4a4a;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Links */
.legal-content a {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-color: #999999;
  text-underline-offset: 2px;
  font-weight: 400;
  transition: all 0.2s ease;
}

.legal-content a:hover {
  color: #000000;
  text-decoration-color: #1a1a1a;
}

.legal-content a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Footer */
.legal-content + footer {
  margin-top: 4rem;
}

.legal-content + footer .container {
  max-width: 800px;
  margin: 0 auto;
  display: block;
}

/* Print Styles */
@media print {
  .legal-header {
    position: static;
    box-shadow: none;
  }
  
  .back-link {
    display: none;
  }
  
  .summary-box {
    break-inside: avoid;
  }
  
  section {
    break-inside: avoid;
  }
}

/* Mobile First - Responsive Design */
@media (max-width: 768px) {
  .legal-header {
    padding: 1.25rem 0;
    margin-bottom: 0;
  }
  
  .legal-header .container {
    padding: 0 1rem;
  }
  
  .legal-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.375rem;
  }
  
  .back-link {
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
  }
  
  .last-updated {
    font-size: 0.8125rem;
  }
  
  .legal-content {
    padding: 1.5rem 0 3rem;
  }
  
  .legal-content .container {
    padding: 0 1rem;
  }
  
  .summary-box {
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left-width: 3px;
  }
  
  .summary-box h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .summary-box p {
    font-size: 0.9375rem;
  }
  
  .summary-box li {
    font-size: 0.9375rem;
    padding-left: 1.25rem;
    margin-bottom: 0.625rem;
  }
  
  section {
    margin-bottom: 2.5rem;
  }
  
  section h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
    border-bottom-width: 2px;
  }
  
  section h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.875rem;
  }
  
  section p {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    line-height: 1.7;
  }
  
  section ul {
    margin: 0.875rem 0;
  }
  
  section ul li {
    font-size: 0.9375rem;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
  }
  
  .alert {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-left-width: 3px;
  }
  
  .alert strong {
    font-size: 0.875rem;
  }
  
  .card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .card h3 {
    font-size: 1rem;
  }
  
  .card p {
    font-size: 0.875rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .legal-header h1 {
    font-size: 1.5rem;
  }
  
  section h2 {
    font-size: 1.375rem;
  }
  
  section h3 {
    font-size: 1.0625rem;
  }
  
  .summary-box {
    padding: 1.25rem;
  }
  
  .alert {
    padding: 0.875rem 1rem;
  }
  
  .card {
    padding: 1rem;
  }
}
