/* Pieceful legal pages: the app's colours (Fern, Warm Cream, Meadow Mist). */
:root {
  --brand: #4a7757;
  --brand-dark: #33553c;
  --accent: #e8987e;
  --ink: #2f3a33;
  --muted: #5c6b60;
  --bg: #eef2e4;
  --card: #fbf7ee;
  --line: #d3dcc9;
}

* {
  box-sizing: border-box;
}

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

h1,
h2,
.brand {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Home */
body.home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(47, 58, 51, 0.1);
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(74, 119, 87, 0.3);
}

.card h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.tagline {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

a.link-btn {
  display: block;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--brand);
  box-shadow: 0 3px 0 var(--brand-dark);
  color: var(--card);
  font-weight: 700;
  font-size: 15px;
}

a.link-btn:hover {
  text-decoration: none;
  opacity: 0.92;
}

a.link-btn.secondary {
  background: transparent;
  box-shadow: none;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}

footer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
}

/* Document pages */
header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
}

header img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

header a.brand {
  color: var(--ink);
  font-size: 18px;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

main h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

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

main h2 {
  font-size: 21px;
  margin-top: 36px;
  margin-bottom: 10px;
  color: var(--brand);
}

p,
li {
  font-size: 15.5px;
}

ul {
  padding-left: 22px;
}

.note {
  background: var(--card);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  margin: 16px 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Licenses table */
table.licenses {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 8px;
  font-size: 14.5px;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}

table.licenses th,
table.licenses td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.licenses th {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  color: var(--brand);
}

table.licenses td:first-child {
  font-weight: 700;
  word-break: break-word;
}

table.licenses tr:last-child td {
  border-bottom: none;
}

@media (max-width: 480px) {
  table.licenses th:nth-child(2),
  table.licenses td:nth-child(2) {
    display: none;
  }
}
