/* 
   RESET
 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --pink: #D01260;        
  --pinkHover: #B80F55;  

  --dark: #171325;
  --text: #342D45;
  --muted: #6A6177;     

  --heroBg: #DCE9F5;
  --mecBg: #BDD3E7;

  --cream: #F8F4EF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* 
   ANIMAÇÕES DE ENTRADA
 */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary {
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: .3s;
  box-shadow: 0 10px 20px rgba(208, 18, 96, .18); 
}

.btn-primary:hover {
  background: var(--pinkHover);
  transform: translateY(-2px);
}

/* 
   TERMOS — LAYOUT PRINCIPAL
 */
.terms-page {
  min-height: calc(100vh - var(--header-h));
  padding: 80px 24px;
}


.terms-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 
   HEADER DOS TERMOS
 */
.terms-header {
  text-align: center;
}

.terms-header span {
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.terms-header h1 {
  margin-top: 12px;
  font-size: 44px;
  line-height: 52px;
  color: var(--dark);
}

.terms-header p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* 
   BARRA DE PROGRESSO
 */
.terms-progress {
  width: 100%;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

#progressText {
  color: var(--pink);
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(116, 96, 198, .15);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--pink);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* 
   WRAPPER E LISTA DE TERMOS
 */
.terms-wrapper {
  width: 100%;
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.term-item {
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(116, 96, 198, .10);
  transition: transform .3s, box-shadow .3s;
}

.term-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .05);
}

.term-item h3 {
  color: var(--dark);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.term-item p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

/* 
   LABEL DE BLOCO (Termos / Privacidade)
 */
.terms-block-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  scroll-margin-top: 110px; /* compensa o header sticky ao usar #âncoras */
}

.terms-block-label span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #B01053;                      
  background: rgba(208, 18, 96, .08);
  border: 1px solid rgba(208, 18, 96, .2);
  border-radius: 999px;
  padding: 5px 14px;
}

/* 
   SEPARADOR ENTRE BLOCOS
 */
.terms-section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(116, 96, 198, .12);
  border-radius: 1px;
}

/* 
   AÇÕES — CHECKBOX E BOTÃO
 */
.terms-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.checkbox-container input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
  cursor: pointer;
}


#btnContinue:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
}

#btnContinue:not(:disabled) {
  opacity: 1;
}


.terms-note {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* 
   RESPONSIVO
 */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-cards {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .card-nox,
  .card-lumen {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
  }

  .historia {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {

  .terms-header h1 {
    font-size: 32px;
    line-height: 40px;
  }
}

/* ================================================================
   INTERAÇÕES (termos)
   ================================================================ */
.checkbox-container { transition: background-color .25s ease, transform .25s var(--ease-out); }
.checkbox-container:hover { transform: translateX(4px); }
.term-item { transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .3s ease; }
.term-item:hover { transform: translateX(6px); }
.term-item h3 { transition: color .25s ease; }
