/* ==========================================================================
   ADevStudio - Modern Blue & Black Design System & Stylesheet
   Pure CSS3 (Zero JavaScript) - Fully Compatible with Old & New Android WebViews
   ========================================================================== */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Core Blue & Black Theme Palette */
  --bg-primary: #05070b;          /* Pitch Black */
  --bg-secondary: #0b0f19;        /* Obsidian Dark */
  --bg-surface: #101726;          /* Deep Midnight Surface */
  --bg-surface-elevated: #162033; /* Elevated Card */
  --bg-surface-hover: #1c273e;    /* Hover State */
  
  --border-subtle: rgba(59, 130, 246, 0.15);
  --border-card: rgba(59, 130, 246, 0.22);
  --border-hover: #3b82f6;
  --border-focus: #60a5fa;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Vibrant App Brand Blues */
  --blue-vibrant: #2563eb;
  --blue-electric: #3b82f6;
  --blue-light: #60a5fa;
  --blue-soft: #93c5fd;
  --blue-dark: #1d4ed8;
  --blue-glow: rgba(59, 130, 246, 0.28);
  --blue-subtle-bg: rgba(37, 99, 235, 0.12);

  --gradient-brand: linear-gradient(135deg, #60a5fa 0%, #3b82f6 45%, #1d4ed8 100%);
  --gradient-btn: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  --gradient-card: linear-gradient(180deg, rgba(16, 23, 38, 0.95) 0%, rgba(11, 15, 25, 0.98) 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 28px rgba(59, 130, 246, 0.28);

  --max-width: 1140px;
  --content-width: 880px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 15% 15%, rgba(37, 99, 235, 0.14) 0px, transparent 50%),
    radial-gradient(at 85% 20%, rgba(29, 78, 216, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(37, 99, 235, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

a:hover {
  color: var(--blue-soft);
  text-decoration: underline;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.content-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Pure-CSS Navigation (100% Zero JS) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 7, 11, 0.94);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none !important;
  z-index: 105;
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient-btn);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.brand-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* Hidden Checkbox for Mobile Toggle */
.nav-toggle-input {
  display: none !important;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Desktop Navigation (Screens > 768px) */
@media (min-width: 769px) {
  .nav-toggle-btn {
    display: none !important;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.25rem;
  }

  .nav-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
  }

  .nav-cta {
    background: var(--gradient-btn) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
  }
}

/* Mobile Pure CSS Navigation (Screens <= 768px, Zero JS) */
@media (max-width: 768px) {
  .nav-wrapper {
    height: 58px;
  }

  .brand-text {
    font-size: 1.1rem;
  }

  /* Hamburger Toggle Label */
  .nav-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 8px;
    gap: 4px;
    z-index: 105;
    transition: var(--transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle-btn:active {
    background: rgba(37, 99, 235, 0.3);
  }

  .hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  /* Animated Hamburger transforms to X */
  .nav-toggle-input:checked + .nav-toggle-btn .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle-input:checked + .nav-toggle-btn .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-input:checked + .nav-toggle-btn .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Slide-down Menu Container */
  .nav-menu {
    display: none;
    position: absolute;
    top: 58px;
    left: -1.25rem;
    right: -1.25rem;
    background: rgba(5, 7, 11, 0.98);
    border-bottom: 2px solid var(--blue-vibrant);
    padding: 0.85rem 1.25rem 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 104;
  }

  /* Pure CSS Checkbox reveals menu */
  .nav-toggle-input:checked ~ .nav-menu {
    display: block;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    list-style: none;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    color: #e2e8f0;
    background: rgba(16, 23, 38, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
  }

  .nav-links a:active,
  .nav-links a.active {
    background: rgba(37, 99, 235, 0.25);
    border-color: var(--blue-electric);
    color: #ffffff;
  }

  .nav-cta {
    background: var(--gradient-btn) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-brand {
  background: rgba(37, 99, 235, 0.15);
  color: var(--blue-light);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-success {
  background: rgba(37, 99, 235, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-warning {
  background: rgba(59, 130, 246, 0.08);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none !important;
  transition: var(--transition);
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(59, 130, 246, 0.55);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(16, 23, 38, 0.9);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: rgba(22, 32, 51, 1);
  border-color: var(--blue-electric);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-playstore {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 0.65rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-playstore:hover {
  background: #0b0f19;
  border-color: var(--blue-electric);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  margin: 1.25rem 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* App Showcase Section */
.section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 2.5rem;
}

.section-title {
  margin-top: 0.75rem;
  font-size: 2.15rem;
}

.section-subtitle {
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.app-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-electric);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  background: #000000;
  border: 1px solid rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.app-meta {
  flex: 1;
  min-width: 0;
}

.app-meta h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.app-package {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.app-package code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--blue-soft);
  background: rgba(37, 99, 235, 0.12);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.app-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.pill {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-sm);
  color: var(--blue-light);
}

.app-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Feature/Value Cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  background: rgba(16, 23, 38, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}

.value-card:hover {
  background: rgba(22, 32, 51, 0.9);
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.18);
  color: var(--blue-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.value-card h4 {
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.92rem;
}

/* Legal & Policy Page Styles */
.policy-page {
  padding: 1.5rem 0 4.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--blue-light);
  font-weight: 500;
  margin-bottom: 1.15rem;
  padding: 0.4rem 0.8rem;
  background: rgba(16, 23, 38, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: var(--transition);
}

.back-link:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: var(--blue-electric);
  color: #ffffff;
}

.policy-header-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}

.policy-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.policy-app-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: #000000;
  border: 1px solid rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
}

.policy-header-info {
  flex: 1;
  min-width: 240px;
}

.policy-header-info h1 {
  font-size: 2rem;
  margin: 0.35rem 0 0.45rem;
}

.policy-badges {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* Callout / Highlights Box */
.callout {
  background: rgba(37, 99, 235, 0.1);
  border-left: 4px solid var(--blue-electric);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  border-right: 1px solid rgba(59, 130, 246, 0.15);
}

.callout h4 {
  color: var(--blue-light);
  margin-bottom: 0.4rem;
}

.callout p {
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Quick Summary Box */
.summary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.summary-box h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-light);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.summary-item {
  background: rgba(5, 7, 11, 0.7);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.summary-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.summary-item span {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* Policy Content Body */
.policy-body {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.policy-section {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.policy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.policy-section h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.policy-section h2 .section-num {
  font-size: 0.88rem;
  color: #ffffff;
  background: var(--gradient-btn);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.policy-section p {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.policy-section ul,
.policy-section ol {
  margin: 0.75rem 0 1.15rem 1.25rem;
  color: #cbd5e1;
}

.policy-section li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.policy-section li strong {
  color: var(--text-primary);
}

/* Desktop Permission Table */
.perm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.25rem 0;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.perm-table th,
.perm-table td {
  padding: 0.85rem 1.15rem;
  text-align: left;
  font-size: 0.92rem;
}

.perm-table th {
  background: rgba(5, 7, 11, 0.9);
  color: #ffffff;
  font-weight: 600;
  border-bottom: 1px solid var(--border-card);
}

.perm-table td {
  background: rgba(16, 23, 38, 0.5);
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
  color: #cbd5e1;
}

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

.perm-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  color: var(--blue-soft);
  display: inline-block;
  margin: 0.15rem 0;
  word-break: break-word;
}

/* Contact Card */
.contact-box {
  background: linear-gradient(135deg, rgba(16, 23, 38, 0.95) 0%, rgba(5, 7, 11, 0.98) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-md);
}

.contact-email-link {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--blue-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.contact-email-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* 404 Page */
.error-page-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.error-card {
  max-width: 580px;
  background: var(--gradient-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.error-code {
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.85rem;
  letter-spacing: -0.04em;
}

.error-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.error-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.error-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 7, 11, 0.98);
  padding: 3rem 0 2rem;
}

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

.footer-brand h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 380px;
}

.footer-col h5 {
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--blue-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ==========================================================================
   Mobile Responsiveness: Prevents ALL horizontal squishing and overflow
   ========================================================================== */
@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  .hero-title { font-size: 2rem; }
  
  .hero-section {
    padding: 2.75rem 0 2.25rem;
  }
  
  .app-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .app-card {
    padding: 1.35rem 1.15rem;
  }

  .app-card-top {
    gap: 0.85rem;
    margin-bottom: 1rem;
  }

  .app-icon {
    width: 62px;
    height: 62px;
    border-radius: 12px;
  }
  
  .policy-header-card {
    padding: 1.35rem 1rem;
    margin-bottom: 1.35rem;
  }
  
  .policy-header-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }

  .policy-app-icon {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

  .policy-header-info h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
  .policy-badges {
    justify-content: center;
    gap: 0.35rem;
  }

  .badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
  }
  
  .policy-body {
    padding: 1.25rem 0.95rem;
  }

  .summary-box {
    padding: 1.15rem 0.85rem;
    margin-bottom: 1.5rem;
  }

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

  /* CRITICAL FIX: Transform squished table into full-width stacked cards */
  .perm-table, 
  .perm-table tbody, 
  .perm-table tr, 
  .perm-table td {
    display: block !important;
    width: 100% !important;
  }

  .perm-table {
    border: none !important;
    background: transparent !important;
    margin: 1rem 0 !important;
  }

  .perm-table thead {
    display: none !important;
  }

  .perm-table tr {
    background: rgba(16, 23, 38, 0.8) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-md) !important;
    padding: 1rem !important;
    margin-bottom: 0.85rem !important;
  }

  .perm-table td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .perm-table td:first-child {
    margin-bottom: 0.65rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15) !important;
  }

  .perm-code {
    display: inline-block !important;
    font-size: 0.76rem !important;
    padding: 0.2rem 0.45rem !important;
    margin-bottom: 0.25rem !important;
    word-break: break-all !important;
  }

  /* CRITICAL FIX: Prevent email overflowing right border of contact box */
  .contact-box {
    padding: 1.25rem 1rem !important;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 0.85rem !important;
  }

  .contact-email-link {
    font-size: 0.85rem !important;
    justify-content: center !important;
    padding: 0.6rem 0.85rem !important;
    background: rgba(37, 99, 235, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    border-radius: var(--radius-sm) !important;
    width: 100% !important;
    max-width: 100% !important;
    word-break: break-all !important;
    box-sizing: border-box !important;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Print Optimization */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }
  .site-header, .site-footer, .back-link, .app-actions, .nav-toggle-btn {
    display: none !important;
  }
  .policy-header-card, .policy-body {
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #111827 !important;
  }
  h1, h2, h3, strong {
    color: #111827 !important;
  }
  p, li, td {
    color: #374151 !important;
  }
}
