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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  text-align: center;
  padding: 40px 0;
  border-bottom: 2px solid #000;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 10px;
}

nav {
  margin-top: 20px;
}

nav a {
  color: #000;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  padding: 5px 10px;
  border: 1px solid #000;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: #000;
  color: #fff;
}

main {
  margin-bottom: 60px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: 700;
}

h2 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

h3 {
  font-size: 1.3em;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

p {
  margin-bottom: 15px;
  text-align: justify;
}

ul, ol {
  margin-left: 30px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 8px;
}

footer {
  text-align: center;
  padding: 30px 0;
  border-top: 2px solid #000;
  margin-top: 60px;
}

.date {
  font-style: italic;
  color: #666;
  margin-bottom: 20px;
}

a {
  color: #000;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* Hide header when accessed from app */
header.hide-from-app {
  display: none !important;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 20px 10px;
  }

  header {
    padding: 20px 0;
  }

  header h1 {
    font-size: 1.8em;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  nav a {
    display: block;
    width: 100%;
    max-width: 200px;
    text-align: center;
    margin: 0;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.4em;
  }

  h3 {
    font-size: 1.1em;
  }

  p {
    text-align: left;
  }
}
