:root {
  --legal-orange: #f5520a;
  --legal-orange-dark: #c23f00;
  --legal-black: #0a0a0a;
  --legal-panel: #111111;
  --legal-panel-raised: #181818;
  --legal-line: rgba(255, 255, 255, 0.1);
  --legal-copy: rgba(255, 255, 255, 0.72);
  --legal-muted: rgba(255, 255, 255, 0.48);
}

html {
  scroll-behavior: smooth;
}

body.legal-page {
  background: var(--legal-black);
  color: #fff;
  font-family: 'Manrope', sans-serif;
}

.legal-page #wrapper {
  background: var(--legal-black);
}

.legal-page .urgency-bar {
  position: relative;
  z-index: 101;
}

.legal-page #header {
  position: absolute;
  top: 35px;
  width: 100%;
  z-index: 1000;
}

.legal-page #header.sticky-header {
  position: fixed;
  top: 0;
}

.legal-page #header:not(.sticky-header) #header-wrap {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent);
  border-bottom: 0;
}

.legal-page #header:not(.sticky-header) .menu-link,
.legal-page #header:not(.sticky-header) .cnvs-hamburger-inner,
.legal-page #header:not(.sticky-header) .cnvs-hamburger-inner::before,
.legal-page #header:not(.sticky-header) .cnvs-hamburger-inner::after {
  color: #fff;
}

.legal-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #060606;
}

.legal-hero-bg,
.legal-hero-overlay {
  position: absolute;
  inset: 0;
}

.legal-hero-bg {
  background-position: center 35%;
  background-size: cover;
  transform: scale(1.015);
}

.legal-hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.78) 48%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(0deg, var(--legal-black) 0%, transparent 42%);
}

.legal-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 190px;
  padding-bottom: 76px;
}

.legal-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 13px;
  background: var(--legal-orange);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.legal-hero-title {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: clamp(4.25rem, 9vw, 7.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}

.legal-hero-title .accent {
  color: var(--legal-orange);
}

.legal-hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.65;
}

.legal-date {
  display: block;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-document,
.sms-program {
  position: relative;
  background: var(--legal-black);
}

.legal-document {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}

.policy-intro {
  margin: 0 0 56px;
  padding: 28px 30px;
  border-left: 4px solid var(--legal-orange);
  background: var(--legal-panel);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.85;
}

.terms-section,
.policy-section {
  margin: 0;
}

.terms-section h2,
.policy-section h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.15;
  text-transform: uppercase;
}

.policy-section h3 {
  margin: 30px 0 10px;
  color: var(--legal-orange);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.terms-section p,
.terms-section li,
.policy-section p,
.policy-section li {
  color: var(--legal-copy);
  font-size: 0.98rem;
  line-height: 1.85;
}

.terms-section p,
.policy-section p {
  margin: 0 0 16px;
}

.terms-section ul,
.policy-section ul {
  margin: 8px 0 16px;
  padding-left: 1.4rem;
}

.terms-section li,
.policy-section li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.terms-section li::marker,
.policy-section li::marker {
  color: var(--legal-orange);
}

.terms-section a,
.policy-section a,
.sms-program a:not(.btn-challenge):not(.btn-outline-challenge) {
  color: var(--legal-orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.divider,
.policy-divider {
  height: 1px;
  margin: 46px 0;
  border: 0;
  background: linear-gradient(90deg, rgba(245, 82, 10, 0.72), rgba(255, 255, 255, 0.06) 42%, transparent);
}

.sms-program {
  padding: 82px 0 96px;
}

.sms-section {
  margin-top: 76px;
}

.sms-section:first-child {
  margin-top: 0;
}

.sms-section-label {
  display: block;
  margin-bottom: 10px;
  color: var(--legal-orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sms-section-title {
  margin: 0 0 18px;
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.7rem, 5.5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-transform: uppercase;
}

.sms-lede,
.sms-copy {
  color: var(--legal-copy);
  line-height: 1.75;
}

.sms-lede {
  max-width: 720px;
  font-size: 1.08rem;
}

.sms-optin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.sms-steps {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: sms-step;
}

.sms-steps li {
  position: relative;
  min-height: 48px;
  margin-bottom: 22px;
  padding-left: 58px;
  color: var(--legal-copy);
  line-height: 1.7;
  counter-increment: sms-step;
}

.sms-steps li::before {
  content: counter(sms-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--legal-orange);
  font-family: 'Anton', sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.sms-consent-card {
  position: sticky;
  top: 112px;
  padding: 30px;
  border: 1px solid rgba(245, 82, 10, 0.38);
  background: linear-gradient(145deg, rgba(245, 82, 10, 0.1), var(--legal-panel) 44%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.sms-preview-label {
  margin-bottom: 12px;
  color: var(--legal-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sms-consent-card h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
}

.sms-consent-card p,
.sms-consent-copy {
  color: var(--legal-copy);
  font-size: 0.86rem;
  line-height: 1.65;
}

.sms-field-label {
  display: block;
  margin-top: 20px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sms-mock-input {
  margin: 7px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: var(--legal-muted);
}

.sms-consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sms-checkbox {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin-top: 2px;
  border: 2px solid var(--legal-orange);
  background: #080808;
}

.sms-mock-button {
  margin-top: 20px;
  padding: 13px 16px;
  background: var(--legal-orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.sms-legal-links {
  margin: 13px 0 0;
}

.sms-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.1);
}

.sms-detail {
  min-height: 190px;
  padding: 28px;
  background: var(--legal-panel);
}

.sms-detail h3 {
  margin: 0 0 10px;
  color: var(--legal-orange);
  font-family: 'Anton', sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  text-transform: uppercase;
}

.sms-detail p {
  margin: 0;
  color: var(--legal-copy);
  line-height: 1.7;
}

.sms-samples {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.sms-sample {
  padding: 22px 24px;
  border-left: 4px solid var(--legal-orange);
  background: var(--legal-panel);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.02rem;
  line-height: 1.65;
}

.sms-notice {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(245, 82, 10, 0.34);
  background: linear-gradient(120deg, rgba(245, 82, 10, 0.13), var(--legal-panel) 55%);
}

.sms-notice p:last-child,
.terms-section p:last-child,
.policy-section p:last-child {
  margin-bottom: 0;
}

.footer-newsletter-copy {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
}

.footer-newsletter-note {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
}

.legal-copyright-note {
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
}

.legal-page a:focus-visible,
.legal-page button:focus-visible,
.legal-page input:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 991.98px) {
  .legal-page #header {
    top: 35px;
  }

  .legal-hero {
    min-height: 480px;
  }

  .legal-hero .container {
    padding-top: 170px;
    padding-bottom: 64px;
  }

  .legal-hero-bg {
    background-position: 62% center;
  }

  .sms-optin-grid {
    grid-template-columns: 1fr;
  }

  .sms-consent-card {
    position: static;
    max-width: 620px;
  }
}

@media (max-width: 575.98px) {
  .legal-page .urgency-bar {
    min-height: 34px;
  }

  .legal-page #header {
    top: 34px;
  }

  .legal-hero {
    min-height: 440px;
  }

  .legal-hero .container {
    padding-top: 160px;
    padding-bottom: 52px;
  }

  .legal-hero-title {
    font-size: clamp(3.35rem, 18vw, 4.7rem);
  }

  .legal-hero-copy {
    font-size: 0.96rem;
  }

  .legal-document,
  .sms-program {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .legal-document {
    padding-right: 18px;
    padding-left: 18px;
  }

  .policy-intro,
  .sms-consent-card,
  .sms-notice {
    padding: 22px;
  }

  .sms-section {
    margin-top: 58px;
  }

  .sms-details-grid {
    grid-template-columns: 1fr;
  }

  .sms-detail {
    min-height: 0;
  }

  .legal-page #footer .footer-widgets-wrap > .row {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .legal-hero-bg {
    transform: none;
  }
}
