/* Shared styles for the static legal pages (privacy.html, terms.html,
   guidelines.html). Deliberately standalone rather than importing style.css,
   which locks html/body to overflow:hidden for the full-screen map. Tokens
   mirror style.css's :root so the pages read as part of the same app. */
:root {
  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --bg: #FAFBF6;
  --surface: #FFFFFF;
  --purple: #6D28D9;
  --purple-dark: #4C1D95;
  --purple-tint: #F1EBFC;
  --lime: #A3E635;
  --lime-tint: #F3FBE4;
  --text: #1F1B2E;
  --text-muted: #6B7280;
  --border: #E7E9DE;
  --shadow: 0 8px 24px rgba(76, 29, 149, 0.12);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.legal-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 0 calc(48px + env(safe-area-inset-bottom, 0px));
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--purple-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: var(--lime);
  font-size: 17px;
}

.back-link {
  color: var(--purple);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 26px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 800;
  color: var(--purple);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--purple-dark);
}

h1 {
  margin: 6px 0 4px;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.1;
}

h2 {
  margin: 30px 0 6px;
  font-size: 19px;
}

.meta {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

p, li { overflow-wrap: anywhere; }

ul { padding-left: 20px; }
li + li { margin-top: 6px; }

a { color: var(--purple); }

strong { font-weight: 800; }

.callout {
  margin: 18px 0 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--lime-tint);
  border: 1px solid rgba(101, 163, 13, 0.25);
}
.callout p { margin: 0; }

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 700;
}
.legal-footer a { color: var(--text-muted); text-decoration: none; }
.legal-footer a:hover { color: var(--purple); }
.legal-footer a[aria-current='page'] { color: var(--purple-dark); }

@media (max-width: 560px) {
  .legal-card { padding: 22px 18px; border-radius: 16px; }
}
