/*
 * One stylesheet for the Terms of Service and the Privacy Policy, so the two documents and
 * their PDFs share a letterhead, type scale and print layout. The PDFs are a browser print
 * of these pages; change the look here, then regenerate both.
 */

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #fff;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  margin-bottom: 36px;
  border-radius: 6px;
  background-color: #060b0f;
  color: #fafafa;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.letterhead-logo {
  display: block;
  height: 34px;
  width: auto;
}

.letterhead-company {
  text-align: right;
  font-size: 0.85em;
  line-height: 1.5;
}

.letterhead-company strong {
  font-size: 1.15em;
}

header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

h1 {
  font-size: 2.4em;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #1a1a1a;
}

h2 {
  font-size: 1.5em;
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

h3 {
  font-size: 1.2em;
  line-height: 1.4;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

h4 {
  font-size: 1.05em;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
}

.last-updated {
  color: #666;
  font-size: 0.9em;
}

.content {
  margin-bottom: 40px;
}

.content p {
  margin-bottom: 15px;
}

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

.content li {
  margin-bottom: 8px;
}

.content a {
  color: #0b57d0;
  text-decoration: underline;
}

.notice-box {
  background-color: #f5f5f5;
  border-left: 4px solid #060b0f;
  padding: 15px;
  margin: 20px 0;
}

.notice-box p:last-child {
  margin-bottom: 0;
}

.in-short {
  font-weight: 600;
  color: #555;
}

.pdf-download {
  margin-top: 30px;
}

footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  color: #666;
  font-size: 0.9em;
}

@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  .letterhead {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .letterhead-company {
    text-align: left;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.35em;
  }
}

@page {
  size: Letter;
  margin: 0.8in 0.9in 0.95in;

  @bottom-left {
    content: 'Farworld Labs, Inc.';
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 9pt;
    color: #666;
  }

  @bottom-right {
    content: 'Page ' counter(page) ' of ' counter(pages);
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 9pt;
    color: #666;
  }
}

@media print {
  body {
    padding: 0;
    max-width: none;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  h2,
  h3,
  h4 {
    break-after: avoid;
  }

  .letterhead {
    break-inside: avoid;
  }

  .content a {
    color: inherit;
    text-decoration: none;
  }

  .pdf-download {
    display: none;
  }

  footer {
    margin-top: 36px;
  }
}
