/* Ultrahuman China - Coming Soon Page Styles */
/* Adapted from React styled-components patterns */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #fff;
  background: #000;
  min-height: 100vh;
}

/* Section Layout - Based on SectionContent from React */
.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.section-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

/* Background Layer - Based on BackgroundLayer from React */
.background-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.background-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #9ca3af 0%, #d1d5db 50%, #9ca3af 100%);
}

/* Content Column - Flex container for text + foreground image */
.content-column {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Foreground Image Wrapper - Based on ForegroundImageWrapper from React */
.foreground-wrapper {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
}

.foreground-image {
  width: 100%;
  height: 100%;
  max-width: 600px;
  object-fit: contain;
  object-position: bottom center;
}

/* Content Container - Based on Content from React */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  padding-top: 96px;
  padding-inline: 16px;
}

/* Text Stack - Based on TextStack from React */
.text-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

/* Typography - Banner styles based on React code */
.banner-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.banner-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 420px;
}

/* Coming Soon Badge - emphasizes the coming soon message */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.coming-soon {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Footer - At bottom with black background */
.footer {
  position: relative;
  z-index: 2;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: #000;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer a:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-radius: 2px;
}

.copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.icp-filing {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.icp-filing a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.icp-filing a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Legal Pages Styles */
.legal-page {
  position: relative;
  background: #f5f5f5;
  color: #1a1a1a;
  min-height: 100vh;
  min-height: 100svh;
}

.legal-page .background-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.legal-page .background-gradient {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.legal-header {
  position: relative;
  z-index: 1;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-link {
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #000;
}

.back-link:focus {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
  border-radius: 2px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
}

.legal-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px 120px;
}

.legal-content h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 32px;
  color: #111;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.legal-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #374151;
}

.effective-date {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

.legal-intro {
  background: rgba(0, 0, 0, 0.03);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.legal-intro p {
  margin-bottom: 12px;
}

.legal-intro p:last-child {
  margin-bottom: 0;
}

.synopsis {
  background: rgba(59, 130, 246, 0.05);
  border-left: 4px solid #3b82f6;
  padding: 16px 20px;
  margin-bottom: 32px;
  border-radius: 0 8px 8px 0;
}

.synopsis h2 {
  margin-top: 0;
  color: #2563eb;
}

.highlight-list {
  list-style: none;
  padding-left: 0;
}

.highlight-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  font-weight: 500;
  color: #1f2937;
}

.highlight-list li::before {
  content: "💡";
  position: absolute;
  left: 0;
  top: 0;
}

.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ol li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #374151;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #374151;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content figure {
  margin: 8px 0 20px;
}

.legal-content .legal-image {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.legal-content th,
.legal-content td {
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: #374151;
}

.legal-content th {
  background: rgba(0, 0, 0, 0.03);
  color: #1f2937;
  font-weight: 600;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: #374151;
}

.legal-footer {
  position: relative;
  z-index: 1;
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 48px;
}

.legal-footer a {
  color: #6b7280;
  text-decoration: none;
  margin-left: 8px;
}

.legal-footer a:hover {
  color: #374151;
}

.legal-footer a:focus {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Desktop Responsive Styles */
@media (min-width: 768px) {
  .content {
    padding-top: 120px;
    padding-inline: 32px;
    gap: 16px;
  }

  .foreground-wrapper {
    padding: 0 32px;
  }

  .foreground-image {
    max-width: 700px;
  }

  .banner-title {
    font-size: 56px;
  }

  .banner-subtitle {
    font-size: 18px;
  }

  .coming-soon-badge {
    padding: 16px 40px;
    margin-top: 24px;
  }

  .coming-soon {
    font-size: 20px;
  }

  .footer {
    padding: 20px 32px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 24px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-legal {
    flex-direction: row;
    gap: 16px;
    align-items: center;
  }

  .legal-header {
    padding: 32px;
  }

  .legal-content {
    padding: 48px 32px 140px;
  }

  .legal-content h1 {
    font-size: 40px;
  }

  .legal-footer {
    padding: 32px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .banner-subtitle {
    color: #fff;
  }

  .footer {
    color: #fff;
  }

  .footer a {
    color: #fff;
    text-decoration: underline;
  }
}
