/* ============================================================
   OnePanel Nexus — Redesigned Pages Stylesheet
   Modern Design for About, Privacy Policy, Terms of Service, Cookie Policy
   ============================================================ */

/* ---- Page Hero ---- */
.page-hero {
  padding: var(--space-24) 0 var(--space-20);
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  animation: float 20s ease-in-out infinite;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .badge {
  background: rgba(255,255,255,0.2);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: var(--space-6);
}

.page-hero h1 {
  font-size: var(--text-5xl);
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto var(--space-6);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-hero p {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}

/* ---- About Page Specific ---- */
.about-block {
  background: var(--color-bg-secondary);
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: center;
  text-align: left;
}

.about-text h2 {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-neutral-900);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  font-size: var(--text-lg);
  color: var(--color-neutral-600);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  display: block;
}

/* ---- Story Section ---- */
.story-block {
  background: white;
  text-align: center;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: center;
  text-align: left;
}

.story-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  display: block;
}

.story-text h2 {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-neutral-900);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story-text p {
  font-size: var(--text-lg);
  color: var(--color-neutral-600);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.story-text p:last-child {
  margin-bottom: 0;
}

/* ---- Innovation Section ---- */
.innovation-block {
  text-align: center;
}

.innovation-content {
  max-width: 1000px;
  margin: 0 auto;
}

.innovation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.innovation-item {
  background: white;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.innovation-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.innovation-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.innovation-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  box-shadow: var(--shadow-lg);
  color: white;
}

.innovation-item h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-neutral-900);
  margin-bottom: var(--space-3);
}

.innovation-item p {
  font-size: var(--text-base);
  color: var(--color-neutral-600);
  line-height: 1.7;
}

/* ---- Values Section ---- */
.values-block {
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.value-card {
  background: white;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.value-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  box-shadow: var(--shadow-lg);
}

.value-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-neutral-900);
  margin-bottom: var(--space-3);
}

.value-card p {
  font-size: var(--text-base);
  color: var(--color-neutral-600);
  line-height: 1.7;
}

/* ---- Team Section ---- */
.team-block {
  background: var(--color-bg-accent);
  text-align: center;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin: var(--space-16) 0;
}

.team-stat {
  background: white;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.team-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.team-stat .stat-number {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--color-neutral-900);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.team-stat .stat-label {
  font-size: var(--text-base);
  color: var(--color-neutral-600);
  font-weight: 500;
}

.team-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* ---- Legal Pages ---- */
.legal-container {
  max-width: 900px;
}

.legal-content {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-16);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-neutral-200);
}

.legal-intro {
  font-size: var(--text-lg);
  color: var(--color-neutral-600);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid var(--color-neutral-200);
}

.legal-section {
  margin-bottom: var(--space-12);
}

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

.legal-section h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-neutral-900);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-section p {
  font-size: var(--text-base);
  color: var(--color-neutral-700);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

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

.legal-section a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.legal-section a:hover {
  color: var(--color-primary-dark);
}

.legal-section strong {
  color: var(--color-neutral-900);
  font-weight: 600;
}

/* ---- Responsive Design ---- */
@media (max-width: 768px) {
  .page-hero {
    padding: var(--space-16) 0 var(--space-12);
  }

  .page-hero h1 {
    font-size: var(--text-4xl);
  }

  .about-grid,
  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }

  .about-text h2,
  .story-text h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
  }

  .about-photo,
  .story-photo {
    height: 280px;
  }

  .values-grid,
  .innovation-grid {
    grid-template-columns: 1fr;
  }

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

  .team-cta {
    flex-direction: column;
    align-items: center;
  }

  .legal-content {
    padding: var(--space-8);
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: var(--text-3xl);
  }

  .about-text h2,
  .story-text h2 {
    font-size: var(--text-2xl);
  }

  .team-stats {
    grid-template-columns: 1fr;
  }
}