/* Inner page styles (About, FAQ, Privacy, Refund, Terms, Careers).
   Loaded after landing.css, which provides the tokens, header and footer. */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.lp-footer {
  margin-top: auto;
}

/* ---------- Content pages: About, FAQ, Privacy, Refund, Terms ---------- */
.terms-container {
  position: relative;
  flex: 1;
  padding: 72px 0 var(--lp-section-gap);
  overflow: hidden;
}

/* Same glow family as the landing hero, scaled down for a page title. */
.terms-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 560px;
  background:
    radial-gradient(45% 70% at 50% -12%, rgba(106, 44, 255, 0.75) 0%, rgba(106, 44, 255, 0.3) 45%, rgba(106, 44, 255, 0) 100%),
    radial-gradient(30% 60% at 12% 10%, rgba(34, 91, 255, 0.35) 0%, rgba(34, 91, 255, 0) 100%),
    var(--lp-hero-base);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
}

.terms-container .container {
  position: relative;
  width: min(1100px, 100% - 2 * var(--lp-gutter));
  margin-inline: auto;
}

#mainTitle {
  margin-bottom: 40px;
  font-family: var(--lp-font-display);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.17;
  letter-spacing: -1px;
  text-align: center;
  color: var(--lp-white);
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.terms-section {
  padding: 48px 56px;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: linear-gradient(233deg, rgba(153, 33, 254, 0.14) 3.685%, rgba(18, 0, 33, 0.49) 70.864%);
  -webkit-backdrop-filter: blur(12.5px);
  backdrop-filter: blur(12.5px);
}

/* Text delivered by the content API */
.terms-section p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.85);
}

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

.terms-section strong {
  color: var(--lp-white);
}

/* The API marks section headings as a paragraph holding only bold text. */
.terms-section p:has(> strong:only-child) {
  margin-top: 28px;
  font-size: 18px;
  line-height: 28px;
  color: var(--lp-lilac);
}

.terms-section p:has(> strong:only-child):first-child {
  margin-top: 0;
}

.terms-section p:has(> strong:only-child) strong {
  color: inherit;
}

.terms-section h2,
.terms-section h3 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  color: var(--lp-offwhite);
}

.terms-section ul,
.terms-section ol {
  margin: 0 0 14px;
  padding-left: 21px;
  list-style: disc;
}

.terms-section ol {
  list-style: decimal;
}

.terms-section li {
  margin-bottom: 6px;
  font-size: 14.5px;
  line-height: 24px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.85);
}

.terms-section a {
  color: var(--lp-mauve);
  text-decoration: underline;
}

.terms-section address {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--lp-line-soft);
  border-radius: 8px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--lp-line-soft);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item:hover {
  border-color: var(--lp-white-60);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(18, 0, 33, 0.35);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--lp-text-soft);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.06);
}

.faq-question.active {
  background: rgba(153, 33, 254, 0.2);
  color: var(--lp-mauve);
}

.faq-question i {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--lp-mauve);
  transition: transform 0.3s;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  padding: 0 22px;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer.show {
  max-height: 500px;
  padding: 18px 22px;
  border-top: 1px solid var(--lp-line-soft);
}

.faq-answer p {
  margin: 0;
}

/* ---------- Careers (overrides job-details.css) ---------- */
:root {
  --job-details-blue-50: rgba(153, 33, 254, 0.14);
  --job-details-blue-100: rgba(255, 255, 255, 0.2);
  --job-details-blue-200: rgba(255, 255, 255, 0.33);
  --job-details-blue-300: #d4a1ff;
  --job-details-blue-400: #d06bff;
  --job-details-blue-500: #d4a1ff;
  --job-details-blue-600: #bc6dff;
  --job-details-blue-700: #ebd3ff;
  --job-details-blue-800: #fffefa;
  --job-details-black: #ffffff;
  --job-details-gray-600: rgba(255, 255, 255, 0.8);
  --job-details-gray-200: #a5a7b5;
  --job-details-purple-100: #a5a7b5;
  --job-details-lavender: #120021;
  --job-details-card-bg: linear-gradient(233deg, rgba(153, 33, 254, 0.14) 3.685%, rgba(18, 0, 33, 0.49) 70.864%);
  --job-details-radius-lg: 12px;
  --job-details-radius-md: 8px;
  --job-details-radius-sm: 4px;
  --job-details-shadow-soft: none;
  --job-details-shadow-medium: none;
  --job-details-shadow-hover: 0 0 40px 0 rgba(106, 44, 255, 0.45);
}

.job-details-header {
  padding: 7.2rem 0 9.6rem;
  background:
    radial-gradient(45% 80% at 50% -12%, rgba(106, 44, 255, 0.75) 0%, rgba(106, 44, 255, 0.3) 45%, rgba(106, 44, 255, 0) 100%),
    radial-gradient(30% 70% at 12% 10%, rgba(34, 91, 255, 0.35) 0%, rgba(34, 91, 255, 0) 100%),
    var(--lp-hero-base);
}

.job-details-header::before {
  display: none;
}

.job-details-header h1 {
  font-family: var(--lp-font-display);
  font-size: clamp(34px, 3.4vw, 48px) !important;
  font-weight: 400 !important;
  line-height: 1.17;
  letter-spacing: -1px;
}

.job-details-header .lead {
  font-size: 16px;
  line-height: 24px;
}

.job-details-header-logo {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--lp-line);
  box-shadow: none;
}

.job-details-tagline-badge {
  border-color: var(--lp-line);
  border-radius: 4px;
  background: transparent;
  font-family: var(--lp-font-label);
  letter-spacing: 1px;
}

.job-details-carousel-container,
.job-details-item,
.job-details-description,
.job-details-quick-apply,
.job-details-job-header {
  border: 1px solid var(--lp-line);
  -webkit-backdrop-filter: blur(12.5px);
  backdrop-filter: blur(12.5px);
}

.job-details-carousel-container {
  background: linear-gradient(233deg, rgba(153, 33, 254, 0.14) 3.685%, rgba(18, 0, 33, 0.85) 70.864%), var(--lp-bg);
}

.job-details-carousel-title,
.job-details-section-title {
  font-family: var(--lp-font-display);
  font-weight: 500;
}

.job-details-carousel-control-prev,
.job-details-carousel-control-next {
  background: var(--lp-bg-deep);
  border: 1px solid var(--lp-white-60);
  border-radius: 8px;
}

.job-details-carousel-control-prev:hover,
.job-details-carousel-control-next:hover {
  background: #2c0a4d;
}

.job-details-card {
  background: rgba(18, 0, 33, 0.35);
  border: 1px solid var(--lp-line);
}

.job-details-card:hover,
.job-details-card.active {
  border-color: var(--lp-mauve);
}

.job-details-card.active {
  background: rgba(153, 33, 254, 0.2);
}

.job-details-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--lp-line);
  color: var(--lp-mauve);
}

.job-details-job-header {
  background: linear-gradient(233deg, rgba(153, 33, 254, 0.35) 3.685%, rgba(18, 0, 33, 0.49) 70.864%);
}

.job-details-job-header::before {
  background: rgba(255, 255, 255, 0.05);
}

.job-details-job-header h2 {
  font-family: var(--lp-font-display);
  font-weight: 400 !important;
}

.job-details-quick-apply {
  top: 12.2rem;
}

.job-details-quick-apply h5 {
  font-weight: 400 !important;
}

.job-details-apply-btn,
.job-details-submit-form-btn {
  background: var(--lp-white);
  border: 1px solid transparent;
  border-radius: 4px;
  color: #000;
  font-weight: 500;
}

.job-details-apply-btn:hover,
.job-details-submit-form-btn:hover {
  background: var(--lp-white);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(153, 33, 254, 0.35), 0 6px 22px rgba(153, 33, 254, 0.55);
}

.job-details-submit-form-btn:disabled {
  opacity: 0.6;
}

.job-details-close-btn {
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--lp-white);
  font-weight: 500;
}

.job-details-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(153, 33, 254, 0.35), 0 6px 22px rgba(153, 33, 254, 0.55);
}

.job-details-application-popup {
  background: rgba(18, 0, 33, 0.8);
}

.job-details-application-form {
  background: var(--lp-bg);
  border: 1px solid var(--lp-line);
}

.job-details-form-header {
  background: var(--lp-bg-deep);
  border-bottom: 1px solid var(--lp-line-soft);
}

.job-details-form-content {
  background: transparent;
}

.job-details-form-label {
  font-weight: 500;
}

.job-details-form-control {
  background: rgba(18, 0, 33, 0.4);
  color: var(--lp-white);
}

.job-details-form-control::placeholder {
  color: var(--lp-muted);
}

.job-details-form-control:focus {
  box-shadow: none;
}

.job-details-file-upload {
  border-width: 1px;
}

.job-details-file-upload:hover {
  background: rgba(153, 33, 254, 0.25);
}

.file-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lp-lilac);
}

.required {
  color: #ff8a8a;
}

.job-details-popup-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.job-details-popup-close:hover {
  border-color: #fff;
}

.job-details-empty-wrapper {
  background: transparent;
}

.job-details-empty-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--lp-line);
  box-shadow: none;
  color: var(--lp-mauve);
}

.job-details-empty-title {
  font-family: var(--lp-font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--lp-offwhite);
}

.job-details-empty-text {
  color: var(--lp-muted);
}

.loading-spinner .text-primary {
  color: var(--lp-mauve) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .terms-container {
    padding-top: 48px;
  }

  .terms-section {
    padding: 28px 20px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-answer.show {
    padding: 14px 16px;
  }

  .job-details-header {
    padding: 4.8rem 0 6.4rem;
  }
}
