/* Shared styles for /privacy and /terms: homepage colours, long-form layout */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --pink-bg: #f5e0e8;
  --pink-light: #fdf0f5;
  --text-dark: #111111;
  /* Darker than the homepage's #6a7fa8 so long text meets 4.5:1 contrast */
  --text-body: #45597f;
  --accent: #c2187a;
  --border: #111111;
}
body {
  background-color: var(--pink-bg);
  font-family: "Space Mono", monospace;
  color: var(--text-body);
  line-height: 1.7;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 2.5rem 1rem 4rem;
  position: relative;
  overflow-x: hidden;
}
/* Same subtle noise texture as the homepage */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}
.page {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
}
.home-link {
  display: inline-block;
  margin-bottom: 2rem;
}
.home-link img {
  width: 120px;
  height: auto;
  display: block;
}
h1 {
  color: var(--text-dark);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.updated {
  font-style: italic;
  margin-bottom: 2rem;
}
h2 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin: 2.5rem 0 0.75rem;
}
h3 {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin: 1.5rem 0 0.5rem;
}
p,
ul {
  margin-bottom: 1rem;
}
ul {
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.35rem;
}
strong {
  color: var(--text-dark);
}
a {
  color: var(--accent);
}
/* Wide tables scroll inside their box on phones, never the whole page */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.8rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}
th {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.6);
}
tr:last-child td {
  border-bottom: none;
}
/* Unfilled [placeholders] stand out so they can't be published by accident */
mark.todo {
  background: #ffe066;
  color: var(--text-dark);
  padding: 0 0.2em;
}
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(17, 17, 17, 0.15);
  font-size: 0.75rem;
}
footer a {
  margin-right: 1.25rem;
}
