/* ==========================================================================
   THE FIRST LABS — APP DETAIL & LEGAL PAGES (WHITE & BLUE)
   ========================================================================== */

.app-detail-hero {
  padding: 5rem 0 3.5rem;
  background: var(--brand-gradient-soft);
  border-bottom: 1px solid var(--card-border);
}

.app-detail-header-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.app-detail-brand-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.app-detail-icon-large {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.15);
  border: 2px solid #ffffff;
  object-fit: cover;
}

.app-detail-titles h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.app-detail-titles p {
  font-size: 1.15rem;
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.app-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Feature Cards */
.detail-feature-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  transition: all 0.25s var(--ease);
}

.detail-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-float);
}

.detail-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--badge-border);
}

.detail-feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.detail-feature-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Screenshots Gallery */
.screenshots-gallery-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.screenshot-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease);
  background: #000000;
}

.screenshot-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-float);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Spec Table */
.spec-table-container {
  background: var(--bg-surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.spec-table th, .spec-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.95rem;
}

.spec-table th {
  background: var(--bg-surface-subtle);
  font-weight: 700;
  color: var(--text-main);
  width: 30%;
}

.spec-table td {
  color: var(--text-body);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

/* Legal Card */
.legal-content-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-card);
  max-width: 920px;
  margin: 0 auto;
}

.legal-content-card h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--card-border);
}

.legal-body {
  color: var(--text-body);
  font-size: 1.025rem;
  line-height: 1.8;
}

.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-body p {
  margin-bottom: 1.25rem;
}

.legal-body ul, .legal-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-body a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
}

.legal-body a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .app-detail-header-card {
    padding: 2rem;
  }
  .app-detail-brand-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .legal-content-card {
    padding: 2rem 1.5rem;
  }
}
