/* Terms Hub — combined warranty, privacy, and terms */

.terms-hub-page {
  --th-bg: #f4f5f7;
  --th-surface: #ffffff;
  --th-ink: #0d1117;
  --th-muted: #5c6670;
  --th-border: rgba(13, 17, 23, 0.08);
  --th-accent: #EE3A23;
  --th-accent-soft: rgba(238, 58, 35, 0.12);
  --th-radius: 16px;
  --th-shadow: 0 4px 24px rgba(13, 17, 23, 0.06);
  --th-shadow-lg: 0 20px 60px rgba(13, 17, 23, 0.1);
  background: var(--th-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--th-ink);
  font-family: 'Inter', sans-serif;
}

.terms-hub-main {
  flex: 1;
  padding-top: 70px;
}

/* Hero */
.th-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  color: #fff;
}

.th-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(238, 58, 35, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(255, 100, 30, 0.15), transparent 50%),
    linear-gradient(165deg, #0a0c10 0%, #121820 45%, #0d1117 100%);
}

.th-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.th-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.th-kicker {
  margin: 0 0 1rem;
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.th-hero h1,
#th-hero-title {
  margin: 0 0 1.25rem;
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.th-hero-lead {
  margin: 0 0 2rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.th-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.th-trust-pill {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.th-trust-pill strong {
  color: #fff;
  font-weight: 600;
}

/* Sticky nav */
.th-sticky-nav {
  position: sticky;
  top: 70px;
  z-index: 20;
  background: rgba(244, 245, 247, 0.92);
  border-bottom: 1px solid var(--th-border);
  backdrop-filter: blur(12px);
}

.th-sticky-nav-inner {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
}

.th-nav-link {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-family: 'Barlow Condensed', 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--th-muted);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.th-nav-link:hover {
  color: var(--th-ink);
  background: rgba(255, 255, 255, 0.8);
}

.th-nav-link.is-active {
  color: #fff;
  background: var(--th-accent);
  box-shadow: 0 4px 14px rgba(238, 58, 35, 0.35);
}

/* Sections */
.th-section {
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
  scroll-margin-top: 8.5rem;
}

.th-section-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  box-shadow: var(--th-shadow);
}

.th-section-shell--narrow {
  max-width: 820px;
}

.th-section-shell--prose {
  max-width: 900px;
}

.th-section-intro {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--th-border);
}

.th-section-intro h1 {
  margin: 0 0 0.75rem;
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.th-section-intro p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--th-muted);
}

.th-section-intro p p {
  margin: 0;
}

.th-section-title {
  margin: 0 0 0.75rem;
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.th-h2 {
  margin: 0 0 1.25rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Warranty grid */
.th-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.th-grid-col ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  line-height: 1.7;
  color: var(--th-ink);
}

.th-grid-col li {
  margin-bottom: 0.65rem;
}

.th-warranty-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.th-warranty-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: var(--th-bg);
  border: 1px solid var(--th-border);
  border-radius: 12px;
}

.th-warranty-logos img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.th-callout {
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
  border: 1px solid var(--th-border);
  border-left: 4px solid var(--th-accent);
  border-radius: 12px;
}

.th-callout h4 {
  margin: 0 0 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--th-ink);
}

.th-callout ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.th-callout p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
  font-size: 0.95rem;
  color: var(--th-muted);
}

.th-callout p:last-child {
  margin-bottom: 0;
}

/* Buttons */
.th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.th-btn--primary {
  color: #fff;
  background: var(--th-accent);
  box-shadow: 0 4px 16px rgba(238, 58, 35, 0.3);
}

.th-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(238, 58, 35, 0.4);
  color: #fff;
}

/* Prose (privacy + terms) */
.th-prose,
.th-section--privacy .th-section-shell--narrow {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--th-ink);
}

.th-prose p,
.th-section--privacy p {
  margin: 0 0 1rem;
}

.th-section--privacy strong {
  display: block;
  margin: 1.75rem 0 0.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--th-ink);
}

.th-section--privacy strong:first-child {
  margin-top: 0;
}

.th-prose strong {
  font-weight: 600;
  color: var(--th-ink);
}

.th-prose ul,
.th-section--privacy ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.th-prose li,
.th-section--privacy li {
  margin-bottom: 0.5rem;
}

.th-prose a,
.th-section--privacy a,
.th-grid-col a {
  color: var(--th-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.th-prose a:hover,
.th-section--privacy a:hover {
  color: #cc2600;
}

.th-terms-brand {
  margin-bottom: 1.5rem;
}

.th-terms-logo {
  height: 48px;
  width: auto;
}

/* CTA band */
.th-cta-band {
  padding: 0 1.25rem 4rem;
}

.th-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #0d1117 0%, #1a2230 100%);
  border-radius: var(--th-radius);
  color: #fff;
  box-shadow: var(--th-shadow-lg);
}

.th-cta-inner h2 {
  margin: 0 0 0.35rem;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

.th-cta-inner p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Reveal — legal sections must stay visible (terms prose is taller than viewport) */
.terms-hub-page .th-section {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible,
.reveal.in {
  opacity: 1;
  transform: none;
}

.terms-hub-page .site-footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .th-grid-2 {
    grid-template-columns: 1fr;
  }

  .th-sticky-nav-inner {
    gap: 0.15rem;
    padding: 0.5rem 0.75rem;
  }

  .th-nav-link {
    font-size: 0.72rem;
    padding: 0.6rem 0.5rem;
  }
}

@media (max-width: 600px) {
  .th-hero-trust {
    flex-direction: column;
  }

  .th-trust-pill {
    text-align: center;
  }

  .th-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .th-cta-inner .th-btn {
    width: 100%;
  }
}
