/* ================================================
   JELLIES — legal.css
   Shared styles for Privacy Policy, Terms of Service, Support
   ================================================ */



/* ---- Reset & base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple:       #8B7FD8;
  --purple-mid:   #A99EE8;
  --purple-pale:  #EDE9FF;
  --purple-soft:  #F5F3FF;
  --blue:         #6B9FD8;
  --blue-pale:    #E4EEFF;
  --blue-soft:    #F0F4FF;

  --text-dark:    #2D2A3E;
  --text-mid:     #5E5A78;
  --text-soft:    #9B97B8;

  --bg-white:     #FFFFFF;
  --bg-purple:    #F8F7FF;

  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;

  --shadow-card:  0 2px 16px rgba(139,127,216,0.10), 0 1px 4px rgba(139,127,216,0.06);
  --shadow-hover: 0 8px 32px rgba(139,127,216,0.16), 0 2px 8px rgba(139,127,216,0.06);
  --border:       1px solid rgba(139,127,216,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-white);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ================================================
   NAV
   ================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(139,127,216,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--purple); }

/* ================================================
   PAGE HEADER BAND
   ================================================ */

.page-header-band {
  background: linear-gradient(150deg, #EDE9FF 0%, #E8ECFF 50%, #E8F2FF 100%);
  padding: 56px 24px 60px;
  text-align: left;
}

.page-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.doc-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(139,127,216,0.12);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.doc-title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.75px;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 10px;
}

.doc-meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

.doc-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.65;
  margin-top: 8px;
  max-width: 520px;
}

/* ================================================
   MAIN CONTENT
   ================================================ */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ================================================
   DOCUMENT SECTIONS
   ================================================ */

.doc-section {
  margin-bottom: 44px;
}

.doc-section + .doc-section {
  border-top: 1px solid rgba(139,127,216,0.1);
  padding-top: 40px;
}

h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
  margin-top: 20px;
}

p {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.78;
  margin-bottom: 14px;
}

p:last-child { margin-bottom: 0; }

ul {
  margin: 8px 0 14px 0;
  padding-left: 22px;
}

li {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 6px;
}

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

/* ================================================
   CALLOUT BOXES
   ================================================ */

.callout {
  background: var(--purple-soft);
  border: 1px solid rgba(139,127,216,0.18);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 20px 0;
}

.callout p { margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

/* Mental health — more prominent */
.callout-warning {
  background: var(--bg-purple);
  border: 1.5px solid rgba(139,127,216,0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0;
}

.callout-warning-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
  display: block;
}

.callout-warning h3 {
  margin-top: 0;
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.callout-warning p { font-size: 14px; }

/* Legal uppercase passages */
.legal-caps {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ================================================
   CRISIS RESOURCES
   ================================================ */

.crisis-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.crisis-chip {
  background: var(--purple-pale);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
}

/* Standalone crisis callout (support page) */
.crisis-callout {
  background: var(--bg-purple);
  border: 1.5px solid rgba(139,127,216,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.crisis-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
  display: block;
}

.crisis-callout p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ================================================
   CONTACT BOX (legal pages)
   ================================================ */

.contact-box {
  background: var(--bg-purple);
  border: 1px solid rgba(139,127,216,0.18);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 16px;
}

.contact-box p { font-size: 14px; }

.contact-email {
  display: inline-block;
  color: var(--purple);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
}

.contact-email:hover { text-decoration: underline; }

/* ================================================
   SUPPORT PAGE — CONTACT CARD
   ================================================ */

.contact-card {
  background: var(--bg-white);
  border: var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  box-shadow: var(--shadow-card);
}

.contact-icon {
  font-size: 32px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.contact-content p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 18px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(139,127,216,0.3);
  transition: opacity 0.2s, transform 0.2s;
}

.contact-email-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ================================================
   FAQ (support page)
   ================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-purple);
  border: 1px solid rgba(139,127,216,0.12);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: var(--shadow-card);
}

.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.faq-a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.65;
}

.faq-a a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}

.faq-a a:hover { text-decoration: underline; }

/* ================================================
   FOOTER
   ================================================ */

.footer {
  background: var(--bg-white);
  border-top: 1px solid rgba(139,127,216,0.12);
  padding: 40px 24px 32px;
  text-align: center;
}

.footer-wordmark {
  display: inline-block;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 14px;
  align-items: center;
}

.footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--purple); }

.footer-sep {
  font-size: 14px;
  color: rgba(139,127,216,0.3);
}

.footer-copy {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 640px) {
  .page-header-band { padding: 44px 20px 48px; }
  .doc-title { font-size: 32px; }

  .page { padding: 44px 20px 64px; }

  .callout-warning { padding: 24px 20px; }
  .crisis-callout { padding: 22px 20px; }
  .contact-card { flex-direction: column; gap: 14px; padding: 26px 22px; }

  .nav-links { gap: 14px; }
  .footer { padding: 36px 20px 28px; }
}
