/* ==========================================================================
   legal.css — the shared stylesheet for /privacy and /terms.

   WHY THIS IS NOT styles.css.
   The landing page's stylesheet carries the TQW locked-canvas system (--u,
   --up, --media-w, --winw and the inline script that publishes the true window
   width). That machinery exists to make the video and the CTA the exact same
   size as the TQW landing page's. A legal document has no video and no CTA,
   and it wants a READING measure, not a 410-design-px media column: Jay's copy
   is short lines by design, a privacy policy is not. Importing styles.css here
   would hand these pages a column built for something else.

   So the tokens below are copied from styles.css :root deliberately, and the
   two files share nothing. If a brand colour changes there, change it here.
   The list is short on purpose.
   ========================================================================== */

:root {
  --bg: #000000;
  --ink: #ffffff;
  --ink-soft: #cfd2d6;
  --ink-dim: #9aa0a6;

  /* The page accent is the APP's white, #f2f5f7, not #ffffff. See the long
     note in styles.css: the two are visibly different on a black ground and
     the whole ecosystem is on this one. */
  --accent: #f2f5f7;
  --accent-rgb: 242, 245, 247;

  --teal: #4ab897;
  --hair: rgba(255, 255, 255, 0.08);

  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, monospace;

  /* One reading column for the whole document. 68ch at this size lands near
     720px, which is the long-established comfortable measure. The landing
     page's 410px column would make a 4000-word policy unreadable. */
  --measure: 720px;
  --gutter: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Matches the landing page, so moving between them does not shift the
     centre line by the width of a scrollbar. */
  scrollbar-gutter: stable both-edges;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(74, 184, 151, 0.3);
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --------------------------------------------------------------------------
   Masthead: the wordmark is the way back to the page. There is no nav here on
   purpose. A man who opened the privacy policy wants to read it or leave.
   -------------------------------------------------------------------------- */
.lg-top {
  padding: 30px 0 0;
}

.lg-top a {
  display: inline-block;
  line-height: 0;
}

.lg-top img {
  width: 132px;
  height: auto;
  display: block;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.lg-top a:hover img,
.lg-top a:focus-visible img {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Title block
   -------------------------------------------------------------------------- */
.lg-head {
  padding: 46px 0 0;
}

h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(28px, 6.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

/* The 46x2 heading mark from the landing page, treatment 01. Same width, same
   halo, so the two surfaces read as one site. */
h1::before {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-bottom: 20px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.75);
}

.lg-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  margin: 16px 0 0;
  text-transform: uppercase;
}

.lg-rule {
  border: 0;
  border-top: 1px solid var(--hair);
  margin: 34px 0 0;
}

/* --------------------------------------------------------------------------
   Body
   -------------------------------------------------------------------------- */
.lg-body {
  padding: 6px 0 0;
}

h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(19px, 3.4vw, 23px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 46px 0 14px;
}

h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 28px 0 8px;
}

p {
  margin: 0 0 16px;
}

strong,
b {
  color: var(--ink);
  font-weight: 700;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: text-decoration-color 0.2s ease;
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--accent);
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin: 0 0 9px;
}

li::marker {
  color: var(--ink-dim);
}

/* The one call-out style, used for the crisis numbers and for anything a
   reader must not skim past. */
.lg-note {
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.025);
  padding: 18px 20px 4px;
  margin: 24px 0;
  box-shadow: -6px 0 18px -12px rgba(var(--accent-rgb), 0.7);
}

.lg-note p:last-child,
.lg-note ul:last-child {
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Tables. A provider table is wider than a phone, so it scrolls inside its own
   box rather than making the whole page scroll sideways.
   -------------------------------------------------------------------------- */
.lg-table {
  overflow-x: auto;
  margin: 0 0 20px;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 15px;
  line-height: 1.6;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--hair);
}

th {
  color: var(--ink);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.lg-foot {
  border-top: 1px solid var(--hair);
  margin-top: 56px;
  padding: 30px 0 60px;
  text-align: center;
}

.lg-foot nav {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 26px;
}

.lg-foot nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 2px;
  margin: 0 12px;
  display: inline-block;
}

.lg-foot nav a:hover,
.lg-foot nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.lg-foot img {
  width: 172px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.45;
}

.lg-entity {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  margin: 22px 0 0;
}

/* --------------------------------------------------------------------------
   Focus ring, matching the landing page's teal.
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Phone
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.72;
  }

  .lg-top {
    padding-top: 24px;
  }

  .lg-top img {
    width: 112px;
  }

  .lg-head {
    padding-top: 34px;
  }

  h2 {
    margin-top: 38px;
  }

  .lg-note {
    padding: 16px 16px 2px;
  }

  .lg-foot nav a {
    margin: 0 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
