/* Legal pages — clean, professional, no theme bleed */

/* Override site background for legal pages */
body[data-page="privacy"],
body[data-page="terms"] {
  background: #FFFFFF !important;
}
body[data-page="privacy"]::before,
body[data-page="terms"]::before {
  display: none !important; /* kill grain overlay */
}

.legal { padding: 32px 0 96px; background: #FFFFFF; }
.legal__container { max-width: 760px; }

.legal__doc {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.65;
  color: #2C2C2C;
}

.legal__lede {
  font-size: 17px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid #E5E5E5;
  font-weight: 400;
}

.legal__doc h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 44px 0 14px;
  color: #1A1A1A;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal__doc h2:first-of-type { margin-top: 0; }
.legal__doc h2 .num {
  color: #6B6B6B;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  padding: 0;
  border-radius: 0;
  letter-spacing: 0;
  flex-shrink: 0;
  min-width: 28px;
}

.legal__doc h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: #1A1A1A;
}

.legal__doc p { margin: 0 0 14px; color: #2C2C2C; }
.legal__doc ul {
  padding-left: 22px;
  margin: 0 0 18px;
  list-style: disc;
}
.legal__doc ul li {
  position: static;
  padding-left: 0;
  margin-bottom: 8px;
  color: #2C2C2C;
}
.legal__doc ul li::before { display: none; }

.legal__doc strong { color: #1A1A1A; font-weight: 600; }

.legal__doc a {
  color: #1A4FB3;
  font-weight: 400;
  border-bottom: 0;
  padding-bottom: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal__doc a:hover {
  color: #0E3380;
}

/* Address / contact card — simple bordered block */
.legal-card {
  background: #FAFAFA;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  padding: 18px 22px;
  margin: 14px 0 22px;
}
.legal-card p { margin: 0 0 6px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card strong { display: inline-block; min-width: 130px; }

/* GDPR table — clean */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 14px;
  border-top: 1px solid #DDD;
  border-bottom: 1px solid #DDD;
}
.legal-table th, .legal-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #EEE;
  color: #2C2C2C;
  vertical-align: top;
}
.legal-table th {
  background: #F5F5F5;
  font-weight: 700;
  color: #1A1A1A;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid #DDD;
}
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table .lawful { color: #2C2C2C; font-weight: 600; }

/* Callouts — simple bordered block, no theme color */
.legal__doc em.callout {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  padding: 14px 18px;
  background: #FAFAFA;
  border-left: 3px solid #999;
  border-radius: 0;
  margin: 10px 0 18px;
  color: #1A1A1A;
}

/* Hero — sober, left-aligned */
.page-hero {
  padding: 56px 0 28px;
  text-align: left;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E5E5;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: #1A1A1A;
}
.page-hero .eyebrow {
  display: inline-block;
  background: transparent;
  color: #6B6B6B !important;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-hero .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: #6B6B6B;
  background: transparent;
  padding: 0;
  border: 0;
}
.page-hero .meta__dot { display: none; }

/* Strip the site-wide bubbly overrides that bleed into legal pages */
body[data-page="privacy"] .site-header,
body[data-page="terms"] .site-header {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #E5E5E5;
}
body[data-page="privacy"] .wordmark,
body[data-page="terms"] .wordmark { color: #1A1A1A; }
body[data-page="privacy"] .site-nav__link,
body[data-page="terms"] .site-nav__link { color: #4A4A4A; }
body[data-page="privacy"] .site-nav__link.is-active,
body[data-page="terms"] .site-nav__link.is-active { color: #1A1A1A; }
body[data-page="privacy"] .site-nav__link.is-active::after,
body[data-page="terms"] .site-nav__link.is-active::after { display: none; }

/* Make sure no decorative blobs / doodles appear on legal pages */
body[data-page="privacy"] .blob,
body[data-page="terms"] .blob,
body[data-page="privacy"] .doodle,
body[data-page="terms"] .doodle,
body[data-page="privacy"] .squiggle,
body[data-page="terms"] .squiggle,
body[data-page="privacy"] section::before,
body[data-page="terms"] section::before {
  display: none !important;
}

@media (max-width: 700px) {
  .legal__doc h2 { font-size: 19px; }
  .legal-table th, .legal-table td { padding: 10px 12px; font-size: 13px; }
  .page-hero h1 { font-size: 28px; }
}
