/* ==========================================
 * PÁGINAS LEGAIS - LINHAGRO
 * Política de Privacidade / Termos de Uso
 * Mesmo padrão visual das páginas internas
 * ========================================== */

.legal-page {
  min-height: 100vh;
  background-color: #f8f9fa;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================
 * HERO PADRÃO
 * ========================================== */

.hero-page.legal-hero {
  background: linear-gradient(135deg, #2D5016 0%, #4a7b2b 50%, #6f8f4a 100%);
  padding: 6rem 2rem 4rem;
  text-align: center;
  color: white;
  margin-bottom: 0;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-family: 'Montserrat', sans-serif;
}

.page-subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 760px;
  margin: 0.75rem auto 1.2rem;
  line-height: 1.7;
}

.legal-update {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.legal-update i {
  color: #ffcf99;
}

/* ==========================================
 * BREADCRUMB NO HERO
 * ========================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.92rem;
}

.breadcrumb-hero {
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0;
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item:hover {
  color: #ffffff;
}

.breadcrumb-item.active {
  color: #ffffff;
  font-weight: 600;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================
 * CONTEÚDO
 * ========================================== */

.legal-content {
  padding: 3rem 1rem 4rem;
  background: #f8f9fa;
}

.legal-text {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.legal-text p {
  font-size: 0.98rem;
  color: #5a6c7d;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-text h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #2c3e50;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 85, 0, 0.18);
  font-family: 'Montserrat', sans-serif;
}

.legal-text h2:first-of-type {
  margin-top: 0.5rem;
}

.legal-text strong {
  color: #2c3e50;
  font-weight: 700;
}

.legal-text ul {
  margin: 1rem 0 1.25rem;
  padding-left: 0;
  list-style: none;
}

.legal-text ul li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.8rem;
  color: #5a6c7d;
  line-height: 1.8;
  font-size: 0.97rem;
}

.legal-text ul li::before {
  content: '•';
  position: absolute;
  left: 0.35rem;
  top: 0.05rem;
  color: #ff5500;
  font-weight: 700;
  font-size: 1.2rem;
}

.legal-text a {
  color: #ff5500;
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.legal-text a:hover {
  text-decoration: underline;
}

/* ==========================================
 * BOXES
 * ========================================== */

.info-box,
.contact-box {
  margin: 1rem 0 1.75rem;
  padding: 1.2rem 1.25rem;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
}

.info-box p,
.contact-box p {
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.info-box p:last-child,
.contact-box p:last-child {
  margin-bottom: 0;
}

.legal-effective {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.92rem;
  color: #7b8794;
  font-style: italic;
}

/* ==========================================
 * BOTÃO VOLTAR AO TOPO
 * ========================================== */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  height: 48px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(44, 62, 80, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #2c3e50;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #ffffff;
  border-color: rgba(255, 85, 0, 0.18);
  box-shadow: 0 12px 28px rgba(44, 62, 80, 0.16);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

.back-to-top:focus-visible {
  outline: 2px solid rgba(255, 85, 0, 0.35);
  outline-offset: 3px;
}

.back-to-top-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6a1a 0%, #ff5500 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(255, 85, 0, 0.22);
}

.back-to-top-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

/* ==========================================
 * RESPONSIVO
 * ========================================== */

@media (max-width: 1024px) {
  .page-title {
    font-size: 2.35rem;
  }

  .legal-text {
    padding: 2.25rem 2rem;
  }
}

@media (max-width: 768px) {
  .hero-page.legal-hero {
    padding: 3.5rem 1rem 3rem;
  }

  .page-title {
    font-size: 2rem;
    margin-top: 1.5rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .legal-update {
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem;
  }

  .legal-content {
    padding: 2.5rem 1rem 3rem;
  }

  .legal-text {
    width: 100%;
    max-width: 100%;
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
  }

  .legal-text h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }

  .legal-text p,
  .legal-text ul li {
    font-size: 0.95rem;
  }

  .breadcrumb {
    font-size: 0.88rem;
  }

  .info-box,
  .contact-box {
    padding: 1rem 1.05rem;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    height: 44px;
    padding: 0 12px 0 10px;
    gap: 0.45rem;
  }

  .back-to-top-icon {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
  }

  .back-to-top-text {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .legal-text {
    padding: 1.4rem 1rem;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .legal-update {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }

  .legal-text h2 {
    font-size: 1.15rem;
  }

  .legal-text p,
  .legal-text ul li {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .legal-text ul li {
    padding-left: 1.5rem;
  }

  .back-to-top {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .back-to-top-text {
    display: none;
  }

  .back-to-top-icon {
    width: 24px;
    height: 24px;
    box-shadow: none;
  }
}

/* ==========================================
 * SEGURANÇA DE LAYOUT
 * ========================================== */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}