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

:root {
  --brand: #6366f1;
  --brand-light: #a5b4fc;
  --brand-dark: #4f46e5;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --surface-3: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --radius: 12px;
  --max-w: 1100px;
  --max-w-narrow: 800px;
}

[data-app="glassia"] {
  --brand: #6366f1;
  --brand-light: #a5b4fc;
  --brand-dark: #4f46e5;
}

[data-app="healthpet"] {
  --brand: #10b981;
  --brand-light: #6ee7b7;
  --brand-dark: #059669;
}

[data-app="memorease"] {
  --brand: #8b5cf6;
  --brand-light: #c4b5fd;
  --brand-dark: #7c3aed;
}

[data-app="smartchef"] {
  --brand: #f59e0b;
  --brand-light: #fde68a;
  --brand-dark: #d97706;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Navbar ── */

nav.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--surface-3);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.logo em {
  color: var(--brand);
  font-style: normal;
}

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

.nav-links li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links .app-selector {
  position: relative;
}

.nav-links .app-selector > a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.nav-links .app-selector > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--text-muted);
  margin-top: 2px;
  transition: transform 0.2s;
}

.nav-links .app-selector:hover > a::after {
  transform: rotate(180deg);
}

.app-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.app-selector:hover .app-dropdown {
  display: block;
}

.app-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: color 0.2s, background 0.2s;
}

.app-dropdown a:hover {
  color: var(--text);
  background: var(--surface-3);
}

.app-dropdown .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Hero ── */

.hero {
  max-width: var(--max-w);
  margin: 5rem auto 3rem;
  padding: 0 2rem;
  text-align: center;
}

.hero-narrow {
  max-width: var(--max-w-narrow);
}

.badge {
  display: inline-block;
  background: rgba(var(--brand-rgb, 99, 102, 241), 0.15);
  color: var(--brand-light);
  border: 1px solid rgba(var(--brand-rgb, 99, 102, 241), 0.3);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-info {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

h1 em {
  color: var(--brand);
  font-style: normal;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

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

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
}

.cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.cta-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--surface-3);
}

.cta-outline:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
}

.cta-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

/* ── Section ── */

section {
  max-width: var(--max-w);
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

/* ── Cards Grid ── */

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

.card {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

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

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── App Showcase Cards ── */

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

.app-card {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--app-color, var(--brand));
}

.app-card:hover {
  border-color: var(--app-color, var(--brand));
  transform: translateY(-3px);
}

.app-card.featured {
  border-color: var(--app-color);
  box-shadow: 0 0 0 1px var(--app-color), 0 4px 20px rgba(99, 102, 241, 0.15);
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
}

.app-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.app-card .status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.app-card .status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.app-card .status .dot-green { background: #10b981; }
.app-card .status .dot-yellow { background: #f59e0b; }
.app-card .status .dot-gray { background: #64748b; }

.app-card .description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.app-card .links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-card .links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: var(--surface-3);
  transition: color 0.2s, background 0.2s;
}

.app-card .links a:hover {
  color: var(--text);
  background: var(--brand);
}

/* ── Legal Content ── */

.legal-content {
  max-width: var(--max-w-narrow);
  margin: 3rem auto 5rem;
  padding: 0 2rem;
  width: 100%;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.legal-content .updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--brand-light);
}

.legal-content p {
  color: #cbd5e1;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

.legal-content ul,
.legal-content ol {
  color: #cbd5e1;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
  overflow-wrap: break-word;
}

.legal-content a {
  color: var(--brand);
  overflow-wrap: break-word;
  word-break: break-word;
}

.legal-content strong {
  color: #e2e8f0;
}

.legal-content code {
  background: var(--surface-2);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Steps list for account deletion */

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.legal-content .steps {
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.steps li span {
  flex: 1;
  min-width: 0;
}

.steps li::before {
  content: counter(step);
  min-width: 2rem;
  height: 2rem;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #fff;
}

/* Badges for data deletion */

.badge-removed,
.badge-retained,
.badge-partial {
  white-space: nowrap;
}

.badge-removed {
  display: inline-block;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.badge-retained {
  display: inline-block;
  background: rgba(234, 179, 8, 0.12);
  color: #fde68a;
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 6px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.badge-partial {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Info boxes */

.info-box {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box p {
  margin-bottom: 0;
}

.info-box a,
.partial-box a {
  word-break: break-all;
  overflow-wrap: break-word;
}

.partial-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.partial-box p {
  margin-bottom: 0;
}

/* Data tables */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.data-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: var(--surface-2);
  font-weight: 700;
  color: #e2e8f0;
  border-bottom: 1px solid var(--surface-3);
}

.data-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--surface-3);
  vertical-align: middle;
}

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

/* ── Hero VeriQx (main page) ── */

.hero-veriqx {
  padding: 4rem 2rem 2rem;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand-hero {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.brand-hero em {
  color: var(--brand, #6366f1);
  font-style: normal;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.pill-group {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── App Grid (main page) ── */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.app-tile {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.app-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tile-color, var(--brand));
}

.app-tile:hover {
  border-color: var(--tile-color, var(--brand));
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.app-tile.featured {
  border-color: var(--tile-color);
  box-shadow: 0 0 0 1px var(--tile-color), 0 4px 24px rgba(99,102,241,0.15);
}

.tile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon svg {
  width: 28px;
  height: 28px;
}

.tile-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.tile-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tile-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tile-status .dot-blue { background: #60a5fa; }
.tile-status .dot-yellow { background: #f59e0b; }

.tile-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tile-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tile-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: var(--surface-3);
  transition: color 0.2s, background 0.2s;
}

.tile-links a:hover {
  color: var(--text);
  background: var(--tile-color, var(--brand));
}

.brand-section {
  max-width: var(--max-w-narrow);
  margin: 0 auto 5rem;
  padding: 0 2rem;
  text-align: center;
}

.brand-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.brand-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── About Section ── */

.about-section {
  max-width: var(--max-w-narrow);
  text-align: center;
}

.about-section .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.about-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.about-section .role {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.about-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  transition: color 0.2s, border-color 0.2s;
}

.social-links a:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ── Hamburger & Mobile Menu ── */

.menu-toggle {
  display: none;
  position: absolute;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  z-index: 300;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle:checked ~ .navbar .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle:checked ~ .navbar .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked ~ .navbar .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
  cursor: pointer;
}

.menu-toggle:checked ~ .nav-overlay {
  display: block;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--surface-2);
  border-left: 1px solid var(--surface-3);
  z-index: 250;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.menu-toggle:checked ~ .mobile-nav {
  right: 0;
}

.mobile-nav-group {
  margin-bottom: 2rem;
}

.mobile-nav-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.mobile-nav a:hover {
  background: var(--surface-3);
}

.mobile-nav .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }
}

@media (min-width: 641px) {
  .menu-toggle,
  .hamburger,
  .nav-overlay,
  .mobile-nav {
    display: none !important;
  }
}

/* ── Footer ── */

footer {
  margin-top: auto;
  border-top: 1px solid var(--surface-3);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 1rem;
}

footer .footer-links a.active {
  color: var(--brand);
}

footer .legal-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 0.75rem;
}

/* ── Card icon (SVG replacement) ── */

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--brand-light, currentColor);
}

/* ── Responsive ── */

@media (max-width: 480px) {
  nav.navbar {
    padding: 0.6rem 0.75rem;
  }

  .logo {
    font-size: 1rem;
  }

  .nav-links li a {
    font-size: 0.75rem;
    padding: 0.35rem 0.45rem;
  }

  .app-dropdown {
    right: 0;
    left: auto;
    min-width: 180px;
  }

  h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero {
    margin: 2rem auto 1.5rem;
    padding: 0 0.75rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  section {
    padding: 0 0.75rem;
    margin-bottom: 2rem;
  }

  .grid {
    gap: 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .card-icon {
    width: 40px;
    height: 40px;
  }

  .card-icon svg {
    width: 20px;
    height: 20px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.85rem;
  }

  .legal-content {
    padding: 0 1rem;
    margin: 1.5rem auto 2rem;
  }

  .legal-content h1 {
    font-size: 1.5rem;
  }

  .legal-content h2 {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem;
  }

  .legal-content p,
  .legal-content li {
    font-size: 0.88rem;
  }

  .steps li {
    gap: 0.6rem;
  }

  .steps li::before {
    min-width: 1.6rem;
    height: 1.6rem;
    font-size: 0.75rem;
  }

  .data-table {
    font-size: 0.78rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.4rem 0.5rem;
  }

  footer {
    padding: 1.25rem 0.75rem;
  }

  footer .footer-links {
    gap: 0.75rem;
  }

  footer .footer-links li a {
    font-size: 0.8rem;
  }

  footer .legal-links {
    gap: 0.75rem;
  }

  footer .legal-links li a {
    font-size: 0.78rem;
  }

  .cta {
    padding: 0.65rem 1.2rem;
    font-size: 0.85rem;
  }

  .pills-footer {
    display: none;
  }

  /* Hero-veriqx (main page) */
  .hero-veriqx {
    padding: 2rem 0.75rem 1rem !important;
  }

  .brand-hero {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  .tagline {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }

  .pill-group {
    gap: 0.4rem;
    margin-bottom: 2rem !important;
  }

  .pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
  }

  .app-grid {
    padding: 0 0.75rem 2rem !important;
    gap: 1rem !important;
  }

  .app-tile {
    padding: 1.25rem;
  }

  .tile-header {
    gap: 0.75rem;
  }

  .tile-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .tile-icon svg {
    width: 22px !important;
    height: 22px !important;
  }

  .tile-header h3 {
    font-size: 1rem !important;
  }

  .tile-desc {
    font-size: 0.82rem !important;
  }

  .tile-links a {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
  }

  .brand-section {
    padding: 0 0.75rem !important;
    margin-bottom: 2rem !important;
  }

  .brand-section h2 {
    font-size: 1.1rem !important;
  }

  .brand-section p {
    font-size: 0.85rem !important;
  }

  /* Legal content compact */
  .legal-content .updated {
    font-size: 0.78rem;
    margin-bottom: 2rem;
  }

  .info-box,
  .partial-box {
    padding: 1rem 1.15rem;
  }

  .badge-removed,
  .badge-retained,
  .badge-partial {
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    margin-left: 0.3rem;
    display: inline-block;
  }
}

@media (max-width: 640px) {
  nav.navbar {
    padding: 0.7rem 1rem;
  }

  .nav-links {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li a {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
    white-space: nowrap;
  }

  .app-selector:hover .app-dropdown,
  .app-selector:focus-within .app-dropdown {
    display: block;
  }

  .app-dropdown {
    right: 0;
    left: auto;
    min-width: 190px;
  }

  .hero {
    margin: 2.5rem auto 1.5rem;
    padding: 0 1rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-veriqx {
    padding: 2.5rem 1rem 1.5rem;
  }

  section {
    padding: 0 1rem;
    margin-bottom: 2.5rem;
  }

  .grid {
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card h3 {
    font-size: 1.05rem;
  }

  .app-grid {
    padding: 0 1rem 3rem;
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 0 1.25rem;
    margin: 2rem auto 3rem;
  }

  .legal-content h2 {
    font-size: 1.05rem;
  }

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

  .app-card {
    padding: 1.5rem;
  }

  .app-dropdown {
    left: auto;
    right: 0;
  }

  .app-icon {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  nav.navbar {
    padding: 0.8rem 1.5rem;
  }

  .hero {
    margin: 3.5rem auto 2rem;
  }

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

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

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

  .legal-content {
    padding: 0 1.5rem;
  }
}

/* ── Data table horizontal scroll on small screens ── */

@media (max-width: 640px) {
  .data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem -0.5rem 1.5rem;
    padding: 0 0.5rem;
  }

  .data-table {
    min-width: 480px;
  }
}
