/* Privacy, Support and Terms: one readable column on the night sky. The text of Privacy and Support comes from the app's docs. */
body.doc { display: flex; flex-direction: column; }
body.doc main { flex: 1; display: block; min-height: 0; }
body.doc .doc-page {
  width: min(44rem, 100% - 2 * var(--edge));
  margin: 0 auto;
  padding: calc(7.5rem + env(safe-area-inset-top)) 0 clamp(4rem, 9vw, 6rem);
  text-align: left;
}
body.doc .doc-page h1 { max-width: none; font-size: clamp(2.4rem, 7vw, 3.6rem); letter-spacing: -0.02em; }
body.doc .doc-page h2 { margin-top: 2.6rem; font-size: 1.5rem; line-height: 1.2; font-weight: 400; }
body.doc .doc-page h3 { margin-top: 1.8rem; font: 600 1.05rem/1.3 var(--sans); letter-spacing: 0; }
body.doc .doc-page p, .doc-page li { margin: 0.9rem 0 0; color: rgba(243, 240, 255, 0.88); line-height: 1.6; text-wrap: pretty; overflow-wrap: anywhere; }
body.doc .doc-page ul, .doc-page ol { margin: 0.9rem 0 0; padding-left: 1.25rem; }
body.doc .doc-page li { margin-top: 0.45rem; }
body.doc .doc-page li::marker { color: var(--lilac); }
body.doc .doc-page strong { color: var(--text); font-weight: 600; }
body.doc .doc-page a { color: var(--lilac); font-weight: 600; text-underline-offset: 3px; }
body.doc .doc-page code { font-size: 0.88em; padding: 0.1em 0.35em; border-radius: 5px; background: rgba(255, 255, 255, 0.08); }
body.doc .doc-page hr { margin: 2.5rem 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
body.doc .doc-page table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: 0.95rem; }
body.doc .doc-page th, .doc-page td { padding: 0.6rem 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); text-align: left; vertical-align: top; }
body.doc .doc-page .updated { margin-top: 0.8rem; color: var(--text-soft); font-size: 0.95rem; }

/* Support: the ticket form, on the night sky. */
body.doc .doc-page .doc-lede { font-size: 1.15rem; color: var(--text-soft); }
.ticket { display: grid; gap: 1.4rem; margin: 2.2rem 0 1rem; padding: clamp(1.25rem, 4vw, 2rem); border-radius: 24px;
  /* The top bar's material: solid indigo, a soft highlight along the top, a hairline rim and a drop shadow. */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 25px), #1f1a4d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 30px -8px rgba(6, 4, 22, 0.5); }
.ticket [hidden] { display: none !important; }
.ticket-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.ticket-topics legend { width: 100%; margin-bottom: 0.7rem; padding: 0; font-weight: 600; }
.ticket-topics label { position: relative; cursor: pointer; }
.ticket-topics input { position: absolute; opacity: 0; pointer-events: none; }
.ticket-topics span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; font-size: 0.95rem;
  color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ticket-topics label:hover span { background: rgba(255, 255, 255, 0.12); }
.ticket-topics input:checked + span { color: var(--ink); background: var(--pearl); box-shadow: none; font-weight: 600; }
.ticket-topics input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }
.ticket-fields { display: grid; gap: 1.1rem; }
.ticket-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 520px) { .ticket-row { grid-template-columns: minmax(0, 1fr); } }
.ticket-field { display: grid; gap: 0.45rem; }
.ticket-field > span { font-size: 0.95rem; font-weight: 600; }
.ticket-field em { font-style: normal; font-weight: 400; color: var(--text-soft); }
.ticket input[type="text"], .ticket input[type="email"], .ticket select, .ticket textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 0; border-radius: 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(6, 4, 22, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); outline: none;
}
.ticket textarea { resize: vertical; min-height: 3.2rem; line-height: 1.5; }
.ticket select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background: rgba(6, 4, 22, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23b3a6ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 0.9rem center / 0.8rem no-repeat; }
.ticket input::placeholder, .ticket textarea::placeholder { color: rgba(243, 240, 255, 0.4); }
.ticket input:focus, .ticket select:focus, .ticket textarea:focus { box-shadow: inset 0 0 0 1px var(--lilac), 0 0 0 4px rgba(179, 166, 255, 0.18); }
.ticket-send { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: 0.3rem; }
.ticket-send .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.ticket-send .btn:disabled { opacity: 0.6; cursor: default; }
body.doc .doc-page .ticket-status { margin: 0; font-size: 0.9rem; color: var(--text-soft); }
.ticket.is-sent .ticket-field, .ticket.is-sent .ticket-row, .ticket.is-sent .ticket-topics, .ticket.is-sent .btn { display: none; }
.ticket.is-sent .ticket-status { font-size: 1.05rem; color: var(--text); }
.ticket-aside p:first-child { margin-top: 0; }
.ticket-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
