/**
 * TECHTRIBE LEGAL CENTER — ENTERPRISE STYLESHEET
 * Author: Industrus Tech Business Solutions
 * Version: 2.0
 */

/* =========================================================================
   Base Variables & Design Tokens (TECHTRIBE Design System)
   ========================================================================= */
:root {
  /* Canvas & Page Backgrounds */
  --canvas: #ffffff;
  --bg-page: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-accent-soft: #f0f7ff;

  /* Deep Navy Brand Elements */
  --navy-deep: #0b1528;
  --navy-dark: #0f172a;
  --navy-surface: #132238;
  --navy-card: #182842;
  --bg-dark: #0b1528;

  /* Typography & Ink */
  --ink: #0b1528;
  --ink-subtle: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --ink-inverse: #f8fafc;
  --muted-inverse: #94a3b8;

  /* Brand Colors */
  --blue-primary: #0261fd;
  --blue-deep: #034ae8;
  --blue-soft: #eff6ff;
  --blue-light: #38bdf8;
  --cyan: #0ea5e9;
  --mint: #10b981;
  --mint-soft: #ecfdf5;
  --orange: #f97316;
  --orange-soft: #fff7ed;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;

  /* Borders & Lines */
  --line: #e2e8f0;
  --line-subtle: #edf2f7;
  --line-dark: rgba(255, 255, 255, 0.12);
  --blue-border: #bfdbfe;
  --line-focus: #0261fd;

  /* Elevation & Shadows */
  --shadow-xs: 0 1px 3px rgba(11, 21, 40, 0.04);
  --shadow-sm: 0 4px 12px rgba(11, 21, 40, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 21, 40, 0.07);
  --shadow-lg: 0 16px 36px rgba(11, 21, 40, 0.1);
  --shadow-xl: 0 24px 56px rgba(11, 21, 40, 0.14);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--bg-page);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

/* Focus Treatment */
:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 3px;
}

/* =========================================================================
   Top Sticky Navigation Header (Identical to TECHTRIBE Main)
   ========================================================================= */
.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 120;
  padding-top: 4px;
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  width: 100%;
  padding: 8px 18px 8px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  background: rgba(11, 21, 40, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 36px rgba(11, 21, 40, 0.28);
}

.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.logo {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.nav-center {
  display: flex;
  align-items: center;
}

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

.nav-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links .ecosystem-link {
  color: var(--blue-light);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 97, 253, 0.3);
}

.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 97, 253, 0.4);
  color: #ffffff;
}

.btn-nav-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-nav-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary-nav {
  padding: 9px 14px;
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* =========================================================================
   Breadcrumbs
   ========================================================================= */
.legal-breadcrumb-bar {
  padding: 24px 0 10px;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal-breadcrumb a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-breadcrumb a:hover {
  color: var(--blue-primary);
}

.legal-breadcrumb .separator {
  color: var(--muted-light);
  font-size: 0.75rem;
}

.legal-breadcrumb .current {
  color: var(--ink);
  font-weight: 700;
}

/* =========================================================================
   Legal Hero Section
   ========================================================================= */
.legal-hero {
  padding: 24px 0 36px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.4) 100%);
}

.hero-kicker-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-primary);
  box-shadow: 0 0 8px rgba(2, 97, 253, 0.6);
}

.hero-actions-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tool:hover {
  background: var(--bg-subtle);
  color: var(--blue-primary);
  border-color: var(--blue-border);
}

.hero-main-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-sub-title {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-summary-text {
  font-size: 1.05rem;
  color: var(--ink-subtle);
  max-width: 840px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Metadata Grid */
.hero-metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.metadata-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metadata-item:not(:last-child) {
  border-right: 1px solid var(--line-subtle);
  padding-right: 16px;
}

.metadata-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.metadata-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.metadata-val-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================================================
   Legal Center Navigation Bar (Policy Switcher)
   ========================================================================= */
.legal-switcher-wrap {
  position: sticky;
  top: 86px;
  z-index: 110;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.legal-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.switcher-brand-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.switcher-tabs {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
}

.switcher-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-subtle);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.switcher-tab:hover {
  color: var(--ink);
}

.switcher-tab.active {
  background: #ffffff;
  color: var(--blue-primary);
  font-weight: 700;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
}

.switcher-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--blue-soft);
  color: var(--blue-primary);
}

/* =========================================================================
   Two-Column Legal Content Layout
   ========================================================================= */
.legal-container {
  padding-bottom: 80px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* Left Sticky Sidebar Table of Contents */
.legal-sidebar {
  position: sticky;
  top: 154px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.legal-sidebar::-webkit-scrollbar {
  width: 5px;
}

.legal-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--line);
  border-radius: 4px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-subtle);
}

.sidebar-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--ink-subtle);
}

.toc-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}

.toc-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-subtle);
  line-height: 1.4;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.toc-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted);
  flex-shrink: 0;
}

.toc-text {
  flex: 1;
}

.toc-link:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.toc-link.is-active {
  background: var(--blue-soft);
  color: var(--blue-primary);
  font-weight: 700;
  border-left-color: var(--blue-primary);
}

.toc-link.is-active .toc-num {
  color: var(--blue-primary);
}

/* Mobile Collapsible TOC Drawer / Accordion */
.mobile-toc-bar {
  display: none;
  margin-bottom: 24px;
}

.mobile-toc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.mobile-toc-btn:hover {
  border-color: var(--blue-border);
}

.mobile-toc-btn i {
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.mobile-toc-btn.is-open i {
  transform: rotate(180deg);
}

.mobile-toc-dropdown {
  display: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 16px;
  max-height: 380px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.mobile-toc-dropdown.is-open {
  display: block;
}

/* =========================================================================
   Right Column — Main Policy Document Body
   ========================================================================= */
.legal-body {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  box-shadow: var(--shadow-sm);
}

.policy-section {
  scroll-margin-top: 150px;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line-subtle);
}

.policy-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 24px;
}

/* Section Header */
.section-header {
  margin-bottom: 24px;
}

.section-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-border);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.04em;
}

.section-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-top: 6px;
}

/* Substantive Prose & Typography */
.legal-prose p {
  color: var(--ink-subtle);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-prose strong {
  color: var(--ink);
  font-weight: 700;
}

.legal-prose ul,
.legal-prose ol {
  margin: 16px 0 20px 24px;
  color: var(--ink-subtle);
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-prose li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.legal-prose li::marker {
  color: var(--blue-primary);
}

/* Bullet list clause formatting */
.clause-list {
  list-style: none !important;
  margin: 18px 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clause-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--ink-subtle);
  line-height: 1.75;
}

.clause-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-primary);
  margin-top: 10px;
  flex-shrink: 0;
}

.clause-body {
  flex: 1;
}

.clause-body strong {
  color: var(--ink);
}

/* Nested sub-clauses */
.sub-clause-list {
  list-style: none !important;
  margin: 12px 0 6px 18px !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-clause-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink-subtle);
  line-height: 1.65;
}

.sub-clause-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-primary);
  margin-top: 9px;
  flex-shrink: 0;
}

/* Regulatory Callout Banner / Alert */
.legal-callout {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.legal-callout-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.legal-callout-primary {
  background: var(--blue-soft);
  border-color: var(--blue-border);
  color: var(--ink);
}

.legal-callout-primary .legal-callout-icon {
  color: var(--blue-primary);
}

.legal-callout-warning {
  background: var(--orange-soft);
  border-color: #fed7aa;
  color: #7c2d12;
}

.legal-callout-warning .legal-callout-icon {
  color: var(--orange);
}

.legal-callout-content {
  flex: 1;
}

.legal-callout-content h4 {
  font-size: 0.96rem;
  font-weight: 750;
  margin-bottom: 6px;
  color: var(--ink);
}

.legal-callout-content p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-subtle);
}

/* =========================================================================
   Visual Presentation Layer: Data Collection Cards (Privacy Sec 03)
   ========================================================================= */
.data-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.data-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.data-card:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.data-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.data-card-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--blue-soft);
  color: var(--blue-deep);
  border: 1px solid var(--blue-border);
}

.data-card-icon {
  color: var(--blue-primary);
  font-size: 1.2rem;
}

.data-card-title {
  font-size: 1.02rem;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.data-card-desc {
  font-size: 0.88rem;
  color: var(--ink-subtle);
  line-height: 1.65;
}

/* =========================================================================
   Visual Presentation Layer: Lawful Basis Matrix Table (Privacy Sec 04)
   ========================================================================= */
.matrix-container {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  background: #ffffff;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.matrix-table thead {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}

.matrix-table th {
  padding: 14px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

.matrix-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-subtle);
  color: var(--ink-subtle);
  vertical-align: top;
  line-height: 1.6;
}

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

.matrix-table tbody tr:hover {
  background: rgba(240, 247, 255, 0.4);
}

.matrix-purpose {
  font-weight: 700;
  color: var(--ink);
}

.matrix-categories-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-subtle);
}

.matrix-basis-pill {
  font-weight: 600;
  color: var(--ink);
}

/* Mobile stacked cards for table */
.matrix-cards-mobile {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.matrix-mobile-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-xs);
}

.matrix-mobile-card h4 {
  font-size: 0.98rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.matrix-mobile-row {
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.matrix-mobile-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}

/* =========================================================================
   Visual Presentation Layer: AI Oversight Flow (Privacy Sec 05)
   ========================================================================= */
.ai-flow-container {
  margin: 24px 0;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, var(--blue-soft) 100%);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
}

.ai-flow-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.ai-flow-header h4 {
  font-size: 1.05rem;
  color: var(--ink);
}

.ai-flow-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.2fr;
  align-items: center;
  gap: 14px;
}

.ai-flow-step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-xs);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ai-flow-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}

.ai-flow-tag-tech {
  color: var(--blue-primary);
}

.ai-flow-tag-human {
  color: var(--mint);
}

.ai-flow-tag-legal {
  color: var(--orange);
}

.ai-flow-step h5 {
  font-size: 0.94rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.ai-flow-step p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.ai-flow-arrow {
  color: var(--blue-primary);
  font-size: 1.4rem;
  font-weight: bold;
}

/* =========================================================================
   Visual Presentation Layer: Data Subject Rights Panels (Privacy Sec 10)
   ========================================================================= */
.rights-jurisdiction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.rights-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.rights-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  width: fit-content;
}

.badge-india {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-uk-eu {
  background: var(--blue-soft);
  color: var(--blue-deep);
  border: 1px solid var(--blue-border);
}

.badge-uae {
  background: var(--mint-soft);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.rights-card h4 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--ink);
}

.rights-items-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rights-item {
  font-size: 0.88rem;
  color: var(--ink-subtle);
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}

.rights-item::before {
  content: "•";
  color: var(--blue-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* =========================================================================
   Visual Presentation Layer: Retention Matrix & Timeline (Privacy Sec 09)
   ========================================================================= */
.retention-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.retention-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  text-align: center;
  transition: all 0.2s ease;
}

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

.retention-period {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--blue-primary);
  margin-bottom: 6px;
  line-height: 1.1;
}

.retention-type {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
}

.retention-desc {
  font-size: 0.84rem;
  color: var(--ink-subtle);
  line-height: 1.5;
}

/* =========================================================================
   Visual Presentation Layer: Cross-Border Transfers (Privacy Sec 08)
   ========================================================================= */
.transfers-visual {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}

.transfers-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.transfer-node-center {
  background: var(--navy-deep);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.transfer-branches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.transfer-branch-node {
  background: #ffffff;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================================
   Visual Presentation Layer: Refund Journey Flow (Refund Top)
   ========================================================================= */
.journey-flow-card {
  background: linear-gradient(135deg, #f8fafc 0%, var(--blue-soft) 100%);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 36px;
}

.journey-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.journey-flow-header h3 {
  font-size: 1.1rem;
  color: var(--ink);
}

.journey-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}

.journey-step-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.journey-step-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue-primary);
  background: var(--blue-soft);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-step-title {
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.3;
}

.journey-step-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}

/* =========================================================================
   Visual Presentation Layer: Cooling-Off Highlights (Refund Sec 01)
   ========================================================================= */
.cooling-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.cooling-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.cooling-card-highlight {
  border-color: var(--blue-primary);
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-soft) 100%);
  box-shadow: 0 4px 16px rgba(2, 97, 253, 0.08);
}

.cooling-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.cooling-title {
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 8px;
}

.cooling-desc {
  font-size: 0.9rem;
  color: var(--ink-subtle);
  line-height: 1.65;
}

/* =========================================================================
   Visual Presentation Layer: Delivery Milestones (Refund Sec 03)
   ========================================================================= */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.milestone-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.milestone-index {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.milestone-card h4 {
  font-size: 0.98rem;
  color: var(--ink);
}

.milestone-card p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* =========================================================================
   Visual Presentation Layer: No Guarantees 3-Pillar Component (Refund Sec 04)
   ========================================================================= */
.no-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.no-guarantee-card {
  background: #fffaf0;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.no-guarantee-card i {
  color: #c2410c;
  font-size: 1.3rem;
  line-height: 1;
}

.no-guarantee-card h4 {
  font-size: 0.98rem;
  color: #7c2d12;
}

.no-guarantee-card p {
  font-size: 0.86rem;
  color: #9a3412;
  line-height: 1.55;
  margin: 0;
}

/* =========================================================================
   Visual Presentation Layer: Cancellation & Refund Timeline (Refund Sec 08)
   ========================================================================= */
.timeline-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0 20px;
  position: relative;
}

.timeline-step-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.step-num-bubble {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--blue-soft);
  color: var(--blue-deep);
  border: 1px solid var(--blue-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.timeline-step-title {
  font-size: 0.96rem;
  font-weight: 750;
  color: var(--ink);
}

.timeline-step-party {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.timeline-step-time {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin-top: 4px;
}

/* Required Request Information Card */
.required-info-card {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 24px 0;
}

.required-info-card h4 {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.required-info-card ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.required-info-card li {
  font-size: 0.9rem;
  color: var(--ink-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.required-info-card li i {
  color: var(--blue-primary);
  font-size: 1rem;
}

/* =========================================================================
   Compliance & Grievance Redressal Hub Card
   ========================================================================= */
.compliance-hub-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 48px;
  box-shadow: var(--shadow-sm);
}

.compliance-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.compliance-hub-header h3 {
  font-size: 1.35rem;
  color: var(--ink);
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.officer-profile {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.officer-role-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-primary);
}

.officer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.officer-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-subtle);
}

.officer-entity {
  font-size: 0.88rem;
  color: var(--muted);
}

.compliance-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-subtle);
}

.contact-item i {
  color: var(--blue-primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-link {
  color: var(--blue-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.contact-link:hover {
  color: var(--blue-deep);
}

.compliance-meta-bar {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* =========================================================================
   Cross-Navigation Banner Between Policies
   ========================================================================= */
.cross-nav-banner {
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}

.cross-nav-content h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.cross-nav-content p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

/* =========================================================================
   Legal Center Ecosystem Navigation (Cards before site footer)
   ========================================================================= */
.legal-ecosystem {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.legal-ecosystem-head {
  text-align: center;
  margin-bottom: 32px;
}

.legal-ecosystem-head .kicker {
  display: inline-flex;
  margin-bottom: 8px;
}

.legal-ecosystem-head h3 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.legal-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.legal-eco-card {
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}

.legal-eco-card:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: #ffffff;
}

.legal-eco-card.is-current {
  border-color: var(--blue-primary);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(2, 97, 253, 0.08);
}

.eco-current-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--blue-soft);
  color: var(--blue-primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-eco-card h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.legal-eco-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.eco-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-primary);
}

/* =========================================================================
   Global Footer (Enhanced with Structured Columns)
   ========================================================================= */
footer.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 56px 0 60px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  height: 26px;
  width: auto;
  max-width: 130px;
  filter: invert(1) brightness(0.2);
}

.footer-brand-text {
  font-size: 0.92rem;
  color: var(--ink-subtle);
  line-height: 1.65;
  max-width: 320px;
}

.footer-brand-initiative {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  color: var(--ink-subtle);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-col-links a:hover,
.footer-col-links a.active {
  color: var(--blue-primary);
}

.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38);
  transition: all 0.25s ease;
  line-height: 1;
}

.floating-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  color: #ffffff;
}

.floating-whatsapp.is-footer-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

/* Toast feedback for Copy Link */
.legal-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy-deep);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Accessible Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 40, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 130;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal-card {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-head h3 {
  font-size: 1.35rem;
}

.modal-head p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.modal-close {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.lead-form label.full {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.lead-form textarea {
  min-height: 80px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(2, 97, 253, 0.12);
}

/* =========================================================================
   Mobile Navigation Drawer
   ========================================================================= */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 114;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-drawer {
  position: fixed;
  top: 86px;
  left: 20px;
  right: 20px;
  max-height: calc(100dvh - 106px);
  overflow-y: auto;
  background: rgba(11, 21, 40, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  z-index: 115;
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mobile-menu-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  padding: 0 6px;
}

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

.mobile-nav-list a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.mobile-nav-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* =========================================================================
   Responsive Breakpoints
   ========================================================================= */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-sidebar {
    display: none;
  }

  .mobile-toc-bar {
    display: block;
  }

  .legal-body {
    padding: 36px 32px;
  }

  .hero-metadata-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .metadata-item:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }

  .nav-center {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .ai-flow-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ai-flow-arrow {
    transform: rotate(90deg);
    margin: 4px auto;
  }

  .journey-steps-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-stepper {
    grid-template-columns: 1fr;
  }

  .rights-jurisdiction-grid {
    grid-template-columns: 1fr;
  }

  .retention-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .milestones-grid,
  .no-guarantees-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .legal-body {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .hero-metadata-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .metadata-item:not(:last-child) {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--line-subtle);
    padding-bottom: 12px;
  }

  .data-cards-grid {
    grid-template-columns: 1fr;
  }

  .cooling-cards-grid {
    grid-template-columns: 1fr;
  }

  .matrix-container {
    display: none;
  }

  .matrix-cards-mobile {
    display: flex;
  }

  .retention-grid {
    grid-template-columns: 1fr;
  }

  .legal-cards-grid {
    grid-template-columns: 1fr;
  }

  .compliance-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .required-info-card ul {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-switcher {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .switcher-tabs {
    width: 100%;
  }

  .switcher-tab {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .cross-nav-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shell {
    width: calc(100% - 24px);
  }

  .nav {
    padding: 6px 12px;
    min-height: 56px;
  }

  .logo {
    height: 24px;
  }

  .hero-main-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .section-num {
    font-size: 1.8rem;
  }
}

/* =========================================================================
   Accessibility & Reduced Motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   Print Stylesheet
   ========================================================================= */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  .nav-wrap,
  .legal-switcher-wrap,
  .legal-sidebar,
  .mobile-toc-bar,
  .hero-actions-top,
  .cross-nav-banner,
  .legal-ecosystem,
  .floating-whatsapp,
  .modal,
  .legal-toast,
  footer.site-footer {
    display: none !important;
  }

  .legal-hero {
    padding: 0 0 20pt 0 !important;
    border-bottom: 2pt solid #000000 !important;
    background: none !important;
  }

  .hero-main-title {
    font-size: 22pt !important;
    color: #000000 !important;
  }

  .hero-sub-title {
    font-size: 14pt !important;
    color: #333333 !important;
  }

  .hero-metadata-grid {
    box-shadow: none !important;
    border: 1pt solid #ccc !important;
    grid-template-columns: repeat(2, 1fr) !important;
    page-break-inside: avoid;
  }

  .legal-layout {
    display: block !important;
  }

  .legal-body {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .policy-section {
    page-break-inside: avoid;
    border-bottom: 1pt solid #ddd !important;
    margin-bottom: 24pt !important;
    padding-bottom: 20pt !important;
  }

  .section-num {
    color: #555555 !important;
    font-size: 16pt !important;
  }

  .section-title {
    color: #000000 !important;
    font-size: 14pt !important;
  }

  .data-card,
  .ai-flow-step,
  .rights-card,
  .retention-card,
  .cooling-card,
  .milestone-card,
  .no-guarantee-card,
  .timeline-step-card,
  .compliance-hub-card {
    border: 1pt solid #ccc !important;
    box-shadow: none !important;
    background: #ffffff !important;
    page-break-inside: avoid;
  }

  .matrix-container {
    display: block !important;
    border: 1pt solid #999 !important;
  }

  .matrix-cards-mobile {
    display: none !important;
  }

  .matrix-table th {
    background: #eeeeee !important;
    color: #000000 !important;
  }

  .matrix-table td {
    border-bottom: 1pt solid #ddd !important;
  }

  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }

  a[href^="#"]:after {
    content: "";
  }
}
