/*
  Boba Stock policy pages.

  Shared by privacy.html, support.html and index.html. Deliberately plain: a
  reviewer at Apple and a shop owner looking for the delete-my-account
  instructions both want to read this quickly on a phone, and neither is here
  for the design.

  Warm cream and plum to match the app, with a dark mode that follows the
  device rather than a toggle: there is no state to keep on a static page.
*/

:root {
  color-scheme: light dark;

  --ink: #1F1512;
  --ink-2: #5C4A44;
  /*
    #8A7670 came in at 4.03:1 on the cream ground, which fails WCAG AA for body
    text. This is 4.61:1. The dark palette's equivalent already passes at 4.92:1
    and is left alone.
  */
  --ink-3: #7F6D67;
  --ground: #FDF7F1;
  --panel: #FFFFFF;
  --rule: #E7D9CC;
  --accent: #8C3A74;
  --accent-soft: #F6EAF1;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #F7EFE8;
    --ink-2: #C3B2A9;
    --ink-3: #94807A;
    --ground: #1A1310;
    --panel: #241A16;
    --rule: #3A2C26;
    --accent: #DCA6C8;
    --accent-soft: #2C1E28;
  }
}

:root[data-theme='dark'] {
  --ink: #F7EFE8;
  --ink-2: #C3B2A9;
  --ink-3: #94807A;
  --ground: #1A1310;
  --panel: #241A16;
  --rule: #3A2C26;
  --accent: #DCA6C8;
  --accent-soft: #2C1E28;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  /* 16px gutter so nothing touches the edge on a narrow phone. */
  padding-inline: 16px;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 42rem;
  margin-inline: auto;
  padding-block: 48px 96px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 10px;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.12;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.stamp {
  color: var(--ink-3);
  font-size: 14px;
  margin: 0 0 40px;
}

h2 {
  font-size: 20px;
  margin: 44px 0 12px;
  letter-spacing: -0.01em;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  text-wrap: balance;
}

h3 {
  font-size: 16px;
  margin: 26px 0 6px;
}

p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

strong {
  color: var(--ink);
  font-weight: 650;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink-2);
}

li {
  margin-bottom: 7px;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.lead {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 8px;
}

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

.plain {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
}

.plain p {
  color: var(--ink);
  margin: 0;
  font-size: 15px;
}

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

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

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 700;
}

td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.scroll {
  overflow-x: auto;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px 22px;
}

.contact p {
  margin: 0;
  flex: 1 1 16rem;
  min-width: 0;
}

.contact a {
  display: inline-block;
  background: var(--accent);
  color: var(--ground);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  /* 44pt minimum touch target. */
  min-height: 44px;
  line-height: 20px;
  /*
    support@lunarveilinteractive.com is 31 unbreakable characters and pushed the
    page 66px wider than a 320px iPhone SE. A horizontal scrollbar on a support
    page is the kind of thing a reviewer notices.
  */
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

/*
  The App Store button. Same treatment as the support button in .contact, for
  the same reason: accent ground with --ground text is the one pairing on this
  page whose contrast is already checked by npm run check:site, and 44px is the
  minimum touch target.

  This is deliberately typeset rather than Apple's official badge artwork. The
  badge is Apple's mark and comes with rules about clear space and minimum size;
  if you want it, download it from Apple's marketing resources, put the file in
  site/, and swap the text for an <img>. The CSP allows img-src 'self', so a
  local copy works and a hotlink to Apple's CDN will not.
*/
.get {
  margin: 0 0 28px;
}

.get a {
  display: inline-block;
  background: var(--accent);
  color: var(--ground);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  min-height: 44px;
  line-height: 20px;
  text-align: center;
  max-width: 100%;
}

/*
  The update form. No inline styles anywhere on this site, because the CSP sets
  style-src 'self' with no 'unsafe-inline': an inline style attribute is a
  console violation and npm run check:site fails on it. The honeypot field is
  hidden with the HTML hidden attribute for the same reason, which needs no CSS
  at all.
*/
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0 0;
}

.signup label {
  flex: 1 1 100%;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}

.signup input {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 44px;
}

.signup input:focus-visible,
.signup button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.signup button {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 700;
  background: var(--accent);
  color: var(--ground);
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
}

details {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}

summary {
  cursor: pointer;
  padding: 15px 4px;
  font-weight: 650;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--accent);
  font-weight: 700;
  flex: none;
}

details[open] summary::after {
  content: '\2013';
}

details > *:not(summary) {
  padding: 0 4px 8px;
}

details p:last-child {
  margin-bottom: 8px;
}

.cards {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.cards a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
}

.cards a:hover {
  border-color: var(--accent);
}

.cards strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.cards span {
  color: var(--ink-2);
  font-size: 14px;
}

footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 14px;
}

footer a {
  color: var(--ink-3);
}
