/* Legal Pages Styles - Termos de Uso e Política de Privacidade */

/* Usando as mesmas variáveis CSS do projeto */
:root {
  --azul-marinho: #1e3a8a;
  --azul-claro: #3b82f6;
  --branco: #ffffff;
  --cinza-claro: #f3f4f6;
  --cinza-medio: #6b7280;
}

/* Header adjustments */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 50px;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--azul-marinho);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--azul-claro);
}

.btn-anuncie {
  background: linear-gradient(135deg, var(--azul-marinho) 0%, var(--azul-claro) 100%);
  color: var(--branco) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  transition: transform 0.3s ease;
}

.btn-anuncie:hover {
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--azul-marinho) 0%, var(--azul-claro) 100%);
  color: var(--branco);
  padding: 150px 0 100px;
  text-align: center;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  backdrop-filter: blur(10px);
}

/* Main Content */
main {
  min-height: calc(100vh - 80px);
}

.section {
  padding: 80px 0;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Legal Content */
.legal-content {
  background: var(--cinza-claro);
}

.legal-document {
  background: var(--branco);
  padding: 4rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
  position: relative;
}

.legal-document::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, var(--azul-marinho) 0%, var(--azul-claro) 100%);
  border-radius: 20px 20px 0 0;
}

/* Typography */
.legal-document h2 {
  font-size: 2rem;
  color: var(--azul-marinho);
  margin: 3rem 0 1.5rem 0;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
  position: relative;
}

.legal-document h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(135deg, var(--azul-marinho) 0%, var(--azul-claro) 100%);
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  font-size: 1.4rem;
  color: var(--azul-claro);
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.legal-document p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.legal-document strong {
  color: var(--azul-marinho);
  font-weight: 600;
}

/* Lists */
.legal-document ul {
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.legal-document li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.7;
}

.legal-document li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--azul-marinho);
  font-weight: bold;
  font-size: 1.2rem;
}

.legal-document li strong {
  color: var(--azul-marinho);
}

/* Nested lists */
.legal-document ul ul {
  margin: 0.5rem 0;
  padding-left: 1rem;
}

.legal-document ul ul li::before {
  content: '◦';
  color: var(--azul-claro);
}

/* Links */
.legal-document a {
  color: var(--azul-marinho);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.legal-document a:hover {
  color: var(--azul-claro);
  border-bottom-color: var(--azul-claro);
}

/* Legal Footer */
.legal-footer {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--cinza-claro) 0%, #e9ecef 100%);
  border-radius: 15px;
  border-left: 4px solid var(--azul-marinho);
}

.legal-footer p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #666;
}

.legal-footer p:last-child {
  margin-bottom: 0;
}

.legal-footer strong {
  color: var(--azul-marinho);
}

/* Table of Contents (if needed) */
.toc {
  background: var(--cinza-claro);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 3rem;
  border-left: 4px solid var(--azul-marinho);
}

.toc h3 {
  color: var(--azul-marinho);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.toc ul {
  margin: 0;
}

.toc li {
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.toc li::before {
  content: '→';
  color: var(--azul-claro);
}

.toc a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.toc a:hover {
  color: var(--azul-marinho);
}

/* Highlight boxes */
.highlight-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  border-left: 4px solid var(--azul-marinho);
  position: relative;
}

.highlight-box::before {
  content: '💡';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
}

.highlight-box p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--azul-marinho);
}

/* Warning boxes */
.warning-box {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  border-left: 4px solid #f39c12;
  position: relative;
}

.warning-box::before {
  content: '⚠️';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
}

.warning-box p {
  margin-bottom: 0;
  font-weight: 500;
  color: #d68910;
}

/* Footer */
.footer {
  background: var(--azul-marinho);
  color: var(--branco);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #FFD700;
}

.footer-column p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.footer-column a {
  color: var(--branco);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-column a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .hero {
    display: none;
  }
  
  .legal-document {
    box-shadow: none;
    padding: 2rem;
  }
  
  .legal-document h2 {
    page-break-after: avoid;
  }
  
  .legal-document p,
  .legal-document li {
    page-break-inside: avoid;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  nav ul {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .legal-document {
    padding: 2rem;
  }
  
  .legal-document h2 {
    font-size: 1.7rem;
  }
  
  .legal-document h3 {
    font-size: 1.2rem;
  }
  
  .legal-document p,
  .legal-document li {
    font-size: 1rem;
    text-align: left;
  }
  
  .legal-footer {
    padding: 1.5rem;
  }
  
  .highlight-box,
  .warning-box {
    padding: 1.5rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .legal-document {
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  .legal-document h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
  }
  
  .legal-document h3 {
    font-size: 1.1rem;
  }
  
  .legal-footer {
    padding: 1rem;
  }
  
  .highlight-box,
  .warning-box {
    padding: 1rem;
  }
  
  .section {
    padding: 40px 0;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .legal-content {
    background: #1a1a1a;
  }
  
  .legal-document {
    background: #2d2d2d;
    color: #e0e0e0;
  }
  
  .legal-document h2,
  .legal-document h3 {
    color: #64b5f6;
  }
  
  .legal-document p,
  .legal-document li {
    color: #e0e0e0;
  }
  
  .legal-document strong {
    color: #64b5f6;
  }
  
  .legal-footer {
    background: #333;
    color: #e0e0e0;
  }
}
