/* Shared by the four UK legal pages; retain their existing colours and headings.
   Touch phones in landscape need the same layout as narrow portrait screens. */
@media (max-width: 600px), (max-width: 1024px) and (pointer: coarse) {
  #g1-content { margin: 0 !important; }
  .entry-content { padding: 0 !important; }
  .terms-balanced { padding: 12px !important; }
  .entry-content :is(.terms-header-balanced,.consumer-rights-balanced,.toc-balanced,.section-balanced,.company-info-balanced) {
    padding: 16px !important;
  }
  .entry-content .toc-section-balanced { padding: 12px !important; }
  .entry-content :is(p,li,summary,th,td,.terms-header-balanced,.consumer-rights-balanced,.company-info-balanced) {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }
  .entry-content .terms-header-balanced p { font-size: 18px !important; }
  /* The normal Privacy template already supplies the page's visible H1.
     App Privacy keeps its inner heading for the portal's title contract. */
  body.page-id-2214 .entry-content .terms-header-balanced h2 { display: none; }
  /* Unknown complex tables retain a scrollable fallback; simple comparisons
     become full-width labelled records below, with no sideways reading. */
  .entry-content table {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
  }
  .entry-content :is(th,td) {
    min-width: 120px;
    white-space: normal;
  }
  .entry-content table.ep-legal-stack {
    overflow: visible;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
  }
  .entry-content .ep-legal-stack :is(thead,tbody,tfoot,tr,td) {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    background: transparent !important;
  }
  .entry-content .ep-legal-stack tr {
    padding: 18px 0;
    border-bottom: 1px solid var(--ep-portal-border, #dce1e8);
  }
  .entry-content .ep-legal-stack tr:first-child { padding-top: 0; }
  .entry-content .ep-legal-stack td {
    padding: 0 !important;
    margin: 0 0 14px;
    border: 0 !important;
    text-align: left !important;
    overflow-wrap: anywhere;
  }
  .entry-content .ep-legal-stack td:last-child { margin-bottom: 0; }
  .entry-content .ep-legal-stack td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
  }
  /* Keep original column headers available to assistive technology. */
  .entry-content .ep-legal-stack .ep-legal-table-head {
    position: absolute;
    width: 1px !important;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
