/* ─────────────────────────────────────────────────────────────
   Fitness 4 Me — Terms & Conditions Styles
   Designed in harmony with index.php & style-index.css
   ───────────────────────────────────────────────────────────── */

.terms-page {
  background: var(--bg);
  min-height: 100vh;
}

.terms-page main h1,
.terms-page main h2,
.terms-page main h3,
.terms-page main h4,
.terms-page main p {
  margin-top: 0;
}

/* ── Hero Section ────────────────────────────────────────── */
.terms-hero {
  min-height: 340px;
  display: grid;
  align-items: end;
  padding: 95px 0 65px;
  background:
    linear-gradient(90deg, #0d100dee 0%, #0d100dc2 42%, #0d100d33 80%),
    url("../img/fitness-04.webp") center/cover no-repeat;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.terms-hero-copy .eyebrow {
  margin-bottom: 18px;
}

.terms-hero h1 {
  max-width: 920px;
  color: var(--ink);
  text-transform: uppercase;
  font-size: clamp(42px, 6.5vw, 92px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin-bottom: 0;
}

.terms-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px #aeb7a3;
}

.terms-hero .breadcrumb {
  display: flex;
  gap: 8px;
  color: #c1c9b7;
  font-size: 13px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  background: transparent;
}

.terms-hero .breadcrumb a {
  color: #c1c9b7;
  transition: color 0.2s;
  text-decoration: none;
}

.terms-hero .breadcrumb a:hover {
  color: var(--lime);
}

.terms-hero .breadcrumb b {
  color: #556247;
  font-weight: 400;
}

/* ── Content Section ─────────────────────────────────────── */
.terms-section {
  padding: clamp(55px, 7vw, 90px) 0 100px;
  background: var(--bg);
}

/* ── Sticky Table of Contents Sidebar ────────────────────── */
.terms-sidebar {
  position: sticky;
  top: 110px;
  background: #161a13;
  border: 1px solid var(--line);
  padding: 26px 22px;
  margin-bottom: 30px;
}

.terms-sidebar-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #28331f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-sidebar-title:before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--lime);
}

.terms-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-nav a {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.terms-nav a:hover {
  color: var(--lime);
  background: rgba(195, 255, 0, 0.05);
  border-left-color: var(--lime);
}

.terms-sidebar-help {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #28331f;
}

.terms-sidebar-help p {
  color: #8c977e;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.terms-sidebar-help a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: block;
  transition: color 0.2s;
  text-decoration: none;
}

.terms-sidebar-help a:hover {
  color: var(--lime);
}

/* ── Main Legal Container ────────────────────────────────── */
.terms-card {
  background: #161a13;
  border: 1px solid var(--line);
  padding: clamp(28px, 4.5vw, 48px);
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.terms-card .photo-corner {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 36px;
  height: 36px;
  border-top: 2px solid var(--lime);
  border-right: 2px solid var(--lime);
  pointer-events: none;
}

.terms-meta-header {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid #28331f;
}

.terms-meta-header h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.terms-meta-header h2 em {
  font-style: normal;
  color: var(--lime);
}

.terms-meta-header p.terms-updated {
  color: #8c977e;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* ── Article Blocks ──────────────────────────────────────── */
.terms-block {
  padding: 30px 0;
  border-bottom: 1px solid #252e1d;
}

.terms-block:first-of-type {
  padding-top: 0;
}

.terms-block:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.terms-block-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.terms-block-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.terms-block h3 {
  font-size: clamp(19px, 2.2vw, 24px);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.terms-block p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 16px;
}

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

.terms-block strong {
  color: var(--ink);
  font-weight: 700;
}

.terms-block a {
  color: var(--lime);
  text-decoration: underline;
  transition: color 0.2s;
}

.terms-block a:hover {
  color: #fff;
}

/* ── Definition List ─────────────────────────────────────── */
.terms-def-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.terms-def-item {
  background: #11140f;
  border: 1px solid #28331f;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.terms-def-icon {
  width: 22px;
  height: 22px;
  color: var(--lime);
  flex-shrink: 0;
  margin-top: 2px;
}

.terms-def-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ── Pricing Grid ────────────────────────────────────────── */
.terms-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 22px 0 16px;
}

.terms-plan-card {
  background: #11140f;
  border: 1px solid #28331f;
  padding: 18px 20px;
  transition: border-color 0.2s;
}

.terms-plan-card:hover {
  border-color: #465538;
}

.terms-plan-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8c977e;
  margin-bottom: 6px;
}

.terms-plan-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
}

.terms-plan-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Company Info Badge Box ──────────────────────────────── */
.terms-company-box {
  background: #12150f;
  border: 1px solid #2a3421;
  border-left: 3px solid var(--lime);
  padding: 22px 26px;
  margin: 20px 0;
}

.terms-company-box h4 {
  font-size: 16px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 12px;
}

.terms-company-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.terms-company-details a {
  color: var(--lime);
  text-decoration: none;
}

.terms-company-details a:hover {
  text-decoration: underline;
}

/* ── Notice & Callout Cards ──────────────────────────────── */
.terms-callout {
  background: rgba(195, 255, 0, 0.05);
  border: 1px solid rgba(195, 255, 0, 0.28);
  padding: 20px 24px;
  margin: 20px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.terms-callout-icon {
  width: 28px;
  height: 28px;
  color: var(--lime);
  flex-shrink: 0;
  margin-top: 2px;
}

.terms-callout-content p {
  margin: 0;
  color: #d1d8c7;
  font-size: 14.5px;
  line-height: 1.65;
}

.terms-callout-content strong {
  color: var(--ink);
  font-weight: 700;
}

/* ── Responsive Styling ──────────────────────────────────── */
@media (max-width: 991px) {
  .terms-sidebar {
    position: static;
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .terms-hero {
    min-height: 220px;
    padding: 70px 0 45px;
  }
  .terms-section {
    padding: 45px 0 70px;
  }
  .terms-card {
    padding: 26px 20px;
  }
  .terms-plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .terms-plan-grid {
    grid-template-columns: 1fr;
  }
}
