/* ==========================================================================
   TERMS AND CONDITIONS PAGE STYLES
   ========================================================================== */

/* Terms Hero Section */
.terms-hero {
  position: relative;
  background-image: url('../images/terms-and-conditions-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.terms-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.4); */
  z-index: 1;
}

.terms-hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -250px;
  width: 600px;
  height: 600px;
  background-color: #D40E37;
  opacity: 0.28;
  filter: blur(110px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1
}

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

.terms-hero-content {
  max-width: 800px;
  text-align: left;
}

.terms-hero-title {
  font-family: var(--font-heading);
  font-size: 4.6rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -1px;
}

.terms-hero-title .red-text {
  color: #FF154B;
  display: inline-block;
  font-weight: 700;
}

/* Terms Content Section */
.terms-content-section {
  padding: 100px 0;
  background-color: #000000;
  position: relative;
  overflow: hidden;
}

/* Ambient glow effects matching the branding */
.terms-content-section::before {
  content: '';
  position: absolute;
  top: 15%;
  left: -250px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 14, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.terms-intro-container {
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.terms-header {
  font-family: var(--font-body);
  font-size: 18px;
  color: #D6D6D6;
  line-height: 1.8;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.terms-body {
  font-family: var(--font-body);
  font-size: 18px;
  color: #D6D6D6;
  line-height: 1.8;
  font-weight: 300;
}

.terms-body a.red-link {
  color: #FF154B;
  text-decoration: underline;
  font-weight: 400;
  transition: color 0.3s ease;
}

.terms-body a.red-link:hover {
  color: #ff4773;
}

/* Terms Layout */
.terms-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  position: relative;
  z-index: 2;
  align-items: start;
}

/* Sidebar Menu */
.terms-sidebar {
  position: sticky;
  top: 150px;
}

.terms-menu-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.terms-menu-btn {
  background: transparent;
  border: none;
  color: #A0A5B5;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  text-align: left;
  padding: 12px 16px;
  width: 100%;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.terms-menu-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
}

.terms-menu-btn.active {
  color: #FF154B;
  font-weight: 600;
  background-color: rgba(255, 21, 75, 0.08);
  border-left: 3px solid #FF154B;
  border-radius: 0 6px 6px 0;
  padding-left: 13px;
}

/* Content Area Panels */
.terms-content-area {
  flex: 1;
}

.terms-tab-panel {
  display: none;
}

.terms-tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

.terms-panel-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.terms-revision {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  color: #8d92a3;
  margin-top: -15px;
  margin-bottom: 30px;
}

.terms-panel-subtitle {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.terms-panel-body p {
  font-family: var(--font-body);
  font-size: 18px;
  color: #D6D6D6;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 24px;
}

.terms-panel-body p.terms-emphasis {
  font-family: var(--font-body);
  font-size: 18px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Numbered list styling */
.terms-numbered-list {
  list-style-type: none;
  counter-reset: terms-counter;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 0;
  margin-top: 30px;
}

.terms-numbered-list li {
  position: relative;
  padding-left: 45px;
  font-family: var(--font-body);
  font-size: 18px;
  color: #D6D6D6;
  line-height: 1.8;
  font-weight: 300;
}

.terms-numbered-list li::before {
  counter-increment: terms-counter;
  content: counter(terms-counter) ".";
  position: absolute;
  left: 10px;
  top: 0;
  font-weight: 600;
  color: #D6D6D6;
  width: 25px;
  text-align: right;
}

.terms-numbered-list li.uppercase {
  text-transform: uppercase;
  color: #D6D6D6;
  font-weight: 300;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 992px) {
  .terms-hero {
    height: 380px;
  }

  .terms-hero-title {
    font-size: 3.2rem;
  }

  .terms-content-section {
    padding: 60px 0;
  }

  .terms-intro-container {
    gap: 16px;
    padding: 0 15px;
    margin-bottom: 40px;
  }

  .terms-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 15px;
  }

  .terms-sidebar {
    position: static;
  }

  .terms-menu-card {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    gap: 10px;
  }

  .terms-menu-btn {
    width: auto;
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
  }

  .terms-menu-btn.active {
    border-left: none;
    border-bottom: 3px solid #FF154B;
    border-radius: 6px 6px 0 0;
    padding-left: 16px;
    padding-bottom: 9px;
  }
}

@media (max-width: 768px) {
  .terms-hero {
    height: 320px;
  }

  .terms-hero-title {
    font-size: 2.5rem;
  }

  .terms-header {
    font-size: 14px;
  }

  .terms-body {
    font-size: 14px;
    line-height: 1.7;
  }

  .terms-panel-title {
    font-size: 20px;
  }

  .terms-menu-card {
    flex-direction: column;
  }

  .terms-menu-btn {
    width: 100%;
    text-align: left;
  }

  .terms-menu-btn.active {
    border-left: 3px solid #FF154B;
    border-bottom: none;
    border-radius: 0 6px 6px 0;
    padding-left: 13px;
    padding-bottom: 12px;
  }

  .terms-panel-body p,
  .terms-emphasis,
  .terms-numbered-list li {
    font-size: 14px;
    line-height: 1.7;
  }
}