/* Modern, Accessible Policy Pages Design */
/* Color Palette: Blue theme with high contrast for readability */

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #f5f7fa;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1e293b;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #334155;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #475569;
}

p {
  margin-bottom: 1rem;
  color: #334155;
  line-height: 1.7;
}

/* Links */
a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.2);
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.hero > p {
  color: #e0e7ff;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero a {
  color: #ffffff;
  text-decoration: underline;
  opacity: 0.9;
  font-weight: 500;
}

.hero a:hover {
  color: #ffffff;
  opacity: 1;
  text-decoration: underline;
}

.hero .meta {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .meta > div {
  color: #ffffff;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Page Container */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

@media (min-width: 768px) {
  .page {
    padding: 3rem 2rem 4rem;
  }
}

/* Card Grid (Landing Page) */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 2rem;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  color: #1e293b;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.card h2 {
  color: #1e40af;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: #64748b;
  margin-bottom: 1rem;
}

.card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #2563eb;
  font-weight: 600;
}

.card a:hover {
  color: #1d4ed8;
}

/* Content Sections */
.section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section h2 {
  color: #1e40af;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.section h3 {
  color: #334155;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.section p {
  color: #475569;
  line-height: 1.75;
}

.section strong {
  color: #1e293b;
  font-weight: 600;
}

/* Lists */
ul, ol {
  margin: 1rem 0;
  padding-left: 1.75rem;
  color: #475569;
}

li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: #475569;
}

li::marker {
  color: #3b82f6;
}

/* Meta Information */
.meta {
  font-size: 0.9rem;
  color: #64748b;
  margin: 1rem 0;
  line-height: 1.6;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.95rem;
  color: #64748b;
  text-align: center;
}

.footer p {
  margin-bottom: 0.5rem;
  color: #64748b;
}

.footer a {
  color: #2563eb;
  margin: 0 0.5rem;
}

.footer a:hover {
  color: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page {
    padding: 1.5rem 1rem 2rem;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section {
    padding: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.15rem;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  .hero {
    background: #1e40af;
    box-shadow: none;
  }

  .section {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    page-break-inside: avoid;
  }

  a {
    color: #1e40af;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}
