/* Patient Portal — legal / privacy policy page */
.patient-legal-policy-page .patient-legal-policy-content {
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom)) !important;
  max-width: 640px;
  margin-inline: auto;
}

.patient-legal-policy-page .patient-page-header__title {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.patient-legal-updated {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: var(--patient-muted, #94a3b8);
  line-height: 1.4;
}

.patient-legal-card {
  display: grid;
  gap: 1.15rem;
  padding: 16px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.patient-legal-section {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.patient-legal-section + .patient-legal-section {
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.patient-legal-section h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  color: var(--patient-text, #f9fafb);
  letter-spacing: -0.01em;
}

.patient-legal-section p,
.patient-legal-section li {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--patient-muted-light, #c5d0e0);
}

.patient-legal-section ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.patient-legal-link {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.patient-legal-link:hover {
  color: #bfdbfe;
}

.patient-legal-actions {
  margin-top: 8px;
}

.patient-legal-actions .patient-profile-settings-btn {
  width: 100%;
  text-align: left;
}

.patient-legal-actions .patient-profile-settings-btn + .patient-profile-settings-btn {
  margin-top: 8px;
}

html[data-theme="light"] .patient-legal-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .patient-legal-section + .patient-legal-section {
  border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .patient-legal-section h2 {
  color: #0f172a;
}

html[data-theme="light"] .patient-legal-section p,
html[data-theme="light"] .patient-legal-section li {
  color: #334155;
}
