/* Legal article styles for /privacy and /terms.
   Header, footer, buttons, logo, skip, and base page styles come from
   css/home.css (linked first). The site-header brand typography is set in
   home.css to match the Dashboard lockup (gold wordmark, always-visible
   subtitle, 36px logo). Overrides below keep that typography if an older
   home.css is cached, and hide the header/footer in the in-app WebView.
   Header chrome stays the same full-bleed white bar as the homepage and
   the signed-in Dashboard topbar. */

/* Legal article */
.legal-page main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* The site header already shows the brand. Keep the node in the markup so
   the in-app WebView script can still find main > p.brand + h1. */
.legal-page main > p.brand { display: none; }

.legal-page h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--gold-ink);
  font-weight: 800;
  letter-spacing: -.01em;
}
.legal-page h2 {
  color: var(--gold-ink);
  font-size: 1.2rem;
  margin: 28px 0 10px;
  font-weight: 700;
  line-height: 1.3;
}
.legal-page p {
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.7;
  font-size: 1.05rem;
}
.legal-page a { color: var(--gold-ink); }
.legal-page a:hover { text-decoration: underline; }
.legal-page .tm { font-size: .65em; line-height: 0; }

@media (max-width: 600px) {
  .legal-page main { padding: 32px 18px 64px; }
}

/* Belt-and-suspenders: same Dashboard brand typography as home.css. */
.legal-page .site-header .logo {
  color: var(--gold-ink);
  letter-spacing: .2px;
}
.legal-page .site-header .logo-name {
  color: var(--gold-ink);
  font-size: 1.15rem;
  font-weight: 700;
}
.legal-page .site-header .logo-tag {
  display: block;
  color: var(--sub);
  font-size: .75rem;
  letter-spacing: 0;
}

@media (max-width: 600px) {
  .legal-page .site-header .logo-tag {
    display: block;
  }
}

/* Hidden when the page is opened in the iCatch-it app WebView (html.in-app). */
html.in-app .site-header,
html.in-app .site-footer { display: none !important; }
