/* Nesta policy pages (velexan.tech/<page>-nesta). Palette from the design system; system fonts only, so a privacy
   page makes no request to a third-party font service. Light theme only, like the app. */
:root {
  --ivory: #FBF7F4;
  --paper: #FFFDFC;
  --ink: #2B2528;
  --muted: #6B6166;
  --rosewood: #B04A66;
  --blush-soft: #F9EAEA;
  --apricot-soft: #F8E4D7;
  --hairline: #F2E2E3;
}

* { box-sizing: border-box; }

html { background: var(--ivory); }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

.site {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--rosewood);
  text-decoration: none;
}
.site a.home { color: var(--muted); font-size: 15px; }

.draft {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--apricot-soft);
  border: 1px solid #F2B694;
  font-size: 15px;
}
.draft strong { display: block; }

main { padding: 8px 0 48px; }

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  margin: 28px 0 4px;
}
.meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  margin: 32px 0 8px;
}
h3 { font-size: 17px; margin: 20px 0 4px; }

p, ul, ol { margin: 0 0 12px; }
li { margin-bottom: 4px; }
a { color: var(--rosewood); text-underline-offset: 2px; }

.fill {
  background: var(--blush-soft);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

.note {
  padding: 12px 16px;
  border-left: 3px solid var(--rosewood);
  background: var(--paper);
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
}

.toc { background: var(--paper); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 16px 4px; margin: 0 0 8px; }
.toc p { font-weight: 600; margin-bottom: 4px; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--hairline); }
th { background: var(--paper); font-weight: 600; }

footer { border-top: 1px solid var(--hairline); padding: 20px 0 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
footer a { color: var(--muted); }

@media (max-width: 480px) {
  h1 { font-size: 27px; }
  h2 { font-size: 20px; }
}

/* Forms (delete account, support) */
.form { display: grid; gap: 8px; margin: 12px 0 8px; padding: 16px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px; }
.form[hidden] { display: none; }
.form label { font-weight: 600; font-size: 15px; }
.form input[type="email"], .form input[type="text"], .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--ivory); width: 100%;
  min-height: 48px; padding: 10px 12px; border: 1px solid #E3CFD2; border-radius: 12px;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--rosewood); outline-offset: 1px; border-color: transparent; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 4px 0; }
.form .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--rosewood); flex: none; }
.form button {
  font: inherit; font-weight: 600; min-height: 48px; border: 0; border-radius: 999px; cursor: pointer;
  color: #FFFDFC; background: var(--rosewood); margin-top: 4px;
}
.form button.danger { background: #973F58; }
.form button.link { background: none; color: var(--rosewood); min-height: 44px; }
.form button:disabled { opacity: 0.6; cursor: default; }
.status { min-height: 1.6em; font-size: 15px; }
.status.error { color: #973F58; font-weight: 600; }
.status.ok { color: #4A6656; font-weight: 600; }
