/* Modernized and polished CSS for better aesthetics and readability */

:root {
  --primary-color: #FF6B35;
  --secondary-color: #2C3E50;
  --accent-color: #F7931E;
  --background-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #b0b0b0;
  --border-radius-lg: 16px;
  --border-radius-sm: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  background: linear-gradient(135deg, var(--background-dark) 0%, #0d0d0d 100%);
  color: var(--text-light);
  display: flex;
  justify-content: center;
  padding: var(--spacing-lg);
  line-height: 1.6;
}

.page {
  max-width: 900px;
  width: 100%;
  margin: auto;
}

/* Main container */
.regulamento {
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

/* Titles */
.regulamento h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
  text-align: center;
  letter-spacing: -0.5px;
}

.regulamento h2 {
  font-size: 1.4rem;
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.regulamento section {
  margin: var(--spacing-md) 0;
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.regulamento section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.regulamento section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Section headers */
.regulamento h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-left: calc(var(--spacing-sm) + 8px);
}

.regulamento h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 26px;
  border-radius: 3px;
  background: var(--primary-color);
}

/* Paragraphs and lists */
.regulamento p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.regulamento strong {
  color: var(--text-light);
  font-weight: 600;
}

.regulamento ul,
.regulamento ol {
  margin: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-md);
  padding-left: var(--spacing-md);
}

.regulamento li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--text-muted);
}

.regulamento ul li::marker {
  color: var(--accent-color);
}

.regulamento ol li::marker {
  color: var(--accent-color);
  font-weight: 600;
}

/* Links */
.regulamento a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.regulamento a:hover {
  color: #FFA040;
  text-decoration: underline;
}

/* Horizontal divider */
.regulamento hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: var(--spacing-md) 0;
}

/* Animations */
.regulamento section {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: var(--spacing-sm);
  }

  .regulamento {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
  }

  .regulamento h1 {
    font-size: 2rem;
  }

  .regulamento h2 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
  }

  .regulamento h3 {
    font-size: 1.3rem;
  }

  .regulamento p,
  .regulamento li {
    font-size: 1rem;
    line-height: 1.7;
  }
}