/* ============================================
   ResekcjaZoladka.pl – Custom Styles
   (Bootstrap 5 overrides + project tokens)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --primary: #0f172a;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --action-blue: #3b82f6;
  --action-blue-hover: #2563eb;
  --accent-foreground: #ffffff;
  --gold: #f59e0b;
  --gold-light: #fef9ec;
  --surface: #f8fafc;
  --destructive: #ef4444;
  --radius: 0.75rem;
  --navy: #0f172a;
}

/* ── Base ── */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.025em;
  color: var(--foreground);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Container (match Tailwind max-w 1280px + 1.5rem padding) ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Utility classes ── */
.text-action-blue {
  color: var(--action-blue) !important;
}

.text-muted-fg {
  color: var(--muted-foreground) !important;
}

.text-foreground {
  color: var(--foreground) !important;
}

.text-gold {
  color: var(--gold) !important;
}

.text-destructive {
  color: var(--destructive) !important;
}

.text-primary-fg {
  color: var(--primary-foreground) !important;
}

.text-accent-fg {
  color: var(--accent-foreground) !important;
}

.bg-surface {
  background-color: var(--surface) !important;
}

.bg-background {
  background-color: var(--background) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

.bg-action-blue {
  background-color: var(--action-blue) !important;
}

.bg-gold-light {
  background-color: var(--gold-light) !important;
}

.border-subtle {
  border-color: rgba(226, 232, 240, 0.5) !important;
}

/* ── Shadow Premium ── */
.shadow-premium {
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 10px 40px -10px rgba(15, 23, 42, 0.08);
}

.shadow-premium-lg {
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 20px 60px -15px rgba(15, 23, 42, 0.12);
}

/* ── Buttons ── */
.btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--action-blue);
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-blue:hover {
  background: var(--action-blue-hover);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
  color: #fff;
}

.btn-blue-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  color: var(--foreground);
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-light:hover {
  background: var(--secondary);
  color: var(--foreground);
}

/* ── Navbar ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.site-header .navbar {
  padding-top: 0;
  padding-bottom: 0;
  min-height: 64px;
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.site-header .navbar-brand img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.site-header .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground) !important;
  transition: color 0.2s;
  padding: 0.5rem 0 !important;
  margin: 0 1rem;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--action-blue) !important;
}

.site-header .navbar-toggler {
  border: none;
  box-shadow: none !important;
}

.site-header .navbar-toggler:focus {
  outline: none;
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.8));
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--action-blue);
  margin-bottom: 1.5rem;
}

/* ── Floating card (hero) ── */
.floating-card {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.5);
  padding: 1.25rem;
  max-width: 220px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ── Cards ── */
.card-premium {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  background: var(--background);
  overflow: hidden;
  transition: all 0.25s;
}

.card-premium:hover {
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 20px 60px -15px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-3px);
}

/* ── Testimonial Card ── */
.testimonial-card {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  background: var(--background);
  padding: 1.5rem;
  transition: all 0.25s;
}

.testimonial-card:hover {
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 20px 60px -15px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

/* ── Trusted Badge ── */
.trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  white-space: nowrap;
}

.trusted-badge.sm {
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
}

/* ── Clinic Card ── */
.clinic-card {
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  background: var(--background);
  overflow: hidden;
  transition: all 0.25s;
  color: inherit;
}

.clinic-card:hover {
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 20px 60px -15px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
  color: inherit;
}

.clinic-card:hover .clinic-card-name {
  color: var(--action-blue);
}

.clinic-card .clinic-card-body {
  padding: 1rem 1.25rem;
}

.clinic-card .clinic-avatar {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--action-blue);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clinic-card .clinic-card-name {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  transition: color 0.2s;
}

.clinic-card .clinic-card-arrow {
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--action-blue);
}

.clinic-card:hover .clinic-card-arrow {
  opacity: 1;
}

/* Specialization pills */
.pill {
  display: inline-block;
  border-radius: 9999px;
  background: var(--secondary);
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--secondary-foreground);
  white-space: nowrap;
}

.pill-sm {
  font-size: 0.6875rem;
  padding: 0.375rem 0.75rem;
}

/* ── Filter bar ── */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 1040;
  background: var(--background);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: none;
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.filter-pill:hover {
  background: rgba(241, 245, 249, 0.8);
}

.filter-pill.active {
  background: var(--action-blue);
  color: #fff;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--action-blue);
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
}

.filter-tag button {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

/* ── Search input ── */
.search-input {
  width: 100%;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.625rem 1rem 0.625rem 2.25rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--action-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-input::placeholder {
  color: var(--muted-foreground);
}

.search-wrapper {
  position: relative;
}

.search-wrapper .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}

/* ── View toggle ── */
.view-toggle {
  display: flex;
  border-radius: 9999px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.view-toggle button {
  padding: 0.625rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.view-toggle button.active {
  background: var(--action-blue);
  color: #fff;
}

/* ── Expanded filters panel ── */
.filters-panel {
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.filters-panel label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.filters-panel select {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  color: var(--foreground);
}

/* ── Tabs ── */
.clinic-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.clinic-tabs button {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.clinic-tabs button:hover {
  color: var(--foreground);
}

.clinic-tabs button.active {
  color: var(--action-blue);
  border-bottom-color: var(--action-blue);
}

/* ── Info panels ── */
.info-panel {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  padding: 1.5rem;
}

/* ── CTA dark section ── */
.cta-dark {
  border-radius: 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-dark h2 {
  color: var(--primary-foreground);
}

.cta-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.cta-dark .cta-blob-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  filter: blur(48px);
  transform: translate(33%, -50%);
}

.cta-dark .cta-blob-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12rem;
  height: 12rem;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 50%;
  filter: blur(48px);
  transform: translate(-33%, 50%);
}

/* ── Sidebar CTA card ── */
.sidebar-cta {
  border-radius: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1.5rem;
  position: sticky;
  top: 96px;
}

.sidebar-cta h3 {
  color: var(--primary-foreground);
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Wizard ── */
.wizard-progress {
  height: 6px;
  border-radius: 9999px;
  background: var(--secondary);
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: var(--action-blue);
  transition: width 0.3s;
}

.wizard-option {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-option:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.wizard-option.selected {
  border-color: var(--action-blue);
  background: rgba(59, 130, 246, 0.05);
  color: var(--action-blue);
}

.wizard-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: all 0.2s;
}

.wizard-input:focus {
  border-color: var(--action-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.wizard-input::placeholder {
  color: var(--muted-foreground);
}

.wizard-result-box {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  background: var(--surface);
  padding: 2rem;
  text-align: center;
}

.wizard-info-box {
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.wizard-info-box.qualify {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.wizard-info-box.no-qualify {
  background: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ── How It Works steps ── */
.how-step {
  position: relative;
  padding-left: 4rem;
  padding-bottom: 3rem;
}

.how-step:last-child {
  padding-bottom: 0;
}

.how-step .step-line {
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.how-step:last-child .step-line {
  display: none;
}

.how-step .step-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--action-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FAQ ── */
.faq-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  background: var(--background);
  padding: 1.25rem;
}

/* ── Reviews ── */
.review-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  padding: 1.25rem;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-foreground);
  flex-shrink: 0;
}

.stars {
  color: var(--gold);
}

.stars .empty {
  color: var(--border);
}

/* ── Staff card ── */
.staff-card {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  padding: 1.25rem;
}

.staff-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--action-blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Article ── */
.article-link {
  display: block;
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  background: var(--background);
  padding: 1.25rem 1.5rem;
  transition: all 0.25s;
  color: inherit;
}

.article-link:hover {
  border-color: rgba(59, 130, 246, 0.2);
  color: inherit;
}

.article-link:hover h2 {
  color: var(--action-blue);
}

.article-link h2 {
  transition: color 0.2s;
}

.article-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.article-content li {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-left: 1rem;
  margin-bottom: 0.25rem;
}

.article-content .table-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  padding: 0.375rem 0;
}

.article-content .table-row span:first-child {
  font-weight: 500;
  color: var(--foreground);
}

.article-content .table-row span:last-child {
  color: var(--muted-foreground);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  background: var(--surface);
}

.site-footer a {
  color: var(--muted-foreground);
  transition: color 0.2s;
  font-size: 0.875rem;
}

.site-footer a:hover {
  color: var(--action-blue);
}

/* ── Map ── */
.map-container {
  height: calc(100vh - 160px);
  position: relative;
}

.map-container #map {
  height: 100%;
  width: 100%;
}

.map-sidebar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--background);
  max-height: 40vh;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .map-sidebar {
    left: 1rem;
    top: 1rem;
    bottom: 1rem;
    right: auto;
    width: 380px;
    max-height: none;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.5);
  }
}

.map-sidebar-item {
  display: block;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: background 0.15s;
  color: inherit;
}

.map-sidebar-item:hover {
  background: rgba(241, 245, 249, 0.5);
  color: inherit;
}

.map-sidebar-item.active {
  background: rgba(59, 130, 246, 0.05);
  border-left: 2px solid var(--action-blue);
}

.map-tiles-light {
  filter: saturate(0.3) brightness(1.1) contrast(0.9);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

.animate-delay-5 {
  animation-delay: 0.5s;
}

.animate-delay-6 {
  animation-delay: 0.6s;
}

/* Scroll reveal – initially hidden, shown by JS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Pulse emoji ── */
@keyframes pulse-scale {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.pulse-emoji {
  animation: pulse-scale 2s ease-in-out infinite;
}

/* ── Misc ── */
.icon-blue {
  color: var(--action-blue);
}

.quote-icon {
  color: rgba(59, 130, 246, 0.3);
}

.testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--action-blue);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--action-blue);
  margin-bottom: 1.25rem;
}

/* MediRaty box */
.mediraty-box {
  border-radius: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: var(--gold-light);
  padding: 1.5rem;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  font-family: 'Inter', sans-serif !important;
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
  .hero-section .py-lg {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (min-width: 992px) {
  .cta-dark {
    padding: 4rem;
  }
}

/* Fix for bootstrap: remove xs gutter override */
.g-custom {
  --bs-gutter-x: 1.5rem;
}

/* ── Legal Pages ── */
.legal-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.legal-content ul,
.legal-content ol {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.375rem;
}

.legal-content a {
  color: var(--action-blue);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--action-blue-hover);
}

.legal-content strong {
  color: var(--foreground);
}

/* ── Consent Checkboxes ── */
.consent-group {
  margin-top: 1rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.15s;
}

.consent-label:hover {
  border-color: var(--action-blue);
}

.consent-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--action-blue);
  cursor: pointer;
}

.consent-label a {
  color: var(--action-blue);
  text-decoration: underline;
}

.consent-label a:hover {
  color: var(--action-blue-hover);
}