/* policies.css - Modern Card Style with Hover Effects */
/* Shared styles for all policy pages - Privacy, Terms, Donor, Volunteer, etc. */

.policy-container {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 24px;
  font-family: inherit;
}

/* Header Section */
.policy-header {
  margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #fef9e8 100%);
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  border-left: 6px solid #0e6e2e;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.policy-header:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.policy-header h1 {
  font-size: 2.2rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1e293b, #0e6e2e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.last-updated {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1rem;
  font-style: italic;
  display: inline-block;
  padding: 0.25rem 1rem;
  background: #e2e8f0;
  border-radius: 20px;
}

.policy-intro {
  font-size: 1.05rem;
  background: #fffaf0;
  padding: 1.25rem;
  border-radius: 16px;
  border-left: 4px solid #0e6e2e;
  color: #334155;
  margin-top: 1rem;
  line-height: 1.7;
}

/* Each policy section as a card */
.policy-section {
  background: #ffffff;
  margin-bottom: 1.8rem;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

/* Hover effect for each section card */
.policy-section:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
  border-color: #fed7aa;
  background: linear-gradient(105deg, #ffffff 0%, #fffaf5 100%);
}

/* Subtle accent line on hover */
.policy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #0e6e2e;
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.policy-section:hover::before {
  transform: scaleY(1);
}

.policy-section h2 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Optional: Add emoji or icon before headings (can be customized) */
.policy-section h2::before {
  content: "▪️";
  color: #0e6e2e;
  font-size: 1.2rem;
}

.policy-section h3 {
  font-size: 1.2rem;
  color: #334155;
  margin: 1.25rem 0 0.75rem;
  font-weight: 600;
}

.policy-section p {
  margin-bottom: 1rem;
  color: #475569;
  line-height: 1.65;
}

.policy-section ul,
.policy-section ol {
  margin: 0.75rem 0 1rem 1.5rem;
  padding-left: 0.5rem;
}

.policy-section li {
  margin-bottom: 0.6rem;
  color: #475569;
  line-height: 1.6;
  position: relative;
  padding-left: 0.25rem;
}

/* Custom list markers */
.policy-section ul li::marker {
  color: #0e6e2e;
  font-size: 1.1em;
}

.policy-section ol li::marker {
  color: #0e6e2e;
  font-weight: 600;
}

.policy-section a {
  color: #0e6e2e;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted transparent;
  transition: all 0.2s ease;
}

.policy-section a:hover {
  border-bottom-color: #0e6e2e;
  color: #1efd69;
}

/* Contact box styling */
.policy-contact {
  margin-top: 2.8rem;
  padding: 1.8rem 2rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 24px;
  color: #f1f5f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.policy-contact:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.2);
}

.policy-contact h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1efd69;
  font-weight: 700;
}

.policy-contact p {
  margin-bottom: 0.6rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.policy-contact a {
  color: #1efd69;
  text-decoration: none;
  border-bottom: 1px solid #1efd69;
  transition: all 0.2s;
}

.policy-contact a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  .policy-container {
    margin: 1rem;
    padding: 1rem;
  }

  .policy-header {
    padding: 1rem 1.25rem;
  }

  .policy-header h1 {
    font-size: 1.6rem;
  }

  .policy-section {
    padding: 1.25rem 1.25rem;
    margin-bottom: 1.25rem;
  }

  .policy-section h2 {
    font-size: 1.3rem;
  }

  .policy-section h2::before {
    font-size: 1rem;
  }

  .policy-intro {
    font-size: 0.95rem;
    padding: 1rem;
  }

  .policy-section ul,
  .policy-section ol {
    margin-left: 1rem;
  }

  .policy-contact {
    padding: 1.25rem;
  }

  .policy-contact h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .policy-container {
    margin: 0.75rem;
    padding: 0.75rem;
  }

  .policy-header h1 {
    font-size: 1.4rem;
  }

  .policy-section {
    padding: 1rem;
  }

  .policy-section h2 {
    font-size: 1.2rem;
  }

  .policy-section p,
  .policy-section li {
    font-size: 0.9rem;
  }

  .policy-intro {
    font-size: 0.9rem;
  }
}

/* Print styles for legal documentation */
@media print {
  .policy-container {
    margin: 0;
    padding: 0;
    background: white;
  }

  .policy-section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    transform: none;
  }

  .policy-section:hover {
    transform: none;
    box-shadow: none;
  }

  .policy-section::before {
    display: none;
  }

  .policy-contact {
    background: #f0f0f0;
    color: black;
  }

  .policy-contact a {
    color: black;
  }
}