/* Shared styles for the static legal and support pages. */
:root {
  --pink: #ff9ccb;
  --lavender: #c9a8ff;
  --mint: #8fe0eb;
  --plum: #4a2d48;
  --plum-soft: #6e5470;
  --shadow: #654a61;
  --card: #fffafd;
  --rule: #f0dcef;
  --rounded: ui-rounded, "Arial Rounded MT Bold", Nunito, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--mint); }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--pink) 0%, var(--lavender) 45%, var(--mint) 100%);
  color: var(--plum);
  /* Arial Rounded only comes in bold, so long text skips it where SF Rounded is missing. */
  font: 400 17px/1.6 ui-rounded, Nunito, system-ui, sans-serif;
}

.brand, .site-nav, h1, h2, h3, summary, .contact { font-family: var(--rounded); }

.site-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 8px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 1.5px;
  text-shadow: 0 3px 0 var(--shadow);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--shadow);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.site-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--plum);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: #fff;
  box-shadow: 0 2px 0 rgba(101, 74, 97, 0.35);
}

main {
  max-width: 760px;
  margin: 16px auto 0;
  padding: 0 16px;
}

.card {
  background: var(--card);
  border-radius: 28px;
  padding: 28px 22px 32px;
  box-shadow: 0 6px 0 rgba(101, 74, 97, 0.25), 0 18px 40px rgba(74, 45, 72, 0.12);
}

@media (min-width: 600px) {
  .card { padding: 40px 44px 44px; }
}

h1 {
  margin: 0 0 4px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
}

h2 {
  margin: 34px 0 8px;
  padding-top: 22px;
  border-top: 2px dashed var(--rule);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
}

h3 {
  margin: 22px 0 6px;
  font-size: 18px;
  font-weight: 800;
}

p, ul, ol { margin: 0 0 14px; }

ul, ol { padding-left: 22px; }

li { margin-bottom: 6px; }

a { color: #8b3fbf; text-underline-offset: 2px; }

strong { font-weight: 800; }

.meta {
  margin-bottom: 20px;
  color: var(--plum-soft);
  font-size: 15px;
}

.summary {
  margin: 0 0 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 156, 203, 0.18), rgba(201, 168, 255, 0.2) 50%, rgba(143, 224, 235, 0.22));
}

.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }

.placeholder {
  padding: 0 4px;
  border-radius: 6px;
  background: #fff3a8;
  font-weight: 800;
}

.contact {
  display: inline-block;
  margin: 4px 0 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 2px 0 var(--shadow);
  box-shadow: 0 4px 0 var(--shadow);
  word-break: break-all;
}

details {
  margin: 0 0 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--rule);
}

details[open] { border-color: var(--lavender); }

summary {
  cursor: pointer;
  font-weight: 800;
}

details > :not(summary):first-of-type { margin-top: 10px; }

details p:last-child, details ol:last-child, details ul:last-child { margin-bottom: 0; }

.caps { text-transform: uppercase; font-size: 15px; }

.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--plum);
  font-size: 14px;
}

.site-footer a { color: var(--plum); font-weight: 700; }
/* The one link in the nav that leaves for the App Store. */
.site-nav a.get-app { background: var(--plum); color: #fff; }
