/* ==========================================================================
   SHE BUILDS — TERMS & CONDITIONS STYLESHEET (terms.css)
   Editorial Legal Documentation, High-End Typography & Responsive Layout
   ========================================================================== */

:root {
  --bg-ivory: #FAF3EF;
  --bg-card: #FFFFFF;
  --bg-callout: #FFF5F2;
  --red-primary: #C91818;
  --red-deep: #B91515;
  --red-subtle: rgba(201, 24, 24, 0.12);
  --red-border: rgba(201, 24, 24, 0.35);
  --text-primary: #151515;
  --text-secondary: #3C3C3C;
  --text-muted: #6A6A6A;
  --border-subtle: rgba(0, 0, 0, 0.08);

  --font-editorial: 'Bodoni Moda', 'Didot', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;

  --u: min(1vw, 2.142vh);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-ivory);
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-ivory);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   1. Sticky Top Navigation Header (Preserving SHE BUILDS Identity)
   -------------------------------------------------------------------------- */
.terms-header-wrap {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 243, 239, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 5.5%;
}

.terms-header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.26em;
  text-decoration: none;
  font-family: var(--font-editorial);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
  color: var(--text-primary);
}

.brand-she {
  color: var(--text-primary);
  font-weight: 700;
  -webkit-text-stroke: 0.35px var(--text-primary);
}

.brand-builds {
  color: var(--red-primary);
  font-style: italic;
  font-weight: 600;
  -webkit-text-stroke: 0.3px var(--red-primary);
}

.terms-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 42px);
}

.terms-nav .nav-link {
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.terms-nav .nav-link:hover {
  color: var(--red-primary);
}

.header-action .btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border: 1px solid var(--red-primary);
  border-radius: 9999px;
  color: var(--red-primary);
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.1vw, 15px);
  font-style: italic;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.header-action .btn-apply:hover {
  background-color: var(--red-primary);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   2. Main Editorial Layout & Hero Banner
   -------------------------------------------------------------------------- */
.terms-page-container {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) 24px 80px;
}

.terms-hero-meta {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1.5px solid rgba(201, 24, 24, 0.25);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--red-primary);
  text-decoration: none;
  text-transform: uppercase;
  margin-bottom: 24px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.8;
  transform: translateX(-3px);
}

.terms-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--red-primary);
  text-transform: uppercase;
  padding: 4px 12px;
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  border-radius: 9999px;
  margin-bottom: 18px;
}

.terms-main-title {
  font-family: var(--font-editorial);
  font-size: clamp(34px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--red-primary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.terms-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.6);
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.meta-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.terms-intro-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   3. Document Body & Sections
   -------------------------------------------------------------------------- */
.terms-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.terms-section {
  position: relative;
  padding-top: 12px;
}

.section-anchor {
  position: absolute;
  top: -80px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  border-radius: 9999px;
  flex-shrink: 0;
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
}

.badge-icon svg {
  stroke: var(--red-primary);
  display: block;
}

.badge-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red-primary);
}

.section-title {
  font-family: var(--font-editorial);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.18;
  color: var(--text-primary);
}

.terms-section p {
  font-size: 15.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.terms-section ul,
.terms-section ol {
  margin: 12px 0 18px 24px;
  color: var(--text-secondary);
  font-size: 15.5px;
}

.terms-section li {
  margin-bottom: 8px;
  padding-left: 4px;
}

/* Subsection styling */
.terms-subsection {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 2px solid var(--red-border);
}

.subsection-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--red-deep);
  margin-bottom: 8px;
}

/* Special Highlight Card for Section 04 (Intellectual Property) */
.section-highlight {
  background: var(--bg-callout);
  border: 1.5px solid var(--red-border);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(201, 24, 24, 0.06);
}

.highlight-banner {
  display: inline-block;
  background: var(--red-primary);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.highlight-split-box {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.split-card {
  flex: 1;
  min-width: 200px;
  background: #FFFFFF;
  border: 1px solid var(--red-border);
  border-radius: 8px;
  padding: 18px 20px;
  text-align: center;
}

.split-pct {
  font-family: var(--font-editorial);
  font-size: 38px;
  font-weight: 700;
  color: var(--red-primary);
  line-height: 1;
}

.split-label {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   4. Footer
   -------------------------------------------------------------------------- */
.terms-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1.5px solid rgba(201, 24, 24, 0.25);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-quote {
  font-family: var(--font-editorial);
  font-size: 19px;
  font-style: italic;
  color: var(--text-secondary);
}

.btn-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--red-primary);
  text-decoration: none;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--red-border);
  border-radius: 9999px;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-top:hover {
  background-color: var(--red-primary);
  color: #FFFFFF;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Responsive Design (Mobile Landscape & Compact Displays)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .terms-header-wrap {
    padding: 10px 4%;
  }

  .terms-header {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .brand-wordmark {
    font-size: clamp(16px, 2.2vw, 22px);
    white-space: nowrap;
  }

  .terms-nav {
    display: flex;
    gap: clamp(8px, 1.6vw, 18px);
  }

  .nav-link {
    font-size: clamp(11px, 1.2vw, 13px);
    white-space: nowrap;
  }

  .btn-apply {
    font-size: clamp(11px, 1.1vw, 13px);
    padding: 4px clamp(10px, 1.4vw, 16px);
    white-space: nowrap;
  }

  .terms-page-container {
    padding: 20px 16px 48px;
  }

  .terms-meta-grid {
    flex-direction: column;
    gap: 8px;
  }

  .section-highlight {
    padding: 18px 14px;
  }
}
