/* ======================================
   publie.ai — Subpages Styles
   ====================================== */

.subpage-body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  overflow-x: hidden;
}

/* ---- Navbar Adjustment for Subpages ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  z-index: 1000;
  background: rgba(248, 246, 242, 0);
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  height: 64px;
  background: rgba(248, 246, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-menu-wrapper {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  margin-left: 48px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Legal Page Header ---- */
.legal-hero {
  position: relative;
  padding: 160px 6% 80px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.legal-hero-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.legal-title {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

.legal-meta {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* ---- Legal Layout ---- */
.legal-content-wrapper {
  max-width: 860px;
  margin: 60px auto 120px;
  padding: 0 24px;
  animation: fade-in-up 0.8s ease-out forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  padding: 28px;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: 56px;
  box-shadow: var(--shadow-sm);
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 8px;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.legal-section ul {
  list-style: none;
  margin-bottom: 20px;
  padding-left: 4px;
}

.legal-section li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-secondary);
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
}

.legal-section li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1.1;
  top: 0;
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* About Us Page specific styling */

.subpage-body {
  /* Let the global background show through */
}

/* Hero Section */
.legal-hero {
  position: relative;
  text-align: center;
  padding: 120px 20px 60px;
  /* Increased padding to match the first screenshot */
}

.legal-title {
  font-size: 4.5rem;
  /* Matched size from first screenshot */
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.text-secondary {
  color: var(--text-secondary);
  font-weight: 600;
}

.legal-meta {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.legal-hero-ambient {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

/* Content Wrapper */
.legal-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Intro Callout */
.legal-intro {
  background: rgba(244, 124, 72, 0.04);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 32px 40px;
  margin-bottom: 64px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Pillars Grid */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.pillar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.pillar-card--accent {
  border: 1px solid rgba(244, 124, 72, 0.3);
  box-shadow: 0 8px 30px rgba(244, 124, 72, 0.06);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.pillar-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(244, 124, 72, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.pillar-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: white;
  border: 1px solid rgba(244, 124, 72, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.pillar-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Bullets with orange checkmark */
.pillar-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.pillar-bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
}

.pillar-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23F47C48" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Stats Strip */
.about-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 64px;
  text-align: center;
}

.stat-item {
  flex: 1;
  padding: 0 16px;
}

.stat-val {
  font-size: 1.75rem;
  /* adjusted for words instead of numbers */
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.5;
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: var(--border);
}

/* Team Section */
.legal-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  border: none;
  padding-bottom: 0;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .about-pillars {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }
}

@media (max-width: 600px) {
  .about-stats {
    flex-direction: column;
  }
}

/* ---- Accordion Styles overrides for Standalone FAQ ---- */
.faq-category {
  margin-bottom: 56px;
}

.faq-category-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-category-icon {
  background: var(--accent-light);
  color: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}

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

.faq-page-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  background: var(--card-bg);
}

.faq-page-item.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  background: var(--card-bg);
}

.faq-page-question {
  width: 100%;
  padding: 24px 28px;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 800;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  gap: 16px;
  transition: color var(--transition);
}

.faq-page-question:hover {
  color: var(--accent);
}

.faq-page-question .icon {
  font-size: 1.6rem;
  font-weight: 300;
  transition: transform var(--transition);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.faq-page-item.active .faq-page-question .icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-page-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 28px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-page-item.active .faq-page-answer {
  max-height: 400px;
  /* High enough to allow full answer content */
  padding-bottom: 24px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .legal-title {
    font-size: 3.2rem;
  }

  .legal-hero {
    padding: 140px 6% 72px;
  }
}

@media (max-width: 768px) {

  .navbar,
  .navbar.scrolled {
    height: 72px !important;
    min-height: unset !important;
    padding: 0 5% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .nav-menu-wrapper {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 300px !important;
    height: 100vh !important;
    background: #FFFFFF !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05) !important;
    padding: 100px 40px 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 40px !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1050 !important;
  }

  .nav-menu-wrapper.active {
    right: 0 !important;
  }

  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
    width: 100% !important;
  }

  .nav-links li {
    list-style: none !important;
  }

  .nav-links a {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
  }

  .nav-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
    margin-top: auto !important;
  }

  .nav-menu-wrapper .nav-actions .btn {
    width: 100% !important;
    padding: 12px !important;
    font-size: 1rem !important;
  }

  .nav-actions .btn-ghost {
    display: flex !important;
    justify-content: center !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
  }

  .nav-actions .btn-primary {
    display: flex !important;
    justify-content: center !important;
  }

  .legal-title {
    font-size: 2.5rem;
  }

  .legal-hero {
    padding: 120px 6% 56px;
  }

  .legal-meta {
    font-size: 1rem;
  }

  .legal-content-wrapper {
    margin: 44px auto 96px;
    padding: 0 18px;
  }

  .legal-intro {
    padding: 22px;
    margin-bottom: 40px;
  }

  .legal-section {
    margin-bottom: 36px;
  }

  .faq-category-title {
    font-size: 1.4rem;
  }

  .faq-page-question {
    padding: 20px 24px;
    font-size: 1rem;
  }

  .faq-page-item.active .faq-page-answer {
    padding-bottom: 20px;
  }
}

@media (max-width: 480px) {

  .navbar,
  .navbar.scrolled {
    height: auto !important;
    padding: 12px 5% !important;
    gap: 10px;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-actions .btn {
    width: min(100%, 220px);
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  .legal-title {
    font-size: 2rem;
  }

  .legal-hero {
    padding: 108px 5% 48px;
  }

  .legal-content-wrapper {
    padding: 0 14px;
  }

  .legal-intro {
    padding: 18px;
    border-left-width: 3px;
    margin-bottom: 32px;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .legal-section p,
  .legal-section li {
    font-size: 0.95rem;
  }

  .legal-section li {
    padding-left: 24px;
  }

  .faq-category {
    margin-bottom: 40px;
  }

  .faq-category-title {
    font-size: 1.2rem;
    gap: 10px;
  }

  .faq-category-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .faq-page-question {
    padding: 18px 18px;
    font-size: 0.95rem;
    gap: 12px;
  }

  .faq-page-answer {
    padding: 0 18px;
    font-size: 0.95rem;
  }

  .faq-page-item.active .faq-page-answer {
    padding-bottom: 18px;
  }
}