/* Shared CSS for all legal pages — The Perimenopause Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #7B4F8E;
  --purple-dark: #3D1F55;
  --purple-deep: #2B1140;
  --purple-light: #F3ECF7;
  --purple-mid: #C9A8D8;
  --coral: #E89B89;
  --dark: #1A1A2E;
  --body: #2D2D2D;
  --muted: #6B6B7A;
  --border: #EDE5F2;
  --white: #FFFFFF;
  --bg-off: #FAF7FB;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg-off);
  -webkit-font-smoothing: antialiased;
}

.legal-header {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  color: white;
  padding: 32px 24px;
  text-align: center;
}

.legal-header a {
  display: inline-flex; align-items: center; gap: 10px;
  color: white; text-decoration: none;
  font-weight: 600;
}

.legal-header img {
  width: 36px; height: 36px;
  border-radius: 8px;
}

.legal-header .brand-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.3px;
}

.legal-container {
  max-width: 820px;
  margin: 0 auto;
  background: white;
  padding: 56px 56px 72px;
  box-shadow: 0 8px 40px rgba(43,17,64,0.08);
}

.legal-eyebrow {
  font-size: 11px; font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 36px;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 700;
}

.legal-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--border);
}

h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 22px;
  color: var(--purple-dark);
  margin: 36px 0 14px;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--dark);
  margin: 24px 0 10px;
  font-weight: 700;
}

p { margin-bottom: 14px; }

ul, ol {
  margin: 14px 0 14px 24px;
  padding-left: 6px;
}

li { margin-bottom: 8px; line-height: 1.7; }

strong { color: var(--dark); font-weight: 700; }

a { color: var(--purple); text-decoration: underline; }
a:hover { color: var(--purple-deep); }

.callout {
  background: var(--purple-light);
  border-left: 4px solid var(--purple);
  border-radius: 4px;
  padding: 18px 22px;
  margin: 20px 0;
}

.warning {
  background: #FFF8E1;
  border: 1.5px solid #E6A817;
  border-left: 4px solid #E6A817;
  border-radius: 4px;
  padding: 18px 22px;
  margin: 20px 0;
}

.warning strong { color: #7B5000; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

th {
  background: var(--purple-dark);
  color: white;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:nth-child(even) td { background: var(--bg-off); }

.legal-footer {
  text-align: center;
  padding: 32px 24px;
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  line-height: 1.7;
}

.legal-footer a {
  color: rgba(255,255,255,0.65);
  margin: 0 10px;
}

.back-to-site {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 22px;
  background: var(--purple);
  color: white !important;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 700px) {
  .legal-container { padding: 36px 22px 56px; }
  h1 { font-size: 28px; }
  h2 { font-size: 19px; }
}
