:root {
  --primary: #000000;
  --primary-dark: #1a1a1a;
  --secondary: #333333;
  --light: #f8f9fa;
  --border: #e0e0e0;
  --text: #2c2c2c;
  --text-light: #666666;
  --success: #28a745;
  --danger: #dc3545;
  --section-bg: #ffffff;
  --highlight-bg: #f8f9fa;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: #ffffff;
  font-size: 1rem;
}

.terms-container {
  min-height: 100vh;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

.header {
  border-bottom: 2px solid var(--border);
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.terms-wrapper {
  display: block;
  max-width: calc(100vw - 400px);
  margin: 0 auto;
  margin-left: 360px;
  padding: 3rem 2rem;
  min-height: calc(100vh - 200px);
}

.terms-content {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.terms-header-content {
  margin-bottom: 4rem;
  padding: 3rem 0;
  border-bottom: 3px solid var(--primary);
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  margin-bottom: 3rem;
}

.terms-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.terms-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.terms-updated {
  color: var(--text-light);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.terms-summary {
  background: var(--highlight-bg);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  margin-top: 2rem;
  text-align: left;
}

.terms-summary h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-section {
  margin-bottom: 4rem;
  padding: 3rem;
  border-radius: 16px;
  background-color: var(--section-bg);
  transition: all 0.3s ease;
  border: 2px solid var(--border);
  scroll-margin-top: 120px;
  box-shadow: 0 4px 20px var(--shadow);
  width: 100%;
}

.terms-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.terms-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.terms-section h2 i {
  color: #ffffff;
  background: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.terms-section h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-section h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 1rem 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-section p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.terms-section ul {
  list-style-type: none;
  color: var(--text);
  margin-bottom: 2rem;
}

.terms-section li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  line-height: 1.7;
}

.terms-section li:before {
  content: "▪";
  color: var(--primary);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Adicionando estilos para novos elementos de conteúdo */
.section-highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  font-weight: 500;
}

.terms-box {
  background: var(--highlight-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 6px solid var(--primary);
}

.service-features,
.features-grid,
.pricing-info,
.security-grid,
.support-grid,
.compliance-grid,
.contact-grid {
  margin: 2rem 0;
}

.features-grid,
.security-grid,
.support-grid,
.compliance-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-item,
.security-item,
.support-item,
.compliance-item,
.contact-item {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-item:hover,
.security-item:hover,
.support-item:hover,
.compliance-item:hover,
.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow);
  border-color: var(--primary);
}

.feature-item i,
.security-item i,
.support-item i,
.compliance-item i,
.contact-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-item h5,
.security-item h5,
.support-item h5,
.compliance-item h5,
.contact-item h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pricing-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pricing-item {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.pricing-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow);
  border-color: var(--primary);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.legal-item {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.legal-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow);
  border-color: var(--primary);
}

.legal-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.legal-item h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.prohibition-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.prohibition-category {
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  border-left: 6px solid var(--danger);
}

.prohibition-category h5 {
  color: var(--danger);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.terms-nav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  max-height: 70vh;
  padding: 2rem;
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 30px var(--shadow);
  overflow-y: auto;
  flex-shrink: 0;
  border: 2px solid var(--border);
  z-index: 50;
}

.terms-nav h3 {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: var(--primary);
  font-weight: 800;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-nav ul {
  list-style: none;
}

.terms-nav li {
  margin-bottom: 0.5rem;
}

.terms-nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.terms-nav a:hover {
  color: var(--primary);
  background-color: var(--highlight-bg);
  border-color: var(--border);
  transform: translateX(5px);
}

.terms-nav a.active {
  color: white;
  background-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer {
  border-top: 3px solid var(--primary);
  padding: 3rem 0;
  background-color: #ffffff;
  margin-top: 4rem;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-text {
  color: var(--text-light);
  font-size: 0.95rem;
}

.footer-link {
  color: var(--text-light);
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 99;
  font-size: 1.2rem;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Melhorando responsividade */
@media (max-width: 1400px) {
  .terms-nav {
    width: 280px;
  }

  .terms-wrapper {
    margin-left: 320px;
    max-width: calc(100vw - 360px);
  }
}

@media (max-width: 1200px) {
  .terms-nav {
    width: 260px;
  }

  .terms-wrapper {
    margin-left: 300px;
    max-width: calc(100vw - 340px);
  }
}

@media (max-width: 1024px) {
  /* Em telas menores, volta ao layout original */
  .terms-nav {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-height: none;
    margin-bottom: 3rem;
  }

  .terms-wrapper {
    margin-left: auto;
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  .features-grid,
  .security-grid,
  .support-grid,
  .compliance-grid,
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .prohibition-categories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .terms-title {
    font-size: 2.8rem;
  }

  .terms-subtitle {
    font-size: 1.1rem;
  }

  .terms-section {
    padding: 2rem;
    margin-bottom: 3rem;
  }

  .terms-section h2 {
    font-size: 1.7rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .features-grid,
  .security-grid,
  .support-grid,
  .compliance-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .terms-title {
    font-size: 2.2rem;
  }

  .terms-wrapper {
    padding: 1.5rem 1rem;
  }

  .terms-content {
    padding: 0;
  }

  .terms-section {
    padding: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .terms-section h2 {
    font-size: 1.5rem;
  }

  .terms-section h2 i {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .scroll-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}

/* Adicionando animações melhoradas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.terms-section {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.terms-nav {
  animation: slideInLeft 0.8s ease-out;
}

.terms-section:nth-child(1) {
  animation-delay: 0.1s;
}
.terms-section:nth-child(2) {
  animation-delay: 0.15s;
}
.terms-section:nth-child(3) {
  animation-delay: 0.2s;
}
.terms-section:nth-child(4) {
  animation-delay: 0.25s;
}
.terms-section:nth-child(5) {
  animation-delay: 0.3s;
}
.terms-section:nth-child(6) {
  animation-delay: 0.35s;
}
.terms-section:nth-child(7) {
  animation-delay: 0.4s;
}
.terms-section:nth-child(8) {
  animation-delay: 0.45s;
}
.terms-section:nth-child(9) {
  animation-delay: 0.5s;
}
.terms-section:nth-child(10) {
  animation-delay: 0.55s;
}
.terms-section:nth-child(11) {
  animation-delay: 0.6s;
}
.terms-section:nth-child(12) {
  animation-delay: 0.65s;
}
.terms-section:nth-child(13) {
  animation-delay: 0.7s;
}
.terms-section:nth-child(14) {
  animation-delay: 0.75s;
}
.terms-section:nth-child(15) {
  animation-delay: 0.8s;
}
.terms-section:nth-child(16) {
  animation-delay: 0.85s;
}
.terms-section:nth-child(17) {
  animation-delay: 0.9s;
}

/* Adicionando estilos para melhor contraste e legibilidade */
.terms-section a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.terms-section a:hover {
  color: var(--secondary);
}

.terms-section strong {
  color: var(--primary);
  font-weight: 700;
}

/* Melhorando estilos de scrollbar para navegação */
.terms-nav::-webkit-scrollbar {
  width: 6px;
}

.terms-nav::-webkit-scrollbar-track {
  background: var(--highlight-bg);
  border-radius: 3px;
}

.terms-nav::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.terms-nav::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}
