/* Melibri legal pages. Colours mirror src/constants/colors.js. */

:root {
  --forest: #2d6a4f;
  --forest-dark: #1b4332;
  --honey: #e9b44c;
  --ink: #1b1f1d;
  --muted: #5a635e;
  --bg: #fafaf7;
  --card: #ffffff;
  --border: #e3e6e3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

header.site {
  background: var(--forest);
  color: #fff;
  padding: 28px 20px;
}

header.site .inner,
main,
footer.site .inner {
  max-width: 760px;
  margin: 0 auto;
}

header.site a.brand {
  color: #fff;
  text-decoration: none;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

header.site .tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-top: 2px;
}

main {
  padding: 36px 20px 64px;
}

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

h2 {
  font-size: 21px;
  margin: 36px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 17px;
  margin: 22px 0 6px;
}

ul { padding-left: 22px; }
li { margin-bottom: 7px; }

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

strong { font-weight: 650; }

/* Anything a user could be harmed by getting wrong. */
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--honey);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 22px 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}

/* Tables must scroll inside themselves rather than pushing the page wide. */
.table-wrap { overflow-x: auto; }

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--card);
  font-weight: 650;
  white-space: nowrap;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 20px 48px;
  color: var(--muted);
  font-size: 14px;
}

footer.site a { margin-right: 16px; }

.home-links { margin-top: 26px; }
.home-links a {
  display: inline-block;
  margin: 0 18px 10px 0;
  font-weight: 600;
}
