/* Page background */
body {
  background: var(--backgroundColor);
  color: var(--accentColor);
  margin: 0;
  font-family: var(--font-secondary);
  line-height: 1.75;
}

/* Main wrapper from layout */
main {
  width: min(900px, 90%);
  margin: 60px auto;
}

/* Go Back button */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-family: var(--font-secondary);
  font-size: 0.95rem;

  color: var(--accentColor);
  text-decoration: none;
  padding: 10px 16px;

  border-radius: 6px;
  border: 1px solid var(--accentColor-dark);

  background: var(--primaryColor);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 40px;
}

.legal-back i {
  font-size: 1rem;
}

.legal-back:hover {
  background: var(--primaryColor);
  transform: translateY(-2px);
  box-shadow: 0px 10px 35px rgba(0,0,0,0.35);
}

/* Container for markdown content */
.legal-content {
  padding-bottom: 100px;
}

/* Headings */
.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
  font-family: var(--font-primary);
  color: var(--accentColor);
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.25;
}

.legal-content h1 { font-size: 2.2rem; }
.legal-content h2 { font-size: 1.7rem; }
.legal-content h3 { font-size: 1.3rem; }
.legal-content h4 { font-size: 1.1rem; }

/* Paragraphs */
.legal-content p {
  margin-bottom: 22px;
  color: var(--accentColor-light);
}

/* Strong emphasis */
.legal-content strong {
  color: var(--accentColor);
}

/* Links */
.legal-content a {
  color: var(--accentColor-light-shade);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.legal-content a:hover {
  opacity: 0.75;
}

/* Lists */
.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 24px;
}

.legal-content li {
  margin-bottom: 10px;
}

/* Blockquote */
.legal-content blockquote {
  border-left: 3px solid var(--accentColor-light-shade);
  padding-left: 16px;
  margin-left: 0;
  opacity: 0.9;
  color: var(--accentColor-light);
  font-style: italic;
}

/* Horizontal rules */
.legal-content hr {
  border: none;
  border-top: 1px solid var(--accentColor-dark);
  margin: 40px 0;
}

/* Bottom button repeat */
.legal-bottom {
  margin-top: 60px;
  text-align: center;
}