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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

nav a {
  display: block;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: #667eea;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s;
  border-left: 4px solid #667eea;
}

nav a:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

section h2 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

section p {
  margin-bottom: 0.5rem;
}

section strong {
  color: #764ba2;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 0.9rem;
}

.legal-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legal-content h1 {
  color: #667eea;
  border-bottom: 3px solid #667eea;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.legal-content h2 {
  color: #764ba2;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-content h3 {
  color: #667eea;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.legal-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.legal-content ul, .legal-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.legal-content td, .legal-content th {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.legal-content th {
  background: #667eea;
  color: white;
  font-weight: 600;
}

.legal-content tr:nth-child(even) {
  background: #f9f9f9;
}

.back-link {
  display: inline-block;
  margin: 1rem 1rem 0 1rem;
  padding: 0.75rem 1.5rem;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.back-link:hover {
  background: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
  nav ul {
    flex-direction: row;
  }

  nav a {
    flex: 1;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .legal-content h1 {
    font-size: 1.6rem;
  }
}
