/* ==========================================================================
   Beanline Legal Pages — Terms of Service & Privacy Policy
   Shared styles for legal document pages
   ========================================================================== */

:root {
  --primary: #FFD600;
  --primary-hover: #ffe34d;
  --bg: #FFF8E7;
  --text: #1C1C1C;
  --text-muted: #6F6F6F;
  --link: #007C91;
  --accent: #E4572E;
  --surface: #FFFFFF;
  --border: #E6E6E6;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --caramel: #c68e17;
  --caramel-light: rgba(198, 142, 23, 0.12);
  --cream-warm: #FFF3D6;
  --radius: 12px;
  --radius-lg: 16px;
  --focus-ring: 0 0 0 3px rgba(255, 214, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--lh-normal);
}

/* -------------------------------------------------------------------------
   Navigation (matches index.html)
   ------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 12px 0;
}
.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  height: 44px;
  width: auto;
}
.nav-cta {
  display: inline-block;
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text);
  background: var(--primary);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------
   Container
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* -------------------------------------------------------------------------
   Legal Document Content
   ------------------------------------------------------------------------- */
.legal-content {
  background: var(--surface);
  max-width: 720px;
  margin: 2.5rem auto 3rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.legal-date {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
  background: var(--cream-warm);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--text);
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.legal-content p,
.legal-content li {
  line-height: var(--lh-normal);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-left: 1.5rem;
}

.legal-content a {
  color: var(--link);
  text-decoration: underline;
}
.legal-content a:hover {
  color: var(--accent);
}

/* -------------------------------------------------------------------------
   High-Impact Section Callouts
   Visually distinguish critical legal sections (refunds, SMS, data sharing)
   ------------------------------------------------------------------------- */
.legal-callout {
  margin: 2rem 0 1.5rem;
  padding: 0;
}

.legal-callout h2 {
  margin-top: 0;
}

/* -------------------------------------------------------------------------
   Footer (matches index.html)
   ------------------------------------------------------------------------- */
.footer {
  padding: 48px 0 32px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--link);
  text-decoration: underline;
}
.footer-copy {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  margin-top: 24px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .legal-content {
    margin: 1rem auto 2rem;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
  }
  .legal-callout {
    margin: 2rem 0 1.5rem;
  }
}

/* -------------------------------------------------------------------------
   Print styles — legal pages are commonly printed/saved as PDF
   ------------------------------------------------------------------------- */
@media print {
  .nav, .footer { display: none; }
  body { background: #fff; }
  .legal-content {
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 0;
    max-width: 100%;
  }
}
