/* ==========================================================================
   legalpages.online - Enterprise Design System (Dark & Light Mode)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- THEME TOKENS: LIGHT (Default) --- */
:root {
  --lp-bg: #f8fafc;
  --lp-surface: #ffffff;
  --lp-surface-card: #ffffff;
  --lp-surface-hover: #f1f5f9;
  --lp-surface-elevated: #ffffff;
  --lp-border: #e2e8f0;
  --lp-border-subtle: #edf2f7;
  --lp-border-focus: #3b82f6;
  
  --lp-primary: #2563eb;
  --lp-primary-hover: #1d4ed8;
  --lp-primary-subtle: rgba(37, 99, 235, 0.08);
  
  --lp-gold: #d97706;
  --lp-gold-hover: #b45309;
  --lp-gold-subtle: rgba(217, 119, 6, 0.1);
  --lp-emerald: #059669;
  --lp-emerald-subtle: rgba(5, 150, 105, 0.1);
  
  --lp-text-main: #0f172a;
  --lp-text-muted: #475569;
  --lp-text-sub: #64748b;
  
  --lp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --lp-shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --lp-shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);

  --lp-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --lp-font-mono: 'JetBrains Mono', monospace;
  --lp-paper-bg: #ffffff;
  --lp-paper-text: #1e293b;
  --lp-paper-border: #cbd5e1;
}

/* --- THEME TOKENS: DARK MODE --- */
[data-theme="dark"] {
  --lp-bg: #090d16;
  --lp-surface: #101623;
  --lp-surface-card: #151d2d;
  --lp-surface-hover: #1c263a;
  --lp-surface-elevated: #1e293b;
  --lp-border: #232f45;
  --lp-border-subtle: #192233;
  --lp-border-focus: #60a5fa;
  
  --lp-primary: #3b82f6;
  --lp-primary-hover: #60a5fa;
  --lp-primary-subtle: rgba(59, 130, 246, 0.15);
  
  --lp-gold: #f59e0b;
  --lp-gold-hover: #fbbf24;
  --lp-gold-subtle: rgba(245, 158, 11, 0.15);
  --lp-emerald: #10b981;
  --lp-emerald-subtle: rgba(16, 185, 129, 0.15);
  
  --lp-text-main: #f8fafc;
  --lp-text-muted: #94a3b8;
  --lp-text-sub: #64748b;
  
  --lp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --lp-shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
  --lp-shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);

  --lp-paper-bg: #0f1624;
  --lp-paper-text: #e2e8f0;
  --lp-paper-border: #2d3748;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--lp-bg);
  color: var(--lp-text-main);
  font-family: var(--lp-font-sans);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lp-primary);
  text-decoration: none;
  transition: all 0.15s ease;
}
a:hover {
  color: var(--lp-primary-hover);
}

/* ==========================================================================
   HEADER & RESPONSIVE NAVIGATION BAR
   ========================================================================== */

.lp-header {
  background: var(--lp-surface);
  border-bottom: 1px solid var(--lp-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--lp-shadow-sm);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lp-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand Logo */
.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--lp-text-main);
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.lp-brand-badge {
  background: linear-gradient(135deg, var(--lp-primary) 0%, #4338ca 100%);
  color: #ffffff;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Header Live Search */
.lp-header-search {
  position: relative;
  flex: 1;
  max-width: 380px;
}
.lp-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.lp-search-icon {
  position: absolute;
  left: 12px;
  color: var(--lp-text-sub);
  font-size: 0.9rem;
  pointer-events: none;
}
.lp-search-input {
  width: 100%;
  background: var(--lp-surface-hover);
  border: 1px solid var(--lp-border);
  color: var(--lp-text-main);
  padding: 0.55rem 0.85rem 0.55rem 2.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
.lp-search-input:focus {
  background: var(--lp-surface);
  border-color: var(--lp-border-focus);
  box-shadow: 0 0 0 3px var(--lp-primary-subtle);
}
.lp-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  box-shadow: var(--lp-shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  display: none;
  z-index: 1100;
}
.lp-search-results.active {
  display: block;
}
.lp-search-result-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--lp-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--lp-text-main);
  font-size: 0.88rem;
  transition: background 0.15s ease;
}
.lp-search-result-item:hover {
  background: var(--lp-surface-hover);
  color: var(--lp-primary);
}
.lp-search-result-cat {
  font-size: 0.72rem;
  color: var(--lp-text-sub);
  background: var(--lp-primary-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Desktop Navigation & Dropdowns */
.lp-nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 992px) {
  .lp-nav-desktop, .lp-header-search {
    display: none;
  }
}

.lp-nav-item {
  position: relative;
}
.lp-nav-link {
  color: var(--lp-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lp-nav-link:hover, .lp-nav-item:hover .lp-nav-link {
  color: var(--lp-text-main);
  background: var(--lp-surface-hover);
}
.lp-dropdown-caret {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
  color: var(--lp-text-sub);
}
.lp-nav-item:hover .lp-dropdown-caret {
  transform: rotate(180deg);
}

/* Desktop Mega Dropdown Menu */
.lp-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  box-shadow: var(--lp-shadow-lg);
  min-width: 240px;
  padding: 0.5rem;
  display: none;
  z-index: 1050;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.lp-nav-item:hover .lp-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.lp-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--lp-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.lp-dropdown-item:hover {
  background: var(--lp-surface-hover);
  color: var(--lp-primary);
}
.lp-dropdown-item span.icon {
  font-size: 1rem;
}

/* Theme Toggle Button */
.lp-theme-btn {
  background: var(--lp-surface-hover);
  border: 1px solid var(--lp-border);
  color: var(--lp-text-main);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}
.lp-theme-btn:hover {
  background: var(--lp-border);
  transform: rotate(15deg);
}

/* Mobile Hamburger Button */
.lp-burger-btn {
  display: none;
  background: var(--lp-surface-hover);
  border: 1px solid var(--lp-border);
  color: var(--lp-text-main);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
@media (max-width: 992px) {
  .lp-burger-btn {
    display: inline-flex;
  }
}
.lp-burger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.lp-burger-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--lp-text-main);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile Slide-Over Drawer */
.lp-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lp-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.lp-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--lp-surface);
  border-left: 1px solid var(--lp-border);
  z-index: 2010;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--lp-shadow-lg);
}
.lp-mobile-drawer.active {
  transform: translateX(0);
}

.lp-drawer-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--lp-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-drawer-close {
  background: transparent;
  border: none;
  color: var(--lp-text-sub);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}
.lp-drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}
.lp-drawer-search {
  margin-bottom: 1.25rem;
}
.lp-drawer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lp-text-sub);
  margin: 1.25rem 0 0.5rem;
}
.lp-drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--lp-text-main);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  transition: background 0.15s ease;
}
.lp-drawer-nav a:hover {
  background: var(--lp-surface-hover);
  color: var(--lp-primary);
}

/* ==========================================================================
   PAGE LAYOUT & CONTAINER
   ========================================================================== */

.lp-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  flex: 1;
  width: 100%;
}

.lp-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--lp-text-sub);
  margin-bottom: 1.5rem;
}
.lp-breadcrumbs a {
  color: var(--lp-text-muted);
}
.lp-breadcrumbs a:hover {
  color: var(--lp-text-main);
}

/* Document Hero */
.lp-doc-hero {
  margin-bottom: 2.5rem;
}
.lp-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lp-primary-subtle);
  border: 1px solid var(--lp-primary);
  color: var(--lp-primary);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.3;
}
.lp-badge-gold {
  background: var(--lp-gold-subtle);
  border-color: var(--lp-gold);
  color: var(--lp-gold);
}
.lp-badge-emerald {
  background: var(--lp-emerald-subtle);
  border-color: var(--lp-emerald);
  color: var(--lp-emerald);
}

.lp-doc-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lp-text-main);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.lp-doc-subtitle {
  color: var(--lp-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 850px;
}

/* ==========================================================================
   CONVERSION ACTION GRID (The Affiliate Box)
   ========================================================================== */

.lp-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 768px) {
  .lp-action-grid {
    grid-template-columns: 1fr;
  }
}

.lp-action-card {
  background: var(--lp-surface-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--lp-shadow-md);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.lp-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lp-shadow-lg);
}
.lp-action-card.featured {
  border: 2px solid var(--lp-gold);
  background: linear-gradient(180deg, var(--lp-gold-subtle) 0%, var(--lp-surface-card) 35%);
}
.lp-card-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--lp-gold);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: var(--lp-shadow-sm);
}

.lp-action-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lp-text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-action-header p {
  color: var(--lp-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.lp-feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}
.lp-feature-list li {
  color: var(--lp-text-main);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-feature-list li span.check {
  color: var(--lp-emerald);
  font-weight: bold;
}

.lp-btn-aff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lp-btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}
.lp-btn-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}
.lp-btn-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.lp-btn-blue:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}
.lp-sub-links {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--lp-text-sub);
}
.lp-sub-links a {
  color: var(--lp-primary);
  text-decoration: underline;
}

/* ==========================================================================
   CONTENT LAYOUT & TYPOGRAPHY
   ========================================================================== */

.lp-content-layout {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 920px) {
  .lp-content-layout {
    grid-template-columns: 1fr;
  }
}

.lp-article h2 {
  color: var(--lp-text-main);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--lp-border);
}
.lp-article h3 {
  color: var(--lp-text-main);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}
.lp-article p {
  color: var(--lp-text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.lp-article ul, .lp-article ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--lp-text-muted);
}
.lp-article li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

/* Legal Statutes Box */
.lp-statute-box {
  background: var(--lp-surface-hover);
  border-left: 4px solid var(--lp-primary);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  color: var(--lp-text-main);
  border-top: 1px solid var(--lp-border);
  border-right: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}
.lp-statute-title {
  font-weight: 700;
  color: var(--lp-primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Step-by-Step Guide */
.lp-steps-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.lp-step-item {
  display: flex;
  gap: 14px;
  background: var(--lp-surface-card);
  border: 1px solid var(--lp-border);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: var(--lp-shadow-sm);
}
.lp-step-num {
  width: 32px;
  height: 32px;
  background: var(--lp-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.lp-step-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lp-text-main);
  margin-bottom: 0.25rem;
}
.lp-step-content p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--lp-text-muted);
}

/* Printable Document Preview */
.lp-doc-preview-wrapper {
  margin: 2rem 0;
}
.lp-doc-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--lp-surface-hover);
  border: 1px solid var(--lp-border);
  border-bottom: none;
  padding: 10px 16px;
  border-radius: 12px 12px 0 0;
}
.lp-doc-preview-tools {
  display: flex;
  gap: 8px;
}
.lp-tool-btn {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  color: var(--lp-text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.lp-tool-btn:hover {
  background: var(--lp-border);
}

.lp-doc-paper {
  background: var(--lp-paper-bg);
  color: var(--lp-paper-text);
  border: 1px solid var(--lp-paper-border);
  padding: 2.5rem;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--lp-shadow-md);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.75;
  font-size: 1.02rem;
}
.lp-doc-paper h4 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-decoration: underline;
  text-transform: uppercase;
}
.lp-doc-paper p {
  color: var(--lp-paper-text);
  margin-bottom: 1.25rem;
}
.lp-doc-paper .legal-notice {
  font-family: var(--lp-font-sans);
  font-size: 0.78rem;
  font-weight: bold;
  border: 1px solid var(--lp-border);
  padding: 10px;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.45;
  background: var(--lp-surface-hover);
}

/* FAQ Accordion */
.lp-faq-item {
  background: var(--lp-surface-card);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--lp-shadow-sm);
}
.lp-faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--lp-text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  user-select: none;
}
.lp-faq-item summary::-webkit-details-marker {
  display: none;
}
.lp-faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--lp-primary);
  font-weight: bold;
}
.lp-faq-item[open] summary::after {
  content: "−";
}
.lp-faq-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--lp-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Sidebar Widgets */
.lp-sidebar-card {
  background: var(--lp-surface-card);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--lp-shadow-sm);
}
.lp-sidebar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lp-text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  color: var(--lp-text-muted);
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--lp-surface-hover);
  transition: all 0.15s ease;
}
.lp-related-links a:hover {
  background: var(--lp-primary-subtle);
  color: var(--lp-primary);
}

/* Footer */
.lp-footer {
  background: var(--lp-surface);
  border-top: 1px solid var(--lp-border);
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: 5rem;
  color: var(--lp-text-sub);
  font-size: 0.85rem;
  line-height: 1.6;
}
.lp-footer-container {
  max-width: 1140px;
  margin: 0 auto;
}
.lp-disclaimer {
  background: var(--lp-surface-hover);
  border: 1px solid var(--lp-border);
  padding: 1.25rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  font-size: 0.8rem;
}


/* ==========================================================================
   MOBILE RESPONSIVENESS PERFECTION (Zero Horizontal Scrollbar, Perfect NAV)
   ========================================================================== */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

*, *::before, *::after {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 640px) {
  .lp-header-container {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }
  
  .lp-brand {
    font-size: 1.05rem;
    gap: 6px;
  }
  
  .lp-brand-badge {
    display: none; /* Hide badge on small mobile to give plenty of room */
  }
  
  .lp-theme-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  
  .lp-burger-btn {
    padding: 7px 10px;
    gap: 5px;
    font-size: 0.8rem;
  }
  
  .lp-burger-btn .lp-burger-label {
    display: none; /* Icon-only on mobile eliminates any text truncation */
  }

  .lp-container {
    padding: 1.25rem 0.75rem 3rem;
  }
  
  .lp-doc-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }
  
  .lp-doc-subtitle {
    font-size: 0.98rem;
  }
  
  .lp-badge-row {
    gap: 6px;
  }
  .lp-badge {
    font-size: 0.75rem;
    padding: 3px 9px;
  }

  .lp-action-card {
    padding: 1.25rem;
  }
  .lp-action-header h3 {
    font-size: 1.2rem;
  }
  .lp-btn-aff {
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
  }

  .lp-doc-paper {
    padding: 1.25rem 1rem;
    font-size: 0.92rem;
    overflow-x: hidden;
  }
  .lp-doc-paper h4 {
    font-size: 1.1rem;
  }
  
  .lp-statute-box {
    padding: 1rem;
    font-size: 0.88rem;
  }

  .lp-steps-container {
    gap: 0.75rem;
  }
  .lp-step-item {
    padding: 1rem;
    gap: 10px;
  }
  .lp-step-num {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .lp-faq-item summary {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
  .lp-faq-content {
    padding: 0 1rem 1rem;
    font-size: 0.88rem;
  }
}

/* Responsive Signature Underline */
.lp-sig-line {
  display: block;
  width: 280px;
  max-width: 100%;
  border-bottom: 1.5px solid currentColor;
  margin-bottom: 4px;
}
