/* peter — styles for the Privacy, Terms and Support pages (the homepage
   has its own home.css). Same materials as the app: paper page, Iowan serif,
   black ink, hand-drawn stickers. */

:root {
  --paper: #f9f9f9;      /* the app's Color.paper (0.976) */
  --card: #ffffff;
  --ink: #111111;
  --ink-2: rgba(17, 17, 17, 0.62);
  --ink-3: rgba(17, 17, 17, 0.42);
  --rule: rgba(17, 17, 17, 0.08);
  --green: #2bc155;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img, video { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- header ---------- */

.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.lockup { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.lockup img { width: 36px; height: 36px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.1), 0 2px 6px rgba(17, 17, 17, 0.08); background: #fff; }
.lockup span { font-family: var(--serif); font-size: 30px; line-height: 1; transform: translateY(-2px); }

.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- documents ---------- */

.doc { padding: 16px 0 80px; }
.doc h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 48px); line-height: 1.1; margin: 10px 0 6px;
}
.doc .meta { color: var(--ink-3); font-size: 15px; margin: 0 0 30px; }
.doc h2 { font-family: var(--serif); font-weight: 600; font-size: 23px; margin: 38px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: rgba(17, 17, 17, 0.82); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 1px 0 var(--rule); }
.doc .summary ul { margin: 8px 0 0; }

table.processors { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
table.processors th, table.processors td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.processors th { font-weight: 600; }

/* Draft markers — every one must be filled in before the site goes live. */
mark.todo { background: #ffe9a8; color: #5a4300; padding: 0 4px; border-radius: 4px; }

/* ---------- support ---------- */

details.faq { background: var(--card); border-radius: 16px; padding: 4px 20px; margin: 10px 0; box-shadow: 0 1px 0 var(--rule); }
details.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--ink-3); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 16px; }

.contact { text-align: center; padding: 30px 24px; }
.contact a.mail { font-family: var(--serif); font-size: 24px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--rule); padding: 26px 0 40px; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }

/* ---------- small screens ---------- */

@media (max-width: 820px) {
}
@media (max-width: 480px) {
  .nav { gap: 14px; font-size: 14px; }
}
