/* Shared styles for public legal HTML (terms, privacy). Loaded after inline Google Docs styles. */
body.doc-content {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media screen and (max-width: 720px) {
  body.doc-content {
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 1rem 1rem 2.5rem !important;
  }

  body.doc-content p,
  body.doc-content li,
  body.doc-content h1,
  body.doc-content h2,
  body.doc-content h3,
  body.doc-content h4,
  body.doc-content h5,
  body.doc-content h6 {
    text-align: left !important;
    line-height: 1.55 !important;
  }

  body.doc-content p,
  body.doc-content li,
  body.doc-content span,
  body.doc-content a {
    font-size: 1rem !important;
  }

  body.doc-content h1 {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
  }

  body.doc-content a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Flatten print-oriented horizontal indents on narrow viewports */
  body.doc-content p[class],
  body.doc-content li[class] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.doc-content ul,
  body.doc-content ol {
    padding-left: 1.25rem !important;
  }

  body.doc-content li {
    margin-left: 0 !important;
  }

  /* Google Docs list marker positioning */
  body.doc-content li.li-bullet-0::before,
  body.doc-content li.li-bullet-1::before {
    min-width: 1.25em !important;
    margin-left: 0 !important;
  }
}

@media screen and (max-width: 400px) {
  body.doc-content {
    padding: 0.75rem 0.75rem 2rem !important;
  }
}
