/* =============================================
   TERMS.CSS — terms-of-service.html Specific Styles
   Inherits root scale & globals from base.css
   ============================================= */

/* =============================================
   TERMS HERO
   Structure identical to methodology/privacy hero, 
   but with light parchment background
   ============================================= */
.terms-hero {
  background-color: var(--bg-color); /* Light parchment #fdfbf7 inherited */
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease;
}

[data-theme="dark"] .terms-hero {
  background-color: #0f2240;
}

/* Gold Overline Label */
.terms-hero .section-overline-master {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: var(--body-font);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: none;
}

.terms-hero .section-overline-master::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background-color: var(--accent-gold);
}

/* Massive H1 */
.terms-hero h1 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

[data-theme="dark"] .terms-hero h1 {
  color: #ffffff;
}

/* Hero Subtitle */
.terms-hero p {
  color: var(--text-color);
  font-size: 1.3rem;
  max-width: 40rem;
  line-height: 1.8;
}

[data-theme="dark"] .terms-hero p {
  color: rgba(255, 255, 255, 0.85);
}

/* Hero Content — above watermark */
.terms-hero .container {
  position: relative;
  z-index: 2;
}

/* =============================================
   HERO SEAL WATERMARK
   Matches the-system.html: right side,
   half-offscreen, 800px width, opacity 0.05
   ============================================= */
.terms-hero .terms-hero-watermark {
  position: absolute;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  /* 800px / 16 = 50rem */
  width: 50rem;
  pointer-events: none;
  z-index: 1;
}

.terms-hero .terms-hero-watermark img {
  width: 100%;
  height: auto;
  opacity: 0.05;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

[data-theme="dark"] .terms-hero .terms-hero-watermark img {
  filter: brightness(0) invert(1);
}

/* =============================================
   TERMS CONTENT SECTIONS
   ============================================= */
.terms-section {
  background-color: #ffffff;
  transition: background-color 0.4s ease;
  /* 160px / 16 ≈ 8.421rem */
  padding: 8.421rem 10%;
}

.terms-section .watermark-tree-global {
  display: none;
}

[data-theme="dark"] .terms-section {
  background-color: var(--card-bg); /* Dark mode contrast */
}

.terms-container {
  max-width: 65rem;
  margin: 0 auto;
}

.terms-article {
  margin-bottom: 4rem;
}

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

.terms-article h2 {
  font-family: var(--heading-font);
  font-size: 3rem;
  color: var(--heading-color);
  margin-bottom: 2rem;
  font-weight: 400;
}

.terms-article p {
  font-family: var(--body-font);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

/* Gold Diamond Divider for Articles */
.terms-divider-wrapper {
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 4rem 0;
}

/* =============================================
   MOBILE OVERRIDES (≤768px)
   ============================================= */
@media (max-width: 768px) {
  .terms-hero {
    min-height: 65vh;
    padding: 4.211rem 5%;
  }

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

  .terms-hero p {
    font-size: 1.05rem;
  }

  .terms-hero .terms-hero-watermark {
    right: -25%;
    width: 80%;
  }

  .terms-section {
    padding: 4.211rem 5%;
  }

  .terms-article h2 {
    font-size: 2.2rem;
  }
}
