/* ==========================================================================
   EmailHelp — Privacy Policy page styles (css/pages/privacy-policy.css)
   Only privacy-page rules live here: the "at a glance" chips in the hero,
   TOC numbering + footer, the summary callout, the cookie / retention tables
   and the related-policies cards. Everything else comes from css/style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero: "privacy at a glance" chips under the lead
   -------------------------------------------------------------------------- */
.privacy-hero .page-hero__content { max-width: 960px; } /* wide enough for the four "at a glance" chips on one row */
.privacy-hero .lead { max-width: 66ch; }
.privacy-hero__facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.privacy-hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.privacy-hero__facts .icon { width: 1.05em; height: 1.05em; flex: 0 0 auto; color: var(--cyan); }

/* --------------------------------------------------------------------------
   Table of contents: a small "questions?" footer
   -------------------------------------------------------------------------- */
/* TOC numbers use the shared .toc__num span (css/style.css) — same as the other legal pages. */
.toc__foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.toc__foot p { margin: 0 0 4px; }
.toc__foot a { font-weight: 500; color: var(--primary-600); overflow-wrap: anywhere; }
.toc__foot a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Prose column: summary callout, tables, address
   -------------------------------------------------------------------------- */
.privacy-main { min-width: 0; }
.privacy-prose .callout--summary {
  margin: 0 0 44px;
  padding: 22px 24px;
  font-size: 1rem;
  line-height: 1.7;
}
.privacy-prose .callout--summary strong { font-size: 1.05rem; margin-bottom: 6px; }
.privacy-prose .callout--summary a { font-weight: 500; }
.privacy-prose .table-wrap { margin: 1.5em 0 1.8em; }
.privacy-prose .table-wrap table { font-size: .92rem; line-height: 1.5; }
.privacy-prose .table-wrap th,
.privacy-prose .table-wrap td { padding: 12px 16px; }
.privacy-prose .table-wrap th { white-space: nowrap; }
.privacy-prose .table-wrap td:first-child { font-weight: 500; color: var(--text); }
.privacy-prose .table-wrap code { white-space: nowrap; }
.privacy-prose .table-wrap table { min-width: 560px; } /* tables scroll inside the wrapper on narrow screens instead of squashing */
.privacy-prose h3 { color: var(--text); }
.privacy-prose address {
  display: inline-block;
  margin: .4em 0 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.privacy-prose address strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Related policies (under the article, same column)
   -------------------------------------------------------------------------- */
.legal-related {
  max-width: 780px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--border);
}
.legal-related h2 { margin: 0 0 18px; }
.legal-related .grid { gap: 16px; }
.legal-related .card { padding: 20px 22px; gap: 8px; }
.legal-related .card .icon-tile { width: 40px; height: 40px; margin-bottom: 2px; }
.legal-related .card h3 { font-size: 1rem; margin: 0; }
.legal-related .card p { font-size: .9rem; line-height: 1.55; color: var(--text-muted); margin: 0; }
.legal-related .card .card__link { font-size: .88rem; margin-top: 4px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* The shared TOC turns into wrapping pill chips here: drop the numbers and the footer note */
  .toc__foot { display: none; }
}
@media (max-width: 720px) {
  .legal-related .grid { gap: 12px; }
}
@media (max-width: 560px) {
  .privacy-hero__facts li { font-size: .8rem; padding: 7px 12px 7px 10px; }
  .privacy-prose .callout--summary { padding: 18px 18px; }
  .privacy-prose address { display: block; }
}

/* --------------------------------------------------------------------------
   Small screens: the cookie / retention tables stack into labelled rows
   (each cell shows its column name) instead of scrolling sideways
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .privacy-prose .table-wrap { overflow: visible; }
  .privacy-prose .table-wrap table,
  .privacy-prose .table-wrap tbody,
  .privacy-prose .table-wrap tr { display: block; min-width: 0; width: 100%; }
  .privacy-prose .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .privacy-prose .table-wrap tr { border-bottom: 1px solid var(--border); }
  .privacy-prose .table-wrap tbody tr:last-child { border-bottom: 0; }
  /* Cells stay block-level (children keep flowing inline); the column name sits in the left gutter */
  .privacy-prose .table-wrap td {
    display: block;
    position: relative;
    padding: 5px 16px 5px 104px;
    border-bottom: 0;
    font-weight: 400;
  }
  .privacy-prose .table-wrap td::before {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    top: 7px;
    width: 78px;
    font-size: .7rem;
    line-height: 1.6;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .privacy-prose .table-wrap td:first-child { font-weight: 500; }
  .privacy-prose .table-wrap tr { padding: 10px 0; }
  .privacy-prose .table-wrap tbody tr:hover td { background: none; }
  .privacy-prose .table-wrap code { white-space: normal; overflow-wrap: anywhere; }
}
