* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Times New Roman', Times, serif;
  background: #fff;
  color: #000;
  padding: 20px;
}
.container {
  max-width: 800px;
  margin: 0 auto;
}
h1 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 0.5em;
  font-weight: bold;
}
.subtitle {
  text-align: center;
  font-size: 0.9em;
  margin-bottom: 1em;
  line-height: 1.4;
}
.section {
  border: 2px solid #000;
  padding: 1em;
  margin-bottom: 1.5em;
}
.section h2 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
  font-weight: bold;
}
.section ul {
  list-style-type: disc;
  margin-left: 1.5em;
  line-height: 1.6;
}
pre.legal-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
  margin-top: 1em;
}
@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  .container {
    padding: 0 10px;
  }
}
/* make the <pre> text use Times instead of monospace */
pre.legal-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1em;            /* same as your body text */
  line-height: 1.6;          /* matches your ul */
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-top: 1em;
}

/* paragraphs inside .section */
.section p {
  margin-bottom: 0.5em;
  font-size: 1em;
  line-height: 1.6;
}

/* ordered lists in .section */
.section ol {
  list-style-type: decimal;
  margin-left: 1.5em;
  line-height: 1.6;
  margin-bottom: 1em;
}

/* nested ordered lists */
.section ol ol {
  margin-left: 2em;
}

/* underline tags should look normal, not italic */
u {
  text-decoration: underline;
  font-style: normal;
}
/* Table of Contents styling - black & white minimalist */
.toc-list {
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 1.2em 1.5em;
  margin: 0 auto 2em auto;
  max-width: 700px;
  box-shadow: none;
  font-family: 'Times New Roman', Times, serif;
}

.toc-list h2 {
  font-size: 1.2em;
  margin-bottom: 0.7em;
  font-weight: bold;
  color: #000;
  letter-spacing: 0.02em;
}

.toc-list ol {
  list-style: decimal inside;
  padding-left: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 0.7em;
  font-size: 1.05em;
  line-height: 1.5;
  color: #222;
}

.toc-list a {
  color: #111;
  text-decoration: underline;
  border-bottom: none;
  background: none;
  transition: background 0.13s;
}
.toc-link {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px dotted #888;
  font-size: 1.05em;
  line-height: 1.5;
  transition: color 0.18s, border-bottom 0.18s;
}
.toc-link:hover, .toc-link:focus {
  color: #333;
  border-bottom: 1px solid #333;
  background: #f7f7f7;
  border-radius: 2px;
  outline: none;
}

.toc-list a:hover,
.toc-list a:focus {
  background: #eee;
  color: #000;
  text-decoration: underline;
  border-radius: 2px;
  outline: none;
}

@media (max-width: 600px) {
  .toc-list {
    padding: 1em;
    max-width: 98vw;
    font-size: 0.97em;
  }
}
