/* ─── UBIQCURE content pages — designed shell (Bootstrap chrome + tw-* optional) ─── */
:root {
  --uc-brand-1: #667eea;
  --uc-brand-2: #764ba2;
  --uc-brand-deep: #4c1d95;
  --uc-surface: #ffffff;
  --uc-surface-soft: rgba(255, 255, 255, 0.72);
  --uc-border: rgba(102, 126, 234, 0.18);
  --uc-text: #1e293b;
  --uc-muted: #64748b;
  --uc-radius: 14px;
  --uc-radius-lg: 18px;
  --uc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --uc-shadow-md: 0 8px 24px rgba(76, 29, 149, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  --uc-shadow-hover: 0 12px 32px rgba(102, 126, 234, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
}

body.uc-home-chrome.uc-content-minimal {
  position: relative;
  isolation: isolate;
  background: linear-gradient(165deg, #f8f7ff 0%, #f1f5f9 42%, #eef2ff 100%);
  color: var(--uc-text);
}

/* Soft ambient orbs (non-interactive) */
body.uc-content-minimal::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 100% 80% at 10% -30%, rgba(102, 126, 234, 0.2), transparent 55%),
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(118, 75, 162, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(99, 102, 241, 0.06), transparent 45%);
}

.uc-content-minimal footer {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  padding-bottom: 1.25rem;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12) inset;
}
@media (min-width: 768px) {
  .uc-content-minimal footer {
    margin-top: 2.75rem;
  }
}

/* ─── Hero (scrolls with page — navbar stays fixed via home-about-chrome.css) ─── */
.uc-page-hero {
  --uc-hero-pad-y: 1rem;
  position: relative;
  z-index: 1;
  padding: var(--uc-hero-pad-y) 0;
  border-bottom: 1px solid var(--uc-border);
  background: var(--uc-surface-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@media (min-width: 640px) {
  .uc-page-hero {
    --uc-hero-pad-y: 1.15rem;
  }
}

.uc-page-hero--brand {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(238, 242, 255, 0.88) 45%,
    rgba(245, 243, 255, 0.92) 100%
  );
  border-bottom: 1px solid rgba(102, 126, 234, 0.22);
  box-shadow: 0 4px 24px rgba(76, 29, 149, 0.06);
}

.uc-page-hero--brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--uc-brand-1), var(--uc-brand-2), #a78bfa);
  opacity: 0.85;
  pointer-events: none;
}

.uc-page-hero h1 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.35rem 0;
  color: var(--uc-brand-deep);
}

.uc-page-hero--brand h1 {
  color: var(--uc-brand-deep);
  background: linear-gradient(120deg, var(--uc-brand-deep) 0%, var(--uc-brand-1) 45%, var(--uc-brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  .uc-page-hero--brand h1 {
    -webkit-text-fill-color: unset;
    color: var(--uc-brand-deep);
    background: none;
  }
}

.uc-page-hero .uc-page-hero-sub {
  font-size: 0.875rem;
  color: var(--uc-muted);
  margin: 0;
  line-height: 1.5;
  max-width: 40rem;
  font-weight: 500;
}

.uc-page-hero--brand .uc-page-hero-sub {
  color: #475569;
}

.uc-page-hero.uc-page-hero--center .uc-page-hero-sub {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Main rhythm ─── */
body.uc-content-minimal main {
  position: relative;
  z-index: 1;
}

/* ─── Cards / panels ─── */
.legal-card,
.about-card {
  position: relative;
  background: var(--uc-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--uc-radius-lg);
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--uc-shadow-md);
  transition: box-shadow 0.25s ease, border-color 0.2s ease, transform 0.2s ease;
}

.legal-card::before,
.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--uc-radius-lg) var(--uc-radius-lg) 0 0;
  background: linear-gradient(90deg, var(--uc-brand-1), var(--uc-brand-2), #a78bfa);
  opacity: 0.7;
  pointer-events: none;
}

.legal-card:hover,
.about-card:hover {
  box-shadow: var(--uc-shadow-hover);
  border-color: rgba(102, 126, 234, 0.25);
}

@media (min-width: 640px) {
  .legal-card,
  .about-card {
    padding: 1.2rem 1.35rem;
    margin-bottom: 0.85rem;
  }
}

.legal-card h2,
.about-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--uc-brand-deep);
  margin: 0 0 0.65rem 0;
  line-height: 1.3;
}

.legal-card h3,
.about-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  margin: 0.75rem 0 0.35rem 0;
}

.legal-card p,
.legal-card li,
.about-card p,
.about-card li {
  font-size: 0.9rem;
  line-height: 1.62;
  color: #334155;
  margin-bottom: 0.55rem;
}

.legal-card p:last-child,
.legal-card ul:last-child,
.about-card p:last-child {
  margin-bottom: 0;
}

.legal-muted {
  font-size: 0.82rem;
  color: var(--uc-muted);
  line-height: 1.55;
}

.legal-list li,
.about-list li {
  margin-bottom: 0.35rem;
}

.legal-caps {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.45;
}

/* ─── Tables ─── */
.table.legal-table,
.table.about-table {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0;
}

.legal-table {
  font-size: 0.78rem;
}
@media (min-width: 640px) {
  .legal-table {
    font-size: 0.8125rem;
  }
}

.legal-table th {
  background: linear-gradient(180deg, #f1f5ff 0%, #e8eef9 100%);
  font-weight: 700;
  color: #334155;
  vertical-align: top;
}

.legal-table td,
.legal-table th {
  padding: 0.5rem 0.6rem;
  border-color: rgba(226, 232, 240, 0.95);
  vertical-align: top;
}

.legal-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.65);
}

.about-table {
  font-size: 0.78rem;
}
@media (min-width: 640px) {
  .about-table {
    font-size: 0.8125rem;
  }
}
.about-table th {
  background: linear-gradient(180deg, #f1f5ff 0%, #e8eef9 100%);
  font-weight: 700;
}

/* ─── Emergency ─── */
.emergency-banner {
  position: relative;
  border-radius: var(--uc-radius);
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  padding: 0.85rem 1rem;
  color: #7f1d1d;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.08);
}

.emergency-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--uc-radius) 0 0 var(--uc-radius);
  background: linear-gradient(180deg, #f87171, #dc2626);
}

.emergency-banner h2,
.emergency-banner .h6 {
  font-size: 0.82rem;
  font-weight: 800;
}

/* ─── Details / disclosure ─── */
.uc-details {
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--uc-radius-lg);
  margin-bottom: 0.55rem;
  background: var(--uc-surface);
  box-shadow: var(--uc-shadow-md);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

.uc-details:hover {
  border-color: rgba(102, 126, 234, 0.22);
  box-shadow: var(--uc-shadow-hover);
}

.uc-details[open] {
  border-color: rgba(102, 126, 234, 0.35);
  box-shadow: 0 8px 28px rgba(102, 126, 234, 0.12), var(--uc-shadow-sm);
}

.uc-details[open]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--uc-brand-1), var(--uc-brand-2));
}

.uc-details summary {
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  user-select: none;
  background: linear-gradient(90deg, rgba(248, 250, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
  transition: background 0.2s ease;
}

.uc-details summary:hover {
  background: linear-gradient(90deg, rgba(238, 242, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.uc-details[open] summary {
  color: var(--uc-brand-deep);
  background: linear-gradient(90deg, rgba(238, 242, 255, 0.98) 0%, rgba(250, 245, 255, 0.5) 100%);
}

.uc-details summary::-webkit-details-marker {
  display: none;
}

.uc-details summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--uc-brand-1);
  border-bottom: 2px solid var(--uc-brand-2);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-top: -0.2rem;
  opacity: 0.85;
}

.uc-details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.05rem;
}

.uc-details .uc-details-body {
  padding: 0 1.1rem 1rem;
  border-top: 1px solid rgba(241, 245, 249, 0.95);
}

.uc-details .uc-details-body p,
.uc-details .uc-details-body li {
  font-size: 0.9rem;
  line-height: 1.62;
  color: #334155;
  margin-bottom: 0.5rem;
}

.uc-details .uc-details-body h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  margin: 0.65rem 0 0.3rem;
}

/* ─── Contact accordion ─── */
.uc-contact-acc {
  border: none;
  gap: 0;
}

.uc-contact-acc .accordion-item {
  border-radius: var(--uc-radius-lg) !important;
  overflow: hidden;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  background: var(--uc-surface);
  box-shadow: var(--uc-shadow-md);
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

.uc-contact-acc .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(102, 126, 234, 0.35) !important;
  box-shadow: 0 8px 28px rgba(102, 126, 234, 0.12), var(--uc-shadow-sm);
}

.uc-contact-acc .accordion-button {
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: none !important;
  color: #334155;
  background: linear-gradient(90deg, rgba(248, 250, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.uc-contact-acc .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.98) 0%, rgba(250, 245, 255, 0.85) 100%);
  color: var(--uc-brand-deep);
}

.uc-contact-acc .accordion-button::after {
  filter: hue-rotate(-15deg) saturate(1.2);
}

.uc-contact-acc .accordion-body {
  padding: 1rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.58;
  color: #334155;
  background: rgba(255, 255, 255, 0.7);
}

/* ─── FAQ nested accordions ─── */
.uc-faq-wrap .accordion-item {
  border-radius: 12px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: var(--uc-shadow-sm);
}

.uc-faq-wrap .accordion-button {
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.uc-faq-wrap .accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, rgba(238, 242, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);
  color: var(--uc-brand-deep);
}

/* ─── Primary actions on content pages ─── */
.uc-content-minimal .btn-primary {
  background: linear-gradient(135deg, var(--uc-brand-1) 0%, var(--uc-brand-2) 100%);
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.uc-content-minimal .btn-primary:hover,
.uc-content-minimal .btn-primary:focus {
  background: linear-gradient(135deg, #5a6fd6 0%, #6b4190 100%);
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(102, 126, 234, 0.45);
}

.uc-content-minimal .btn-outline-secondary {
  border-color: rgba(100, 116, 139, 0.35);
  font-weight: 600;
}

.uc-content-minimal .btn-outline-secondary:hover {
  border-color: var(--uc-brand-1);
  color: var(--uc-brand-deep);
  background: rgba(238, 242, 255, 0.8);
}

/* ─── Compact, readable forms (Contact / Patient Support) ─── */
.uc-content-minimal .uc-form {
  font-size: 1rem;
}

.uc-form-group {
  background: linear-gradient(145deg, rgba(248, 250, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
  border: 1px solid rgba(102, 126, 234, 0.14);
  border-radius: var(--uc-radius-lg);
  padding: 0.85rem 1rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 12px rgba(76, 29, 149, 0.04);
}
@media (min-width: 768px) {
  .uc-form-group {
    padding: 0.9rem 1.15rem 1.05rem;
  }
}

.uc-form-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--uc-brand-deep);
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(102, 126, 234, 0.35);
}

.uc-content-minimal .uc-form .form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.uc-content-minimal .uc-form .form-control,
.uc-content-minimal .uc-form .form-select {
  font-size: 1rem;
  line-height: 1.45;
  padding: 0.5rem 0.85rem;
  border-radius: 11px;
  border: 1px solid rgba(148,163,184,0.55);
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.uc-content-minimal .uc-form .form-control:hover,
.uc-content-minimal .uc-form .form-select:hover {
  border-color: rgba(102, 126, 234, 0.45);
}

.uc-content-minimal .uc-form .form-control:focus,
.uc-content-minimal .uc-form .form-select:focus {
  border-color: var(--uc-brand-1);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.22);
}

.uc-content-minimal .uc-form textarea.form-control {
  min-height: 5.5rem;
  max-height: 14rem;
  resize: vertical;
  line-height: 1.5;
}

.uc-content-minimal .uc-form .form-text {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.uc-content-minimal .uc-form .form-check {
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 11px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  margin-bottom: 0;
}

.uc-content-minimal .uc-form .form-check-input {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.2em;
}

.uc-content-minimal .uc-form .form-check-label {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
  padding-left: 0.25rem;
}

.uc-content-minimal .uc-form .uc-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.uc-content-minimal .uc-form .btn-primary {
  padding: 0.55rem 1.35rem;
  font-size: 1rem;
}

.uc-form-lead {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 11px;
  border: 1px dashed rgba(102, 126, 234, 0.35);
}

.uc-form-group--footer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.35rem 0 0 !important;
  margin-bottom: 0 !important;
}

.uc-form-group--footer .form-check {
  margin-bottom: 0.75rem;
}

.uc-form-sla-heading {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--uc-brand-deep);
}

.uc-form-page-title .bi {
  color: var(--uc-brand-1);
  vertical-align: -0.08em;
}

.uc-content-minimal .uc-form input[type="file"].form-control {
  padding: 0.45rem 0.8rem;
  font-size: 0.95rem;
}

/* ─── Long legal pages: sidebar TOC + wider column (terms, privacy) ─── */
.uc-legal-shell {
  display: grid;
  gap: 1.25rem;
  max-width: min(1200px, 96vw);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem clamp(0.75rem, 2vw, 1.25rem) 2.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .uc-legal-shell {
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
    gap: 1.75rem 2rem;
    padding-top: 1.25rem;
  }
}

.uc-legal-body {
  min-width: 0;
}

/* Anchor scroll offset under fixed navbar */
.uc-legal-shell .uc-details,
.uc-legal-shell .legal-card[id$="-intro"] {
  scroll-margin-top: 5.5rem;
}

.uc-legal-toc {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.15rem 0.25rem 0.25rem 0;
}

.uc-legal-toc::-webkit-scrollbar {
  width: 6px;
}
.uc-legal-toc::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.35);
  border-radius: 99px;
}

.uc-legal-toc-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.92) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--uc-radius-lg);
  padding: 1rem 0.85rem;
  box-shadow: var(--uc-shadow-md);
}

.uc-legal-toc-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--uc-brand-deep);
  margin: 0 0 0.65rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(102, 126, 234, 0.28);
}

.uc-legal-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uc-legal-toc li {
  margin: 0;
  padding: 0;
}

.uc-legal-toc a {
  display: block;
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #475569;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.uc-legal-toc a:hover {
  background: rgba(238, 242, 255, 0.95);
  color: var(--uc-brand-deep);
  border-color: rgba(102, 126, 234, 0.15);
}

.uc-legal-toc a:focus-visible {
  outline: 2px solid var(--uc-brand-1);
  outline-offset: 2px;
}

/* Slightly larger prose in the main legal column on wide screens */
@media (min-width: 992px) {
  .uc-legal-body .legal-card p,
  .uc-legal-body .legal-card li,
  .uc-legal-body .uc-details .uc-details-body p,
  .uc-legal-body .uc-details .uc-details-body li {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .uc-legal-body .uc-details summary {
    font-size: 1rem;
  }
}

/* Mobile: full-width band so the page doesn’t feel like a thin stripe */
@media (max-width: 991.98px) {
  .uc-legal-shell {
    max-width: 100%;
  }
}
