/* ===== PAGES CSS ===== */
/* Common styling for Privacy, Terms, and Contact Pages */
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
}

.page-header {
  padding: 110px 0 32px;
  background: linear-gradient(180deg, var(--surface-container-low) 0%, var(--surface) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 18px;
  color: var(--on-surface-variant);
  max-width: 600px;
  margin: 0 auto;
}

/* Legal Documents Content (Privacy, Terms) */
.legal-content {
  padding: 24px 0 80px;
  background: radial-gradient(circle at 50% 50%, #fcfdff 0%, #f1f5f9 100%);
  position: relative;
  overflow: clip;
}

.legal-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 6px 16px;
  border-radius: 100px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.legal-header-badge svg {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.page-header p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-header p svg {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.legal-card {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.03);
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  overflow: clip;
}

/* Sidebar styling matching design layout */
.legal-sidebar {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid #f1f5f9;
  padding: 40px 24px;
  background: #fafbfd;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.legal-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 550;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.legal-menu-item a svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  stroke: #64748b;
  fill: none;
  transition: all 0.2s ease;
}

.legal-menu-item.active a {
  background: #eff6ff;
  color: #2563eb;
}

.legal-menu-item.active a svg {
  stroke: #2563eb;
}

.legal-menu-item a:hover:not(.active a) {
  background: #f1f5f9;
  color: var(--primary);
}

.legal-trust-box {
  background: #f0f7ff;
  border-radius: 16px;
  padding: 20px;
  border: 1px dashed rgba(37, 99, 235, 0.2);
}

.legal-trust-box h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-trust-box h4 svg {
  width: 16px;
  height: 16px;
  stroke: #2563eb;
  fill: none;
}

.legal-trust-box p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #1e3a8a;
  margin: 0;
  opacity: 0.85;
}

/* Body / Right Column content area */
.legal-body {
  flex: 1;
  padding: 48px 56px;
  position: relative;
}

.legal-doc-graphic {
  position: absolute;
  top: 32px;
  right: 48px;
  width: 120px;
  height: auto;
  pointer-events: none;
  opacity: 0.9;
}

/* Section Title numbers badge */
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #e2e8f0;
}

.section-title:first-of-type {
  margin-top: 0;
}

.section-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.section-title h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.subsection-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 14px;
}

.subsection-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
}

.subsection-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.subsection-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2563eb;
  margin: 0;
}

.examples-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0 24px;
  border: 1px solid #f1f5f9;
}

.examples-box h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  margin: 0 0 12px;
}

.examples-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.examples-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #475569;
}

.examples-item svg {
  color: #10b981;
  margin-top: 3px;
  flex-shrink: 0;
}

.legal-body p,
.legal-body li {
  font-size: 15px;
  color: var(--on-surface-variant);
  line-height: 1.65;
  margin-bottom: 14px;
}

.legal-body ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.legal-body li {
  margin-bottom: 6px;
}

@media (max-width: 992px) {
  .legal-card {
    flex-direction: column;
    overflow: visible;
  }

  .legal-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
    gap: 0;
    background: #ffffff;
    position: -webkit-sticky;
    position: sticky;
    top: 56px;
    /* Sticks exactly below mobile header */
    z-index: 10;
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.05);
  }

  .legal-menu {
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 2px 0;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
  }

  .legal-menu::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari/Opera */
  }

  .legal-menu-item {
    flex-shrink: 0;
  }

  .legal-menu-item a {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
    gap: 8px;
  }

  .legal-menu-item a svg {
    width: 15px;
    height: 15px;
    stroke-width: 2;
  }

  .legal-body {
    padding: 32px 24px;
  }

  .legal-trust-box {
    display: none;
  }

  .page-header {
    padding: 85px 0 24px;
  }

  .legal-content {
    padding: 16px 0 60px;
  }
}

@media (max-width: 768px) {
  .legal-body {
    padding: 24px 16px;
  }

  .page-header {
    padding: 75px 0 20px;
  }

  .legal-content {
    padding: 12px 0 48px;
  }
}

/* ===== NEW PREMIUM CONTACT PAGE ===== */
.contact-page-bg {
  min-height: 100vh;
  padding: 85px 0 65px;
  /* Comfortable middle ground padding */
  background: radial-gradient(circle at 50% 50%, #fcfdff 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Decorators */
.contact-bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.contact-deco-item {
  position: absolute;
  opacity: 0.85;
}

.contact-deco-books {
  left: 6%;
  bottom: 8%;
  width: 170px;
}

.contact-deco-plane {
  right: 6%;
  top: 16%;
  /* Slightly adjusted position */
  width: 180px;
}

.contact-deco-cap {
  left: 10%;
  top: 20%;
  width: 70px;
  opacity: 0.25;
}

.contact-deco-dots-left {
  left: 4%;
  top: 40%;
  opacity: 0.35;
}

.contact-deco-dots-right {
  right: 4%;
  bottom: 15%;
  opacity: 0.35;
}

/* Form Container Card */
.contact-container-premium {
  max-width: 900px;
  /* Made slightly narrower for a more focused and compact layout */
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.contact-card-premium {
  background: #ffffff;
  border-radius: 32px;
  padding: 40px 48px 48px;
  /* Tighter padding to fit exactly in viewport above-the-fold */
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.05), 0 0 1px 1px rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
}

/* Header Section */
.contact-header-premium {
  text-align: center;
  margin-bottom: 20px;
  /* Relaxed from 16px for a cleaner gap */
}

.contact-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.06);
  color: #2563eb;
  padding: 4px 14px;
  /* Tighter padding */
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
  /* Reduced from 16px */
}

.contact-badge-premium svg {
  fill: currentColor;
}

.contact-title-premium {
  font-size: clamp(26px, 3.5vw, 34px);
  /* Slightly smaller font size to fit neatly */
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.contact-title-premium span.brand-campus {
  color: #2563eb;
}

.contact-title-premium span.brand-or {
  color: #10b981;
}

.contact-subtitle-premium {
  font-size: 14.5px;
  color: #475569;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Form separator with Star */
.contact-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0;
  /* Relaxed from 14px for a cleaner gap */
  position: relative;
}

.contact-separator::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.25) 0%, transparent 80%);
}

.contact-separator-star {
  position: relative;
  background: #ffffff;
  padding: 0 12px;
  color: #2563eb;
  display: flex;
}

/* Premium Inputs Grid */
.contact-grid-premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  /* Tighter spacing between fields */
}

.contact-field-group-premium {
  position: relative;
}

.contact-field-group-premium.full-width {
  grid-column: span 2;
}

.contact-input-box-premium {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  /* Slightly smoother border radius */
  padding: 13px 22px;
  /* Comfortable padding matching the mockup proportions */
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-input-box-premium:hover {
  border-color: #cbd5e1;
}

.contact-input-box-premium:focus-within {
  border-color: #2563eb;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
}

.contact-input-icon-premium {
  color: #3b82f6;
  display: flex;
  flex-shrink: 0;
}

.contact-input-content-premium {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-input-label-premium {
  font-size: 12px;
  /* Slightly larger, more readable label */
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
  /* Clear spacing below label */
  cursor: pointer;
}

.contact-field-premium {
  border: none;
  background: transparent;
  padding: 0px;
  font-family: inherit;
  font-size: 15px;
  /* Larger text inputs matching mockup */
  color: #0f172a;
  width: 100%;
  outline: none;
}

.contact-field-premium::placeholder {
  color: #94a3b8;
}

.contact-input-box-premium.textarea-box {
  align-items: flex-start;
  padding-top: 12px;
}

.contact-input-box-premium.textarea-box textarea {
  resize: none;
  min-height: 60px;
  /* Reduced textarea height to prevent vertical scrolling on the page */
}

/* Status Message */
.cta-status-message {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
}

/* Trust Badges Row */
.contact-trust-row-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  /* Reduced from 40px */
  padding-top: 24px;
  /* Reduced from 32px */
  border-top: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.contact-trust-item-premium {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.contact-trust-item-premium:not(:first-child) {
  border-left: 1px solid #e2e8f0;
}

.contact-trust-icon-premium {
  color: #3b82f6;
  display: flex;
  flex-shrink: 0;
}

.contact-trust-content-premium {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.contact-trust-title-premium {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.contact-trust-desc-premium {
  font-size: 11px;
  color: #64748b;
}

/* Submit Button Overlap styling */
.contact-submit-btn-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  padding: 16px 44px;
  /* Slightly reduced button padding */
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 32px auto 0;
  width: fit-content;
}

.contact-submit-btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.contact-submit-btn-premium:active {
  transform: translateY(0);
}

.contact-submit-btn-premium svg {
  fill: currentColor;
  transition: transform 0.3s ease;
}

.contact-submit-btn-premium:hover svg {
  transform: translate(2px, -2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-page-bg {
    padding: 90px 12px 60px;
  }

  .contact-card-premium {
    padding: 28px 16px 36px !important;
    border-radius: 20px !important;
  }

  .contact-container-premium {
    padding: 0 4px !important;
  }

  .contact-grid-premium {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .contact-field-group-premium.full-width {
    grid-column: span 1 !important;
  }

  .contact-header-premium {
    margin-bottom: 14px !important;
  }

  .contact-title-premium {
    font-size: 22px !important;
  }

  .contact-subtitle-premium {
    font-size: 13px !important;
  }

  .contact-separator {
    margin: 12px 0 !important;
  }

  .contact-input-box-premium {
    padding: 11px 14px !important;
    gap: 12px !important;
    border-radius: 12px !important;
  }

  .contact-input-icon-premium svg {
    width: 20px !important;
    height: 20px !important;
  }

  .contact-input-label-premium {
    font-size: 11px !important;
  }

  .contact-field-premium {
    font-size: 14px !important;
  }

  .contact-input-box-premium.textarea-box textarea {
    min-height: 50px !important;
  }

  .contact-submit-btn-premium {
    width: 100% !important;
    padding: 14px 28px !important;
    font-size: 14.5px !important;
    margin: 20px 0 0 !important;
    border-radius: 14px !important;
  }

  .contact-deco-books,
  .contact-deco-plane,
  .contact-deco-cap,
  .contact-deco-dots-left,
  .contact-deco-dots-right {
    display: none !important;
  }
}

/* ===== TERMS PAGE CUSTOM PREMIUM STYLES (PURPLE THEME) ===== */
.terms-badge {
  background: #f5f3ff;
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: #7c3aed;
}

.terms-menu .legal-menu-item.active a {
  background: #f5f3ff;
  color: #7c3aed;
}

.terms-menu .legal-menu-item.active a svg {
  stroke: #7c3aed;
}

.terms-menu .legal-menu-item a:hover:not(.active a) {
  background: #faf5ff;
  color: #7c3aed;
}

.terms-trust-box {
  background: #faf5ff;
  border: 1px dashed rgba(124, 58, 237, 0.2);
}

.terms-trust-box h4 {
  color: #4c1d95;
}

.terms-trust-box h4 svg {
  stroke: #7c3aed;
}

.terms-trust-box p {
  color: #4c1d95;
  opacity: 0.85;
}

.terms-title {
  border-bottom-color: #f3e8ff;
}

.terms-num {
  background: #7c3aed;
}

.terms-title h2 {
  color: #4c1d95;
}

.terms-box {
  background: #fafafc;
  border-color: #f3e8ff;
}

.terms-box h5 {
  color: #6b21a8;
}