/* Keeper Legal Pages — Design System
   Mirrors the Keeper app: cream background, burgundy primary, gold accents,
   serif headings (Cormorant Garamond), sans body (DM Sans). */

:root {
  --bg-primary: #FAF5EE;
  --bg-warm: #F2EBE0;
  --bg-cream: #F5EDE2;
  --burgundy: #6B2D3E;
  --burgundy-light: #8A3B50;
  --burgundy-deep: #4E1F2D;
  --gold: #C5A55A;
  --gold-muted: #A8926C;
  --text-primary: #2C2420;
  --text-muted: #7A6E62;
  --text-light: #A09484;
  --border: rgba(107, 45, 62, 0.07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header ── */
.site-header {
  background-color: var(--burgundy-deep);
  color: var(--bg-cream);
  padding: 28px 32px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 16px rgba(78, 31, 45, 0.15);
}

.site-header-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--bg-cream);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--gold);
}

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

.nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--bg-cream);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
  letter-spacing: 0.04em;
}

.nav a:hover,
.nav a.active {
  opacity: 1;
  color: var(--gold);
}

.nav a.active {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

/* ── Main content ── */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px 120px;
}

.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--burgundy-deep);
  letter-spacing: 0.005em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.page-meta {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--gold-muted);
  margin-bottom: 8px;
}

.page-updated {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 56px;
}

/* Gold divider */
.gold-divider {
  display: flex;
  align-items: center;
  margin: 56px auto;
  max-width: 280px;
  opacity: 0.6;
}

.gold-divider::before,
.gold-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.gold-divider span {
  color: var(--gold);
  font-size: 12px;
  margin: 0 16px;
  opacity: 0.7;
}

/* Headings */
h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--burgundy-deep);
  margin-top: 56px;
  margin-bottom: 20px;
  letter-spacing: 0.005em;
  line-height: 1.25;
}

h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--burgundy);
  margin-top: 32px;
  margin-bottom: 12px;
}

/* Body content */
p {
  margin-bottom: 20px;
  color: var(--text-primary);
}

p strong,
li strong {
  font-weight: 600;
  color: var(--burgundy-deep);
}

ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

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

li::marker {
  color: var(--gold);
}

a {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-color: rgba(107, 45, 62, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: var(--burgundy);
}

/* Intro paragraph styling */
.intro {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  border-left-color: rgba(197, 165, 90, 0.4);
}

/* Contact block */
.contact-block {
  background-color: var(--bg-warm);
  padding: 24px 28px;
  border-radius: 8px;
  margin-top: 16px;
}

.contact-block p {
  margin-bottom: 8px;
}

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

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

footer .brand-mini {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--burgundy);
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 600px) {
  .site-header {
    padding: 20px 20px;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    gap: 20px;
  }

  main {
    padding: 48px 20px 80px;
  }

  .page-title {
    font-size: 36px;
  }

  h2 {
    font-size: 24px;
    margin-top: 40px;
  }

  .intro {
    font-size: 17px;
  }
}
