/* ==========================================================================
   MIERNIK AUTO SERVICE UK - DESIGN SYSTEM (CSS)
   Faithfully matching the original design language, dark navy palette & craftsmanship
   ========================================================================== */

:root {
  /* Exact Original Color Palette */
  --bg-darkest: #050d18;
  --bg-dark: #0a1628;
  --bg-card: #0f2038;
  --bg-card-hover: #162b4a;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(236, 127, 19, 0.3);

  /* Original Brand Amber / Orange Accent */
  --accent-amber: #ec7f13;
  --accent-amber-hover: #d96f0b;
  --accent-amber-glow: rgba(236, 127, 19, 0.15);

  --text-main: #ffffff;
  --text-muted: #a8c8e8;
  --text-subtle: #6f8fae;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-amber: 0 4px 20px rgba(236, 127, 19, 0.35);

  --container-max: 1240px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-darkest);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-amber) 0%, #b85c07 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-amber);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: block;
}

.brand-name .accent {
  color: var(--accent-amber);
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-amber);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  font-size: 0.9375rem;
  text-align: center;
}

.btn-sm {
  padding: 0.45rem 1.15rem;
  font-size: 0.8125rem;
}

.btn-primary {
  background: var(--accent-amber);
  color: #fff;
  box-shadow: var(--shadow-amber);
}

.btn-primary:hover {
  background: var(--accent-amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(236, 127, 19, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
}

.btn-outline:hover {
  background: var(--accent-amber);
  color: #fff;
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.text-center { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-amber);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.9rem;
  background: rgba(236, 127, 19, 0.1);
  border: 1px solid rgba(236, 127, 19, 0.25);
  border-radius: 9999px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-title .accent {
  color: var(--accent-amber);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Page Banner */
.page-banner {
  padding: 4.5rem 0 3.5rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(236, 127, 19, 0.12) 0%, transparent 60%),
              var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.page-banner-inner {
  max-width: 860px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--accent-amber);
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: radial-gradient(circle at 75% 30%, rgba(236, 127, 19, 0.15) 0%, transparent 60%),
              var(--bg-darkest);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.visual-frame:hover img {
  transform: scale(1.03);
}

/* Cards (Chrome Card Style from Original) */
.chrome-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.chrome-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(236, 127, 19, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Before / After Comparison */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.comp-img-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.comp-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comp-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.comp-badge.danger {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}

.comp-badge.success {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.comp-body {
  padding: 1.75rem;
}

.comp-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.comp-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Services Grid */
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}

.service-item-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.service-item-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.service-item-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gallery-card {
  position: relative;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  background: #000;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 13, 24, 0.95) 0%, rgba(5, 13, 24, 0.3) 60%, transparent 100%);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: var(--accent-amber);
}

.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

.lightbox-image-wrapper {
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.lightbox-image-wrapper img {
  max-height: 60vh;
  width: auto;
  object-fit: contain;
}

.lightbox-meta {
  padding: 1.5rem;
}

.lightbox-meta h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.lightbox-meta p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact & Info Cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 3rem;
}

.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.info-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.placeholder-badge {
  display: inline-block;
  background: rgba(236, 127, 19, 0.12);
  border: 1px dashed var(--accent-amber);
  color: var(--accent-amber);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Form */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-amber);
}

/* Footer */
.site-footer {
  background: #030810;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 0 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent-amber);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}


/* Gallery Filter Bar & Skeleton Architecture */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: #fff;
  border-color: var(--border-accent);
}

.filter-btn.active {
  background: var(--accent-amber);
  color: #fff;
  border-color: var(--accent-amber);
  box-shadow: 0 4px 14px rgba(236, 127, 19, 0.35);
}

.skeleton-notice {
  background: rgba(236, 127, 19, 0.08);
  border: 1px dashed var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.skeleton-notice-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.skeleton-notice-text h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.skeleton-notice-text p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}

.slot-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.slot-preview-wrapper {
  position: relative;
  height: 220px;
  background: #060e18;
  overflow: hidden;
}

.slot-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.8);
  color: var(--accent-amber);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(236, 127, 19, 0.3);
  z-index: 2;
  letter-spacing: 0.04em;
}

.slot-dim-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.8);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  z-index: 2;
  font-family: monospace;
}

.slot-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slot-card:hover .slot-preview-wrapper img {
  transform: scale(1.06);
}

.slot-wireframe {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(16, 29, 48, 0.9) 0%, rgba(6, 14, 24, 0.98) 100%);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
}

.slot-wireframe-icon {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  opacity: 0.85;
}

.slot-wireframe-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.slot-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.slot-cat {
  font-size: 0.72rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.slot-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.slot-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.slot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.slot-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-subtle);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .services-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid,
  .skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-accent);
    padding: 1.5rem;
  }
  .main-nav.active {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .services-list-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}


/* Legal Modal (Terms of Service & Privacy Policy) */
.legal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.legal-modal.active {
  display: flex;
}

.legal-content {
  position: relative;
  max-width: 860px;
  width: 100%;
  max-height: 85vh;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(15px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.legal-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 22, 40, 0.95);
}

.legal-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.legal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.legal-close:hover {
  background: var(--accent-amber);
  color: #fff;
}

.legal-body {
  padding: 2rem;
  overflow-y: auto;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.8;
}

.legal-body h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-body h4:first-child {
  margin-top: 0;
}

.legal-body p {
  margin-bottom: 1rem;
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}


.legal-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 10;
  padding-top: 0.25rem;
}

.legal-subnav a {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: var(--transition);
}

.legal-subnav a:hover {
  background: rgba(236, 127, 19, 0.15);
  color: var(--accent-amber);
  border-color: var(--accent-amber);
}

.legal-box {
  background: rgba(236, 127, 19, 0.06);
  border-left: 3px solid var(--accent-amber);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
}

.legal-box-highlight {
  background: rgba(46, 204, 113, 0.08);
  border-left: 3px solid #2ecc71;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
}

.legal-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin: 1.25rem 0;
}

.legal-details-item strong {
  display: block;
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.legal-details-item span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.legal-footer-bar {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 22, 40, 0.95);
  display: flex;
  justify-content: flex-end;
}


/* ==========================================================================
   Anti-Bot & Protected Contact Elements
   ========================================================================== */
.protected-contact-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.protected-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(236, 127, 19, 0.08);
  border: 1px dashed var(--accent-amber);
  color: var(--accent-amber);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  width: fit-content;
}

.protected-contact-link:hover {
  background: rgba(236, 127, 19, 0.18);
  border-color: var(--accent-amber);
  color: #fff;
}

.protected-contact-link.revealed {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--accent-green);
  color: #fff;
  cursor: pointer;
}

.protected-contact-link.revealed:hover {
  background: rgba(16, 185, 129, 0.22);
}

/* Anti-Bot Verification Box */
.antibot-card {
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
}

.antibot-card:hover {
  border-color: var(--border-accent);
}

.antibot-check-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.antibot-custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.antibot-card.verified {
  border-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
}

.antibot-card.verified .antibot-custom-checkbox {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

.antibot-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-subtle);
  font-size: 0.725rem;
}

.antibot-badge-icon {
  font-size: 1.1rem;
}

/* Submitting spinner */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Live London Status & Weather Widget in Footer */
.london-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}

.london-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.london-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.london-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.london-time-display {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.london-weather-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
