/*
 * Legal pages (Privacy, Terms, Cookie, Refund, Disclaimer).
 * Only the page title (H1) is centered; body copy stays left-aligned.
 * body.bws-legal-page is set in head.ejs so H1 rules win over per-template .css.
 */

body.bws-legal-page main h1 {
  text-align: center !important;
}

body.bws-legal-page main [class*="page-hero"] h1,
body.bws-legal-page main [class*="page__hero"] h1,
body.bws-legal-page main [class*="page-hero"] .ag-title,
body.bws-legal-page main [class*="page__hero"] .ag-title {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Article: readable column, left-aligned text */
article.bws-legal {
  font-size: 1rem;
  line-height: 1.75;
  color: inherit;
  text-align: left;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.bws-legal__note {
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: left;
}

.bws-legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
  color: inherit;
  text-align: left;
}

.bws-legal h2:first-of-type {
  margin-top: 1.25rem;
}

.bws-legal p,
.bws-legal li {
  margin: 0 0 0.85rem;
  color: inherit;
  opacity: 0.95;
  text-align: left;
}

.bws-legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  text-align: left;
}

.bws-legal li {
  margin-bottom: 0.5rem;
}

.bws-legal a {
  color: var(--primary, var(--accent, #2563eb));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bws-legal a:hover {
  opacity: 0.85;
}

.bws-legal strong {
  font-weight: 600;
}

/* Fallback when body class missing: center title only */
main:has(.bws-legal) h1 {
  text-align: center !important;
}
