@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --bg-dark: #04080a;
  --bg-panel: rgba(10, 15, 18, 0.75);
  --bg-panel-hover: rgba(16, 22, 26, 0.82);
  --border-color: rgba(73, 246, 220, 0.14);
  --border-color-hover: rgba(73, 246, 220, 0.3);
  --cyan: #49f6dc;
  --cyan-dim: rgba(73, 246, 220, 0.15);
  --cyan-border: rgba(73, 246, 220, 0.25);
  --cyan-bright: #00ffda;
  --amber: #ffb84d;
  --amber-dim: rgba(255, 184, 77, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-muted-strong: #cbd5e1;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fira Code", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --header-height: 72px;
  --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: transparent;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-slow);
}

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

a:hover {
  color: var(--cyan);
}

/* Helper utilities */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background Video Setup */
.video-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg-dark);
  transition: opacity var(--transition-slow);
}

.video-bg-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.video-bg-container video.active {
  opacity: 1;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(4, 8, 10, 0.15) 0%, rgba(4, 8, 10, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 92%);
  height: 52px;
  background: rgba(10, 15, 18, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 18px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--cyan);
  color: var(--bg-dark);
  font-weight: 900;
  border-radius: 9999px;
  box-shadow: 0 0 14px rgba(73, 246, 220, 0.25);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-main);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  border-radius: 9999px;
  transition: all var(--transition-fast);
}

.header-cta:hover {
  background: var(--cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 12px rgba(73, 246, 220, 0.25);
  transform: translateY(-1px);
}

.header-cta.joined {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
  color: #10b981;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color var(--transition-normal), background var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-panel-hover);
}

/* Scroll Experience & Panel System */
.scroll-experience {
  position: relative;
  z-index: 10;
}

.panel-section {
  min-height: 100vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.panel-section.active {
  opacity: 1;
  transform: translateY(0);
}

.section-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: inline-block;
}

/* Hero Panel */
.hero-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-muted-strong);
  margin-bottom: 22px;
  line-height: 1.4;
  font-weight: 500;
}

.hero-copy {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 48px;
}

/* Scroll Hint */
.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-hint svg {
  width: 18px;
  height: 18px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Download Section Layout */
.download-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}

.download-info-text h2 {
  font-size: 2.5rem;
  font-weight: 850;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.download-info-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.download-panel {
  padding: 32px;
}

.current-build {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 28px;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 750;
  color: var(--amber);
  background: var(--amber-dim);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

/* Waitlist Form Styling */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-dim);
}

.form-error {
  font-size: 0.78rem;
  color: #ff5d5d;
  margin-top: 6px;
  min-height: 18px;
  font-weight: 500;
}

@media (min-width: 520px) {
  .form-group {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .form-input {
    width: auto;
  }
  
  #waitlist-submit-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 0 24px;
  }
}

.build-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.build-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  background: var(--cyan);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(73, 246, 220, 0.15);
}

.btn-primary:hover {
  background: var(--cyan-bright);
  box-shadow: 0 6px 24px rgba(73, 246, 220, 0.25);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

/* Checksum */
.checksum-container {
  margin-top: 18px;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.checksum-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checksum-val {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  word-break: break-all;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checksum-val:hover {
  border-color: var(--border-color-hover);
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.5);
}

.copy-feedback {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.7rem;
  color: var(--cyan);
  font-weight: 600;
  opacity: 0;
  transform: translateY(2px);
  transition: all 200ms ease;
  pointer-events: none;
}

.copy-feedback.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Previous Versions */
.previous-builds {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.previous-builds h4 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted-strong);
}

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

.version-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.85rem;
}

.version-tag {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-main);
}

.version-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.version-link:hover {
  text-decoration: underline;
}

.view-all-releases {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  align-self: flex-start;
  margin-top: 4px;
}

.view-all-releases:hover {
  color: var(--cyan);
}

/* System Band & Capabilities */
.section-heading-wrapper h2 {
  font-size: 2.5rem;
  font-weight: 850;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-heading-wrapper p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.capability {
  padding: 32px;
}

.capability-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 18px;
  display: inline-block;
  background: var(--cyan-dim);
  padding: 2px 8px;
  border-radius: 4px;
}

.capability h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.capability p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Info Panel (Video presentation) */
.info-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px 48px;
  text-align: center;
}

.info-card h2 {
  font-size: 2.25rem;
  font-weight: 850;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.info-card p {
  font-size: 1.08rem;
  color: var(--text-muted-strong);
  line-height: 1.65;
}

/* FAQ Panel */
.faq-layout-wrapper {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.faq-layout-wrapper .section-heading {
  margin-bottom: 40px;
}

.faq-layout-wrapper .section-heading h2 {
  font-size: 2.5rem;
  font-weight: 850;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

details {
  padding: 18px 24px;
}

summary {
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

details[open] summary::after {
  transform: rotate(45deg);
  color: var(--cyan);
}

details p {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer (Integrated at bottom of scroll-experience) */
.site-footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
  width: 100%;
  background: rgba(2, 4, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-weight: 500;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .download-grid-layout {
    gap: 32px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .video-bg-container {
    display: none !important;
  }

  .showcase-spacer {
    display: none !important;
  }

  .site-header {
    padding: 0 16px;
  }
  
  .nav-links {
    display: none;
  }
  
  .panel-section {
    padding: 100px 0 60px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .capability-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .info-card {
    padding: 30px 24px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.15rem;
  }
  
  .download-panel {
    padding: 20px;
  }
}

/* Showcase Spacer Sizing */
.showcase-spacer {
  position: relative;
  width: 100%;
}

/* Light Theme Transition Styles */
body.light-theme {
  background-color: #f5f7fa;
  color: #1e293b;
}

body.light-theme .video-bg-container {
  opacity: 0;
  pointer-events: none;
}

/* Smooth transitions for all elements switching theme colors */
h1, h2, h3, p, span, a, .glass-card, .site-header, .site-footer, summary, summary::after, details p, .form-input, .brand-mark, .nav-links {
  transition: color var(--transition-normal), background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), opacity var(--transition-normal);
}

/* Light theme overrides for all headings, labels, kickers, and copy */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme summary {
  color: #0f172a;
}

body.light-theme p,
body.light-theme span,
body.light-theme .hero-subtitle {
  color: #334155;
}

body.light-theme .section-kicker {
  color: #0284c7;
}

body.light-theme .scroll-hint {
  color: #0284c7;
}

/* Glass Cards in Light Theme */
body.light-theme .glass-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.light-theme .glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.15);
}

/* Forms in Light Theme */
body.light-theme .form-input {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-theme .form-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* Floating pill Header in Light Theme */
body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.light-theme .brand-mark {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.2);
}

body.light-theme .nav-links {
  color: #64748b;
}

body.light-theme .nav-links a:hover {
  color: #0f172a;
}

body.light-theme .header-cta {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.2);
  color: #0284c7;
}

body.light-theme .header-cta:hover {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.2);
}

body.light-theme .header-cta.joined {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* FAQ Details in Light Theme */
body.light-theme #faq summary::after {
  color: #64748b;
}

body.light-theme #faq details[open] summary::after {
  color: #0284c7;
}

body.light-theme #faq details p,
body.light-theme #setup-help p {
  color: #475569;
}

/* Footer in Light Theme */
body.light-theme .site-footer {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
}

body.light-theme .site-footer a {
  color: #334155;
}

body.light-theme .site-footer a:hover {
  color: #0284c7;
}

/* On the landing page, hide the content wrapper until the light theme triggers */
.landing-page .content-wrapper {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.landing-page.light-theme .content-wrapper {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Glossy 3D Watermark Styles */
.bg-watermark-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-slow);
  perspective: 1000px;
  overflow: hidden;
}

body.light-theme .bg-watermark-container {
  opacity: 1;
}

.bg-watermark {
  font-family: var(--font-sans);
  font-size: clamp(6rem, 18vw, 15rem);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  
  /* Glossy Metallic Gradient with Sky Blue & White Shimmer */
  background: linear-gradient(
    120deg,
    #94a3b8 20%, /* Lighter Slate */
    #38bdf8 40%, /* Brighter Sky Blue */
    #ffffff 50%, /* White Shimmer */
    #38bdf8 60%, /* Brighter Sky Blue */
    #94a3b8 80%  /* Lighter Slate */
  );
  background-size: 200% 100%;
  background-position: -150% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  
  /* Dynamic 3D depth reflection drop shadows */
  filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.12))
          drop-shadow(0 2px 4px rgba(255, 255, 255, 0.8));
          
  opacity: 0.38; /* Pronounced premium watermark effect */
  
  /* Smooth easing for 3D mouse tilt movement */
  transition: transform 0.25s cubic-bezier(0.1, 0.8, 0.2, 1);
  
  /* Infinite Shimmer animation */
  animation: watermark-shimmer 7s infinite linear;
}

@keyframes watermark-shimmer {
  0% {
    background-position: -150% 0;
  }
  35% {
    background-position: 150% 0;
  }
  100% {
    background-position: 150% 0;
  }
}

/* Inline Mobile Demo Video styles */
.mobile-only-text,
.mobile-demo-video-container {
  display: none !important;
}

.mobile-demo-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  background-color: #04080a;
  margin-top: 24px;
}

/* Light theme overrides for mobile demo video border */
body.light-theme .mobile-demo-video {
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
  .desktop-only-text {
    display: none !important;
  }
  
  .mobile-only-text {
    display: block !important;
  }
  
  .mobile-demo-video-container {
    display: block !important;
  }
}

/* Legal Pages Styling */
.legal-container {
  max-width: 900px;
  margin: 120px auto 60px;
  padding: 40px;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.legal-content .last-updated {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-main);
  border-left: 3px solid var(--cyan);
  padding-left: 12px;
}

.legal-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .legal-container {
    margin-top: 100px;
    padding: 24px;
  }
  .legal-content h1 {
    font-size: 2rem;
  }
}

/* Accessibility Adjustments (IS 5568 / WCAG AA) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  background: var(--cyan);
  color: var(--bg-dark);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: top 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link:focus {
  top: 24px;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 24px rgba(73, 246, 220, 0.6);
}

/* Keyboard focus indicators */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  box-shadow: 0 0 16px rgba(73, 246, 220, 0.4);
}

/* Ensure focus states on default elements */
a:focus, button:focus {
  outline: none; /* Handled gracefully by focus-visible for keyboard users */
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
}
