/* Balmly website — all styles. No build step, no dependencies.
   Brand tokens below are established in the mobile app; do not invent new ones. */

:root {
  /* Colour */
  --wine: #6E2A38;        /* primary accent: buttons, links */
  --wine-dark: #5A1F2C;   /* hover / pressed */
  --ink: #2E2622;         /* body text */
  --cream: #FBF7F1;       /* page background */
  --cream-deep: #F8F3EC;  /* slightly deeper background blocks */
  --brown: #8A6A4F;       /* secondary accent */
  --sand: #EADFCB;        /* borders, hairlines */
  --icon-cream: #F4EDE3;  /* icon background */

  /* Type */
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Measure / rhythm */
  --measure: 42rem;
  --pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---- Header ---- */

.site-header {
  padding: 32px 0 24px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wine);
  letter-spacing: 0.01em;
}

.logo .dot { color: var(--brown); }

/* ---- Legal page ---- */

.legal-page {
  padding: 8px 0 72px;
}

.legal-page h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 24px 0 4px;
}

.legal-page h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 40px 0 8px;
}

.legal-page .updated {
  color: var(--brown);
  font-size: 0.95rem;
  margin: 0 0 32px;
}

.legal-page p { margin: 0 0 16px; }

.legal-page ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.legal-page li { margin: 0 0 8px; }

.legal-page a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover { color: var(--wine-dark); }

.legal-page strong { font-weight: 700; }

/* A quiet inset block for the "not a medical or crisis service" note */
.note {
  background: var(--cream-deep);
  border: 1px solid var(--sand);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 24px;
}

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

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--sand);
  padding: 28px 0 48px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.footer-fine {
  color: var(--brown);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 480px) {
  .legal-page h1 { font-size: 1.6rem; }
}
