/* HIPAA Privacy Notice Styles - Match Privacy Policy Look */
.hipaa-privacy-notice-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(16px, 1rem + 0.25vw, 18px);
  line-height: 1.8;
  color: #111;
  background-color: #ffffff;
}

.hipaa-privacy-notice-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hipaa-privacy-notice-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.95;
}

.effective-date {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.95;
}

.hipaa-privacy-notice-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.notice-section {
  background: #fff;
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef1f4;
  position: relative;
  transition: box-shadow 0.2s ease;
}

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

.notice-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #e5e7eb;
  border-radius: 12px 12px 0 0;
}

.notice-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #eceff1;
  position: relative;
}

.notice-section h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: #e5e7eb;
}

.notice-section h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #111;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid #e5e7eb;
}

.notice-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4a5568;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.notice-section p {
  margin-bottom: 1.2rem;
  color: inherit;
  font-size: 1em;
  text-align: justify;
}

.notice-section ul {
  margin: 1.2rem 0;
  padding-left: 2rem;
}

.notice-section li {
  margin-bottom: 0.8rem;
  color: inherit;
  font-size: 1em;
  line-height: 1.6;
}

.notice-section li::marker {
  color: #666;
  font-weight: bold;
}

.contact-info {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  border: 1px solid #e5e7eb;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.contact-info h3 {
  color: #111;
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  border: none;
  padding: 0;
}

.contact-info p {
  margin-bottom: 0.8rem;
  font-size: 1em;
  line-height: 1.6;
}

.contact-info strong {
  color: #111;
  font-weight: 600;
}

.complaint-options { margin: 1.5rem 0; }
.complaint-options h3 { color: #111; font-size: 1.2rem; margin: 1.5rem 0 1rem; padding-left: 0; border-left: none; }

.important-notice {
  background: #fff7ed;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  color: #92400e;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.final-contact {
  background: #f0f9ff;
  border: 1px solid #e5e7eb;
  color: #0c4a6e;
}

.final-contact strong { color: #0c4a6e; }

.effective-date-footer {
  text-align: center;
  background: #ffffff;
  color: #111;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.effective-date-footer p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Scoped Links */
.hipaa-privacy-notice-container a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(0, 0, 0, 0.4);
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hipaa-privacy-notice-container a:hover {
  color: #000;
  text-decoration-color: currentColor;
}

.hipaa-privacy-notice-container a[target="_blank"]::after {
  content: " \2197";
  font-size: 0.8em;
  opacity: 0.5;
}

/* Better nested list spacing */
.notice-section ul ul { margin-top: 0.4rem; }

/* Anchor offset if used */
.hipaa-privacy-notice-content [id] { scroll-margin-top: 96px; }

/* Enhanced readability */
.notice-section p + ul,
.notice-section ul + p { margin-top: 1.5rem; }

/* Responsive */
@media (max-width: 1024px) {
  .hipaa-privacy-notice-container { padding: 1.5rem; }
  .notice-section { padding: 2rem; }
}

@media (max-width: 768px) {
  .hipaa-privacy-notice-container { padding: 1rem; }
  .hipaa-privacy-notice-header h1 { font-size: 2.3rem; }
  .subtitle { font-size: 1.2rem; }
  .notice-section { padding: 1.5rem; }
  .notice-section h2 { font-size: 1.7rem; }
  .notice-section h3 { font-size: 1.35rem; }
  .notice-section h4 { font-size: 1.15rem; }
  .contact-info { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .hipaa-privacy-notice-container { padding: 0.5rem; }
  .hipaa-privacy-notice-header { padding: 1.5rem; margin-bottom: 2rem; }
  .hipaa-privacy-notice-header h1 { font-size: 1.9rem; letter-spacing: 0.5px; }
  .subtitle { font-size: 1rem; }
  .effective-date { font-size: 1rem; }
  .notice-section { padding: 1rem; margin-bottom: 1.5rem; }
  .notice-section h2 { font-size: 1.5rem; }
  .notice-section h3 { font-size: 1.25rem; margin-top: 1.5rem; }
  .notice-section ul { padding-left: 1.5rem; }
  .contact-info { padding: 1rem; }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .hipaa-privacy-notice-container,
  .hipaa-privacy-notice-header,
  .notice-section,
  .contact-info,
  .effective-date-footer {
    background: #ffffff !important;
    color: #111 !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  }

  .notice-section h2,
  .notice-section h3,
  .contact-info h3,
  .contact-info strong { color: #111 !important; }

  .notice-section h3 { border-left-color: #e5e7eb !important; }

  .hipaa-privacy-notice-container a {
    color: #111 !important;
    text-decoration-color: rgba(0,0,0,0.4) !important;
  }
  .hipaa-privacy-notice-container a:hover {
    color: #000 !important;
    text-decoration-color: currentColor !important;
  }
}

/* Print */
@media print {
  .hipaa-privacy-notice-container { max-width: 100%; padding: 0; background: #fff !important; color:#000; }
  .hipaa-privacy-notice-header,
  .effective-date-footer,
  .contact-info { box-shadow: none !important; background:#fff !important; color:#000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .notice-section { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  .notice-section::before { display: none; }
  .hipaa-privacy-notice-container a[href^="http"]::after { content: " (" attr(href) ")"; font-weight: normal; }
}
