/* NomPal's web pages (support, privacy, terms). Light only and monochrome, as the app is (docs/rules.md). The background is
   the app's canvas (iOS systemGroupedBackground), so a page opened inside the Profile sheet sits in it without an edge. */
:root {
  --ink: #191F28;
  --body: #4E5968;
  --grey: #8B95A1;
  --chevron: #B0B8C1;
  --line: #F2F4F6;
  --bg: #F2F2F7;
  --card: #FFFFFF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 16px calc(40px + env(safe-area-inset-bottom));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
h1 { margin: 32px 0 8px; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.6px; }
.lead { margin: 0 0 28px; font-size: 16px; line-height: 1.5; color: var(--grey); }
.label { margin: 24px 4px 8px; font-size: 13px; font-weight: 500; color: var(--grey); }
.card { background: var(--card); border-radius: 20px; overflow: hidden; }

/* Support: questions that open in place. */
details + details { border-top: 1px solid var(--line); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: -0.2px;
  -webkit-tap-highlight-color: transparent;
}
summary::-webkit-details-marker { display: none; }
summary svg { flex: none; width: 20px; height: 20px; color: var(--chevron); transition: transform 0.2s ease; }
details[open] summary svg { transform: rotate(180deg); }
.answer { padding: 0 20px 20px; font-size: 15px; line-height: 1.6; color: var(--body); }
.answer p { margin: 0; }
.answer p + p, .answer ol { margin-top: 10px; }
.answer ol { margin-bottom: 0; padding-left: 20px; }
.answer li + li { margin-top: 4px; }
.answer b { color: var(--ink); font-weight: 600; }
.answer a { color: var(--ink); }
.contact { margin-top: 32px; padding: 24px 20px 20px; text-align: center; }
.contact h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.contact p { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--grey); }
.button {
  display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 16px;
  background: var(--ink); color: #fff; font-size: 17px; font-weight: 600; text-decoration: none;
  transition: transform 0.09s ease;
}
.button:active { transform: scale(0.98); }
.address { display: block; margin-top: 12px; font-size: 14px; color: var(--grey); }

/* Privacy and Terms: one document card. */
.doc { padding: 4px 20px 24px; }
.doc h2 { margin: 24px 0 8px; font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -0.3px; }
.doc p, .doc li { font-size: 15px; line-height: 1.65; color: var(--body); }
.doc p { margin: 0 0 10px; }
.doc ul { margin: 0 0 10px; padding-left: 20px; }
.doc li + li { margin-top: 4px; }
.doc b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ink); }

/* Inside the app's Profile sheet, whose header already shows the page's name and a back button. */
.in-app main { padding-top: 16px; }
.in-app .brand { display: none; }
.in-app h1 { margin-top: 0; }

footer { margin-top: 28px; text-align: center; font-size: 13px; color: var(--grey); }
footer a { color: var(--grey); text-decoration: none; }
footer span { margin: 0 8px; }
