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

body {
  font-family: 'Arial', sans-serif;
  background-color: #f0e8dc;
  color: #2b2420;
  line-height: 1.7;
  overflow-x: clip;
}

main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px 60px;
  box-sizing: border-box;
  overflow-x: hidden;
}

h1 {
  font-family: 'Archivo Black', sans-serif;
  color: #2b2420;
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 26px;
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -11px;
  height: 2px;
  width: 0;
  background: #c1693c;
  border-radius: 2px;
  animation: drawLine 0.8s ease forwards;
  animation-delay: 0.4s;
}

@keyframes drawLine {
  to {
    width: 60px;
  }
}

.legal-content {
  max-width: 100%;
}

.legal-section {
  margin-bottom: 34px;
}

.legal-section h2 {
  font-family: 'Archivo Black', sans-serif;
  color: #c1693c;
  font-size: 1.25rem;
  margin-bottom: 12px;
  position: relative;
}

.legal-section p {
  margin-bottom: 12px;
  text-align: justify;
  color: #4a423a;
  line-height: 1.7;
  font-size: 0.96rem;
}

.legal-section ul {
  margin-left: 20px;
  margin-bottom: 12px;
  color: #4a423a;
  font-size: 0.96rem;
  line-height: 1.7;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section a {
  color: #9c4a24;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.legal-section a:hover {
  color: #8a4423;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #9c4a24;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.back-home:hover {
  transform: translateX(-4px);
  color: #8a4423;
}

@media (max-width: 768px) {
  main {
    padding: 24px 18px 40px;
  }

  h1 {
    font-size: 1.8rem;
  }
}