/* ==========================================================================
   FITNESS PLANETS - LEGAL PAGES STYLESHEET (TERMS.PHP & PRIVACY.PHP)
   ========================================================================== */

/* Hero Section */
.legal-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 0, #b3371370 0, transparent 65%), linear-gradient(160deg, #331711 0, #160f10 54%, #110e10 90%);
  padding: 55px 0 45px;
  border-bottom: 1px solid #4a2720;
}
.legal-hero-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(118deg, transparent 0 135px, #ff4d2410 136px, transparent 137px);
  pointer-events: none;
}
.legal-hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal-hero .eyebrow {
  margin-bottom: 0;
  font-size: 11px;
  letter-spacing: .16em;
}
.legal-hero-title {
  font-family: Plateia, sans-serif;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.25;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
}
.legal-hero-title em {
  font-style: normal;
  color: var(--orange);
}
.legal-hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #c1aba5;
  margin: 0;
  max-width: 680px;
}
.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #bda6a4;
  margin-top: 4px;
}
.legal-breadcrumb a {
  color: #ded5d2;
  transition: color .25s;
}
.legal-breadcrumb a:hover {
  color: var(--orange);
}
.legal-breadcrumb .divider {
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
}
.legal-breadcrumb .active-crumb {
  color: var(--orange);
  font-weight: 600;
}
.legal-badges-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 77, 36, 0.22);
  margin-top: 8px;
}
.legal-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #e5dedc;
  text-transform: uppercase;
}
.legal-badge-item svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}

/* Main Legal Section */
.legal-section {
  position: relative;
  background: var(--bg);
  padding: 60px 0 100px;
  isolation: isolate;
}
.legal-section:before {
  content: attr(data-outline);
  font: 400 120px/1 Plateia, sans-serif;
  letter-spacing: 2px;
  color: transparent;
  -webkit-text-stroke: 1px #383136;
  position: absolute;
  top: 40px;
  left: max(30px, calc((100% - 1280px)/2));
  z-index: -1;
  opacity: .28;
  pointer-events: none;
  max-width: 95%;
  overflow: hidden;
}

/* Sticky Sidebar Table of Contents */
.legal-sidebar {
  position: sticky;
  top: 110px;
  background: #1c1518;
  border: 1px solid #3d2f33;
  padding: 28px 24px;
  margin-bottom: 30px;
}
.legal-sidebar:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
}
.sidebar-heading {
  font-family: Plateia, sans-serif;
  font-size: 14px;
  letter-spacing: .08em;
  color: #fff;
  margin: 0 0 18px;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid #36282c;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-heading svg {
  width: 17px;
  height: 17px;
  color: var(--orange);
}
.legal-nav-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-nav-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #bda6a4;
  border-left: 2px solid transparent;
  background: transparent;
  transition: all .25s;
}
.legal-nav-list li a:hover {
  color: #fff;
  background: rgba(255, 77, 36, 0.08);
  border-left-color: var(--orange);
  padding-left: 15px;
}
.legal-nav-list li a .nav-num {
  font-family: Plateia, sans-serif;
  font-size: 10px;
  color: var(--orange);
  opacity: .85;
}

/* Support Help Card inside Sidebar */
.sidebar-support-card {
  background: #140e10;
  border: 1px solid #453236;
  padding: 18px;
  margin-top: 10px;
}
.sidebar-support-card h5 {
  font-family: Plateia, sans-serif;
  font-size: 12px;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sidebar-support-card p {
  font-size: 12.5px;
  color: #aaa2a5;
  margin: 0 0 12px;
  line-height: 1.5;
}
.support-link-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #ded5d2;
  margin-bottom: 8px;
  transition: color .2s;
  word-break: break-all;
}
.support-link-item:last-child {
  margin-bottom: 0;
}
.support-link-item svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
  flex-shrink: 0;
}
.support-link-item:hover {
  color: var(--orange);
}

/* Legal Content Container */
.legal-content-card {
  background: #1f191c;
  border: 1px solid #3e3034;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}
.legal-content-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #67372d;
  transition: background .3s;
}
.legal-content-card:hover:before {
  background: var(--orange);
}

/* Typography & Layout inside Legal Content */
.legal-article-section {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid #35282c;
  scroll-margin-top: 120px;
}
.legal-article-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.legal-section-tag {
  font: 400 11px/1 Plateia, sans-serif;
  color: var(--orange);
  background: rgba(255, 77, 36, 0.12);
  border: 1px solid rgba(255, 77, 36, 0.35);
  padding: 5px 9px;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.legal-article-section h2 {
  font-family: Plateia, sans-serif;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: .5px;
  margin: 0 0 16px;
  color: #ffffff;
  text-transform: uppercase;
}
.legal-article-section h3 {
  font-family: Plateia, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .3px;
  margin: 24px 0 12px;
  color: #fff;
  text-transform: uppercase;
}
.legal-article-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #c5b8bb;
  margin: 0 0 16px;
}
.legal-article-section p:last-child {
  margin-bottom: 0;
}
.legal-article-section p strong {
  color: #ffffff;
}
.legal-article-section a {
  color: var(--orange);
  text-decoration: underline;
  transition: color .2s;
}
.legal-article-section a:hover {
  color: #ffffff;
}

/* Callout Highlights */
.legal-callout {
  background: rgba(255, 77, 36, 0.08);
  border: 1px solid rgba(255, 77, 36, 0.35);
  border-left: 4px solid var(--orange);
  padding: 22px 24px;
  margin: 22px 0;
}
.legal-callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.legal-callout-header svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}
.legal-callout-header h4 {
  font-family: Plateia, sans-serif;
  font-size: 14px;
  color: #ffffff;
  margin: 0;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.legal-callout p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #ded5d2;
  margin: 0 0 8px;
}
.legal-callout p:last-child {
  margin-bottom: 0;
}

/* Package Pricing Grid in terms.php */
.terms-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 22px 0 24px;
}
.terms-plan-item {
  background: #140e10;
  border: 1px solid #433034;
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .3s;
}
.terms-plan-item:hover {
  border-color: var(--orange);
}
.terms-plan-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #67372d;
  transition: background .3s;
}
.terms-plan-item:hover:before {
  background: var(--orange);
}
.terms-plan-name {
  font-family: Plateia, sans-serif;
  font-size: 13px;
  color: #ffffff;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.terms-plan-price {
  font-family: Plateia, sans-serif;
  font-size: 24px;
  color: var(--orange);
  margin-bottom: 6px;
}
.terms-plan-term {
  font-size: 11px;
  color: #aaa2a5;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Definition Cards */
.definitions-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}
.definition-item {
  background: #171113;
  border: 1px solid #382c2f;
  padding: 16px 20px;
  border-left: 3px solid var(--orange);
}
.definition-term {
  font-family: Plateia, sans-serif;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.definition-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #c1aba5;
  margin: 0;
}

/* Custom Styled Lists */
.legal-list {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #c5b8bb;
}
.legal-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

/* Contact Grid Cards */
.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.legal-contact-card {
  background: #171113;
  border: 1px solid #382c2f;
  padding: 20px;
}
.legal-contact-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 77, 36, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 12px;
}
.legal-contact-icon svg {
  width: 17px;
  height: 17px;
}
.legal-contact-card h5 {
  font-family: Plateia, sans-serif;
  font-size: 12px;
  color: #ffffff;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.legal-contact-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #c1aba5;
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .legal-section {
    padding: 40px 0 70px;
  }
  .legal-sidebar {
    position: static;
    margin-bottom: 30px;
  }
  .legal-content-card {
    padding: 28px 22px;
  }
}
@media (max-width: 576px) {
  .legal-hero-title {
    font-size: 27px;
  }
  .terms-pricing-grid,
  .legal-contact-grid {
    grid-template-columns: 1fr;
  }
}
