/* ==========================================================================
   BlueHollow Software — Global Design System & Stylesheet
   Studio Brand: Deep Royal Navy & Electric Azure
   Product Sub-Brands: ServiceVault (Workshop Teal) & AbodeLedger (Sage/Cream)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  
  /* Studio Brand Blue Spectrum (Matching Official Logo) */
  --blue-950: #051324;
  --blue-900: #0A1E36;
  --blue-850: #002855;
  --blue-800: #0F2D4E;
  --blue-700: #00529B;
  --blue-600: #0284C7;
  --blue-500: #00A3E0;
  --blue-400: #38B6FF;
  --blue-200: #BAE6FD;
  --blue-100: #E0F2FE;
  --blue-50:  #F0F9FF;
  
  /* ServiceVault Sub-Brand (Navy + Teal) */
  --sv-navy: #0E2435;
  --sv-teal: #14817E;
  --sv-mint: #23A79D;
  --sv-light-teal: #E6FFFA;
  
  /* AbodeLedger Sub-Brand (Deep Forest Teal + Sage + Warm Cream) */
  --al-teal: #075E5A;
  --al-sage: #789B83;
  --al-cream: #FFF8E9;
  --al-cream-card: #FAF4E4;
  
  /* Semantic Light Palette */
  --bg-canvas: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F0F6FA;
  --bg-muted: #E2E8F0;
  
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-focus: #00A3E0;
  
  --text-primary: #0A1E36;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  
  --card-shadow: 0 4px 20px -2px rgba(10, 30, 54, 0.06), 0 2px 6px -1px rgba(10, 30, 54, 0.04);
  --card-shadow-hover: 0 20px 32px -4px rgba(10, 30, 54, 0.12), 0 8px 16px -2px rgba(10, 30, 54, 0.06);
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(0, 163, 224, 0.15) 0%, rgba(248, 250, 252, 0) 70%);
  
  /* Layout Spacing */
  --header-height: 5rem;
  --container-max: 76rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
  
  /* Typography Stack */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* --------------------------------------------------------------------------
   Dark Theme Overrides
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  color-scheme: dark;
  
  --bg-canvas: #060F1A;
  --bg-surface: #0B192C;
  --bg-surface-elevated: #11223B;
  --bg-subtle: #132742;
  --bg-muted: #1E3A5F;
  
  --border-color: #1A3454;
  --border-subtle: #132742;
  --border-focus: #38B6FF;
  
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-inverse: #0A1E36;
  
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45), 0 2px 6px -1px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 20px 36px -4px rgba(0, 0, 0, 0.65), 0 8px 18px -2px rgba(0, 0, 0, 0.45);
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(56, 182, 255, 0.16) 0%, rgba(6, 15, 26, 0) 70%);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background-color: var(--bg-subtle);
  color: var(--blue-600);
  padding: 0.15em 0.35em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: inline;
  white-space: nowrap;
}

[data-theme="dark"] code {
  color: var(--blue-400);
  border-color: var(--border-color);
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

[data-theme="dark"] a {
  color: var(--blue-400);
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
}

.text-muted {
  color: var(--text-muted);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(248, 250, 252, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(6, 15, 26, 0.92);
  border-bottom-color: var(--border-color);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  text-decoration: none;
}

.nav-link.active {
  color: var(--blue-600);
  background-color: var(--blue-50);
}

[data-theme="dark"] .nav-link.active {
  color: var(--blue-400);
  background-color: rgba(0, 163, 224, 0.15);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   Mobile Nav Drawer (Placed outside header for full opaque backdrop)
   -------------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background-color: var(--bg-canvas);
  padding: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
  z-index: 9999;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  text-decoration: none;
  box-shadow: var(--card-shadow);
  transition: background-color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.mobile-nav-list a:hover,
.mobile-nav-list a:active {
  background-color: var(--bg-subtle);
  border-color: var(--blue-400);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
  font-weight: 650;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none !important;
  line-height: 1.25;
}

.btn-primary {
  background-color: var(--blue-900);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(10, 30, 54, 0.22);
}

.btn-primary:hover {
  background-color: var(--blue-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10, 30, 54, 0.32);
}

[data-theme="dark"] .btn-primary {
  background-color: var(--blue-500);
  color: var(--blue-950) !important;
  box-shadow: 0 4px 16px rgba(0, 163, 224, 0.35);
}

[data-theme="dark"] .btn-primary:hover {
  background-color: var(--blue-400);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-play-store {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn-play-store:hover {
  transform: translateY(-2px);
}

.btn-play-store img {
  height: 52px;
  width: auto;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge-servicevault {
  background-color: #E6FFFA;
  color: #087F7A;
  border: 1px solid #B2F5EA;
}

[data-theme="dark"] .badge-servicevault {
  background-color: rgba(35, 167, 157, 0.15);
  color: #53C6C1;
  border-color: rgba(35, 167, 157, 0.3);
}

.badge-abodeledger {
  background-color: #FFF8E9;
  color: #075E5A;
  border: 1px solid #F3E4C8;
}

[data-theme="dark"] .badge-abodeledger {
  background-color: rgba(120, 155, 131, 0.15);
  color: #A3C2AC;
  border-color: rgba(120, 155, 131, 0.3);
}

.badge-live {
  background-color: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

[data-theme="dark"] .badge-live {
  background-color: rgba(4, 120, 87, 0.2);
  color: #6EE7B7;
  border-color: rgba(4, 120, 87, 0.4);
}

.badge-upcoming {
  background-color: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

[data-theme="dark"] .badge-upcoming {
  background-color: rgba(217, 119, 6, 0.15);
  color: #FCD34D;
  border-color: rgba(217, 119, 6, 0.3);
}

/* --------------------------------------------------------------------------
   5. Hero Sections
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4.5rem);
  background: var(--hero-glow);
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--blue-600);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-theme="dark"] .hero-eyebrow {
  color: var(--blue-400);
}

.hero-title {
  max-width: 24ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.hero-description {
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   6. App Cards & Showcases (Home Page)
   -------------------------------------------------------------------------- */
.section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section-header {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
  margin-bottom: 0.75rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.app-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--blue-400);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.app-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.app-card-content h3 {
  margin-bottom: 0.5rem;
}

.app-card-tagline {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* Bulletproof 2-Element Flex Layout for List Items */
.app-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.app-features-list li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.6rem !important;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
}

.app-features-list li .bullet {
  flex-shrink: 0;
  color: var(--blue-600);
  font-weight: bold;
  user-select: none;
  line-height: 1.5;
}

.app-features-list li span:last-child {
  flex: 1 1 auto;
}

[data-theme="dark"] .app-features-list li .bullet {
  color: var(--blue-400);
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   7. Core Philosophy & Trust Pillars
   -------------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-400);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.pillar-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Dedicated Product Showcase Layouts
   -------------------------------------------------------------------------- */
.product-hero {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

@media (max-width: 960px) {
  .product-showcase-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .product-hero-actions {
    justify-content: center;
  }
  
  .mockup-container {
    order: -1;
    margin-inline: auto;
  }
}

.mockup-container {
  display: flex;
  justify-content: center;
  max-width: 380px;
  width: 100%;
}

.mockup-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-box {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.feature-box-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Tier Comparison Matrix
   -------------------------------------------------------------------------- */
.tier-table-wrapper {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow-x: auto;
  box-shadow: var(--card-shadow);
  margin-top: 2rem;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.tier-table th, .tier-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tier-table th {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 750;
  font-size: 1rem;
}

.tier-table tr:last-child td {
  border-bottom: none;
}

.tier-table td:nth-child(2), .tier-table td:nth-child(3) {
  text-align: center;
}

.tier-table th:nth-child(2), .tier-table th:nth-child(3) {
  text-align: center;
}

.tier-pro-col {
  background-color: rgba(0, 163, 224, 0.06);
  font-weight: 650;
  color: var(--blue-700);
}

[data-theme="dark"] .tier-pro-col {
  background-color: rgba(56, 182, 255, 0.08);
  color: var(--blue-400);
}

/* --------------------------------------------------------------------------
   10. FAQ & Accordion
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 48rem;
  margin-inline: auto;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--blue-500);
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

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

.faq-summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-summary::after {
  content: "−";
  color: var(--blue-600);
}

.faq-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. Legal & Privacy Pages
   -------------------------------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding-block: 3.5rem;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  
  .legal-toc {
    display: none;
  }
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.legal-toc h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-toc a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--blue-600);
}

.legal-article {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--card-shadow);
}

.legal-article section {
  margin-bottom: 2.5rem;
}

.legal-article section:last-child {
  margin-bottom: 0;
}

.legal-article h2 {
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-article h3 {
  font-size: 1.15rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-article p, .legal-article ul {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.legal-article ul {
  padding-left: 1.5rem;
}

.contact-card {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border-left: 4px solid var(--blue-500);
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding-block: 4rem 2rem;
  transition: background-color var(--transition-normal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 24rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

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

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

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. Responsive Utilities & Mobile Nav
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: inline-flex;
  }

  .brand-logo-img {
    height: 40px;
  }
}
