/* Shared styling for The Medico Mentor public legal/policy pages */
:root {
  --primary: #4353E0;
  --primary-dark: #3544CB;
  --primary-light: #8992EB;
  --secondary: #6C63FF;
  --text-primary: #1F2430;
  --text-secondary: #5B6472;
  --border: #E6E8F0;
  --background: #F7F8FC;
  --white: #FFFFFF;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .bar {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all .2s ease;
}
.nav a:hover { color: var(--primary); background: #EEF0FD; }

/* Hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 44px 20px;
  text-align: center;
}
.page-hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.page-hero p { opacity: .9; font-size: 15px; }

/* Content */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: 0 8px 30px rgba(67, 83, 224, 0.05);
}
main h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 10px;
  color: var(--text-primary);
}
main h2:first-child { margin-top: 0; }
main h3 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; }
main p { margin-bottom: 12px; color: var(--text-secondary); }
main ul, main ol { margin: 0 0 14px 22px; color: var(--text-secondary); }
main li { margin-bottom: 6px; }
main a { color: var(--primary); }
.updated { color: var(--text-secondary); font-size: 14px; margin-bottom: 4px; }

/* Pricing */
.plans {
  display: grid;
  /* Four plans: one column on a phone, two by two, then one row of four,
     so a plan is never left alone on its own row. */
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 8px 0 8px;
}
@media (min-width: 481px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 821px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  background: var(--white);
  transition: all .2s ease;
}
.plan:hover { border-color: var(--primary-light); transform: translateY(-3px); }
.plan.featured { border-color: var(--primary); box-shadow: 0 10px 30px rgba(67,83,224,.12); }
.plan .name { font-weight: 600; font-size: 15px; color: var(--text-secondary); }
.plan .price { font-size: 30px; font-weight: 700; color: var(--primary); margin: 8px 0 2px; }
.plan .price small { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.plan .term { font-size: 13px; color: var(--text-secondary); }
.badge {
  display: inline-block;
  background: #EEF0FD;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--background);
  border-radius: 10px;
}
.feature .ic { color: var(--primary); font-weight: 700; }
.feature b { display: block; color: var(--text-primary); font-size: 15px; }
.feature span { font-size: 13px; color: var(--text-secondary); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 6px;
}
.contact-item {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}
.contact-item .label { font-size: 13px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; }
.contact-item .value { font-size: 16px; font-weight: 600; margin-top: 4px; color: var(--text-primary); word-break: break-word; }
.contact-item a { color: var(--primary); text-decoration: none; }

/* Footer */
.site-footer {
  background: #12141C;
  color: #AEB4C2;
  padding: 34px 20px;
}
.site-footer .wrap {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 10px; }
.site-footer a { color: #AEB4C2; text-decoration: none; display: block; font-size: 14px; margin-bottom: 6px; }
.site-footer a:hover { color: var(--white); }
.site-footer .addr { font-size: 14px; max-width: 300px; }
.site-footer .copy {
  max-width: 960px;
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid #262A36;
  font-size: 13px;
  color: #7A8090;
  text-align: center;
}

@media (max-width: 600px) {
  /* The nav wraps under the brand on a phone; pinned, that two-row header
     covered about a quarter of the screen, so it scrolls away here. */
  .site-header { position: static; }
  .site-header .bar { padding: 10px 16px; row-gap: 4px; }
  .nav { margin-left: -10px; gap: 2px; }
  .nav a { padding: 4px 10px; }
  .page-hero h1 { font-size: 24px; }
  .card { padding: 24px 20px; }
}

/* Key points box at the top of a policy page */
.note {
  background: #EEF0FD;
  border: 1px solid #D9DDFA;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 14px 0 6px;
}
.note p { margin-bottom: 6px; color: var(--text-primary); font-weight: 600; }
.note ul { margin-bottom: 0; color: var(--text-primary); }
.note li { margin-bottom: 4px; }
