/*
 * Copyright (c) Coovil Inc. All rights reserved.
 *
 * The three public legal pages only: terms, privacy policy, account deletion (views/index/terms, privacy, deleteAccount).
 * Loaded by IndexController::_addLegalStylesheet() with the file's hash in the address, so a phone that cached an older copy of the
 * site's styles still gets these rules, and no other page loads this file.
 */

/* ── Public legal pages: terms, privacy policy, account deletion (views/index/terms, privacy, deleteAccount) ──────────────────────────────
   Long documents that a phone reads. Scoped to .was-legal, so no other page of the site changes. The texts (partials/*_en) are untouched; their headings,
   lists and tables carry the theme's utility classes, which are !important, so the rules that must beat them are !important too.
   What goes wrong without this: the theme's large type (1.3rem bold grey body text) and 2.5rem side padding leave a narrow column of big words on a phone, and a link
   too long to wrap pushes the page wider than the screen, which makes a phone's browser enlarge the text on top of that. */
.was-legal
{
  padding: 20px 16px 40px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.was-legal-column
{
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.was-legal-brand
{
  margin-bottom: 20px;
}

.was-legal-brand img
{
  width: 40px;
  height: 40px;
}

.was-legal-brand-name
{
  margin-left: 12px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #181c32;
}

.was-legal-title
{
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: #181c32;
  overflow-wrap: anywhere;
}

.was-legal-body
{
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: #3f4254;
  overflow-wrap: anywhere;
}

.was-legal-body p
{
  margin: 0 0 12px;
}

.was-legal-body h2
{
  margin: 28px 0 10px !important;
  font-size: 18px !important;
  line-height: 1.35;
  font-weight: 700 !important;
  color: #181c32 !important;
}

.was-legal-body h3
{
  margin: 20px 0 8px !important;
  font-size: 16px !important;
  line-height: 1.4;
  font-weight: 600 !important;
  color: #181c32 !important;
}

.was-legal-body ul,
.was-legal-body ol
{
  margin: 0 0 12px !important;
  padding-left: 22px;
}

.was-legal-body li
{
  margin-bottom: 6px;
}

.was-legal-body strong
{
  font-weight: 600;
}

.was-legal-body a
{
  overflow-wrap: anywhere;
  word-break: break-word;
}

.was-legal-body table
{
  width: 100%;
  margin: 0 0 16px !important;
  font-size: 14px;
  line-height: 1.5;
}

.was-legal-body th,
.was-legal-body td
{
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 767.98px)
{
  /* A table fits the screen by wrapping its cells, as it always did; one that still cannot fit scrolls on its own and never widens the page. */
  .was-legal-body table
  {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .was-legal-body th,
  .was-legal-body td
  {
    padding: 6px 8px;
  }
}

@media (min-width: 768px)
{
  .was-legal
  {
    padding: 40px 24px 64px;
  }

  .was-legal-brand img
  {
    width: 48px;
    height: 48px;
  }

  .was-legal-brand-name
  {
    font-size: 24px;
  }

  .was-legal-title
  {
    margin-bottom: 20px;
    font-size: 28px;
  }

  .was-legal-body
  {
    font-size: 16px;
  }

  .was-legal-body h2
  {
    margin-top: 36px !important;
    font-size: 20px !important;
  }

  .was-legal-body h3
  {
    font-size: 17px !important;
  }

  .was-legal-body table
  {
    font-size: 15px;
  }
}
