/* Shared styling for every Revisemap policy / information page.
   Edit page content in the individual .html files; this file only controls how
   they look, so a change here applies to all of them at once. */

:root {
  --ink: #09090b;
  --muted: #52525b;
  --soft: #71717a;
  --line: #e4e4e7;
  --bg: #ffffff;
  --tint: #fafafa;
  --accent: #10b981;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */

.policy-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.policy-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.policy-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-back {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.policy-back:hover { background: var(--tint); }

/* ---------- content ---------- */

.policy-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 20px 56px;
}

.policy-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f4f4f5;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-main h1 {
  margin: 0 0 8px;
  font-size: 31px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.policy-updated {
  margin: 0 0 30px;
  color: var(--soft);
  font-size: 13px;
}

.policy-lead {
  font-size: 16.5px;
  color: var(--muted);
  margin: 0 0 30px;
}

.policy-main h2 {
  margin: 36px 0 12px;
  font-size: 19.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.policy-main h2:first-of-type { border-top: 0; padding-top: 0; }

.policy-main h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.policy-main p { margin: 0 0 14px; color: var(--muted); }

.policy-main ul, .policy-main ol { margin: 0 0 16px; padding-left: 22px; color: var(--muted); }

.policy-main li { margin-bottom: 8px; }

.policy-main strong { color: var(--ink); font-weight: 700; }

.policy-main a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* Callout box for the things users most often need to see */
.policy-note {
  margin: 22px 0;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--tint);
}

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

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.policy-table th, .policy-table td {
  border: 1px solid var(--line);
  padding: 9px 13px;
  text-align: left;
  color: var(--muted);
}

.policy-table th { background: var(--tint); color: var(--ink); font-weight: 700; }

/* ---------- footer ---------- */

.policy-footer {
  border-top: 1px solid var(--line);
  background: var(--tint);
  padding: 30px 20px 40px;
}

.policy-footer-inner { max-width: 760px; margin: 0 auto; }

.policy-footer h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.policy-links {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px 18px;
}

.policy-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.policy-links a:hover { text-decoration: underline; }

.policy-contact p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }

.policy-contact a { color: var(--ink); font-weight: 600; }

.policy-legal {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--soft);
}

@media (max-width: 520px) {
  .policy-main h1 { font-size: 26px; }
  .policy-main { padding: 26px 18px 44px; }
}
