/* ==========================================================================
   ESTILOS UNIFICADOS PARA PÁGINA DE TERMOS DE SERVIÇO
   Combinação de styles.css e termos.css com otimizações específicas
   ========================================================================== */

/* Variáveis Globais (mantidas de styles.css) */
:root {
  /* Cores - Dark Mode (padrão) */
  --bg-primary: #121212;
  --bg-secondary: #1E1E1E;
  --bg-tertiary: #2A2A2A;
  --text-primary: #E0E0E0;
  --text-secondary: #9E9E9E;
  --accent: #FFD700;
  --accent-light: #FFC000;
  --accent-dark: #FFAA00;
  --white: #FFFFFF;
  --black: #000000;

  /* Tamanhos principais */
  --header-height: 100px;
  --logo-height: 160px;
  --mobile-logo-height: 100px;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  
  /* Novas variáveis específicas para termos */
  --bg-gradient-start: #1a1a1a;
  --bg-gradient-end: #000000;
}

/* Estilos Base (mantidos de styles.css) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Tipografia (combinada e otimizada) */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 600;
}

h1 { 
  font-size: 3.5rem; 
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h2 { 
  font-size: 1.8rem; 
  margin-bottom: 20px;
  color: var(--accent);
  text-align: left;
  position: relative;
  padding-bottom: 10px;
}

h3 { font-size: 1.8rem; margin-bottom: 15px; }

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.accent {
  color: var(--accent);
}

.subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Header/Navegação (mantido de styles.css) */
header {
  background-color: var(--bg-secondary);
  height: var(--header-height);
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.logo img {
  height: var(--logo-height);
  width: auto;
  transition: transform 0.3s;
  object-fit: contain;
}

/* Navegação Desktop */
.desktop-menu ul {
  display: flex;
  gap: 30px;
}

.desktop-menu a {
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  padding: 5px 0;
}

.desktop-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s;
}

.desktop-menu a:hover,
.desktop-menu a.active {
  color: var(--accent);
}

.desktop-menu a:hover::after,
.desktop-menu a.active::after {
  width: 100%;
}

/* Navegação Mobile */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-secondary);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  padding: 12px 15px;
  border-radius: var(--border-radius);
}

.mobile-menu a:hover {
  background-color: var(--bg-tertiary);
  color: var(--accent);
}

/* Hero Section - Específica para Termos */
.page-hero {
  padding: calc(var(--header-height) + 80px) 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/terms-bg.jpg') no-repeat center/cover;
  opacity: 0.15;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

/* Terms Section - Estilos Específicos */
.terms-section {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.terms-content {
  max-width: 900px;
  margin: 0 auto;
}

.terms-article {
  margin-bottom: 50px;
}

.terms-article h2::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: 10px 0;
}

.terms-article ul {
  margin: 20px 0;
  padding-left: 30px;
  list-style-type: none;
}

.terms-article li {
  margin-bottom: 12px;
  position: relative;
  line-height: 1.6;
  color: var(--text-secondary);
}

.terms-article li::before {
  content: '•';
  color: var(--accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.terms-article a {
  color: var(--accent);
  text-decoration: underline;
}

.terms-article a:hover {
  color: var(--accent-light);
}

/* Footer (mantido de styles.css) */
footer {
  background-color: var(--bg-tertiary);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo img {
  margin-bottom: 20px;
  width: 200px;
}

.footer-logo p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: var(--text-primary);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
}

.footer-social a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-links h3, 
.footer-contact h3, 
.footer-newsletter h3 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 3px;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid var(--bg-secondary);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.footer-legal a {
  color: var(--text-secondary);
}

.footer-legal a:hover {
  color: var(--accent);
}

/* Componentes Flutuantes (mantidos de styles.css) */
.theme-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

#theme-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--black);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#theme-toggle:hover {
  transform: scale(1.1);
}

#back-to-top {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--accent);
  color: var(--black);
}

/* Responsividade (combinada e otimizada) */
@media (max-width: 1200px) {
  h1 { font-size: 3rem; }
}

@media (max-width: 992px) {
  .page-hero h1 {
    font-size: 3rem;
  }
  
  .content-split {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 80px;
    --logo-height: 120px;
  }
  
  .desktop-menu {
    display: none;
  }
  
  .mobile-menu-button {
    display: block;
  }
  
  .page-hero {
    padding: calc(var(--header-height) + 50px) 0 60px;
  }
  
  h1 { 
    font-size: 2.5rem; 
  }
  
  h2 { 
    font-size: 1.5rem; 
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .terms-article {
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  .page-hero h1 {
    font-size: 2rem;
  }
  
  .terms-article ul {
    padding-left: 20px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  #back-to-top {
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .theme-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}