/* Shared styles for support.html, privacy.html and terms.html, in the app's "Kitchen Paper"
   look: Lato only, paper and ink, a receipt-tape edge, black glass buttons. */

@font-face { font-family: 'Lato'; src: url('assets/fonts/lato-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('assets/fonts/lato-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('assets/fonts/lato-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --paper: #fffdf6;
  --paper2: #f5f0e3;
  --well: #f2ede0;
  --wall: #dde6df;
  --ink: #1b2421;
  --sub: #5b655f;
  --line: #e2dccb;
  --teal: #138a78;
  --teal-ink: #0c5f52;
  --late: #d63e2c;
  --paid: #2b4ea2;
  --radius: 18px;
  --lift: 0 1px 0 rgba(0, 0, 0, 0.04), 0 10px 26px rgba(40, 40, 30, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper2);
  color: var(--ink);
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); font-weight: 700; text-decoration-color: rgba(27, 36, 33, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { width: min(780px, 100%); margin: 0 auto; padding: 0 20px; }

/* Nav: a strip of receipt paper with a torn bottom edge. */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  padding-bottom: 6px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from 135deg at top, #000 90deg, #0000 0) bottom / 12px 6px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from 135deg at top, #000 90deg, #0000 0) bottom / 12px 6px repeat-x;
  filter: drop-shadow(0 4px 8px rgba(40, 50, 45, 0.08));
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--sub); text-decoration: none; font-size: 15px; font-weight: 700; }
.nav-links a:hover { color: var(--ink); background: var(--well); }
.nav-links a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); border-radius: 0; }

/* Page header */
.doc-header { padding: 56px 0 32px; }
.doc-header .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.doc-header h1 { margin: 0 0 10px; font-size: clamp(38px, 5.5vw, 56px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
.doc-header p { margin: 0; color: var(--sub); font-size: 18px; }

/* Document body: a sheet of paper. */
.doc {
  margin-bottom: 24px;
  padding: 36px 40px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--lift);
}
.doc h2 { margin: 36px 0 10px; font-size: 22px; font-weight: 900; line-height: 1.25; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 22px 0 6px; font-size: 18px; font-weight: 900; }
.doc p, .doc li { color: #303a36; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }

.summary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}
.summary p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.summary strong { color: #fff; }
.summary a { color: #fff; }
.summary svg { flex: none; color: #fff; margin-top: 2px; }

.doc .icon-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.icon-list li { display: flex; gap: 10px; align-items: center; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--well); font-weight: 700; color: var(--ink); }
.icon-list svg { flex: none; color: var(--ink); }

/* Support FAQ */
.faq h2 { display: flex; align-items: center; gap: 12px; }
.faq h2 svg {
  flex: none;
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 7px;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  opacity: 0.55;
  /* Phosphor caret-down */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); opacity: 1; }
.faq details > div { padding: 0 0 16px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Contact: a yellow sticky note. */
.contact {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 28px 30px;
  background: #ffe27a;
  box-shadow: 0 10px 22px rgba(40, 40, 30, 0.14);
  transform: rotate(-0.6deg);
  margin: 8px 0 64px;
}
.contact > div { flex: 1; min-width: 240px; }
.contact h2 { margin: 0 0 4px; font-size: 22px; font-weight: 900; color: #2e2a12; }
.contact p { margin: 0; color: #4a4320; }
.contact a { color: #2e2a12; }

/* A black glass button, like the app's. */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(74, 78, 76, 0.94), rgba(14, 16, 15, 0.96) 58%, #000);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6), 0 8px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0.5px rgba(255, 255, 255, 0.55), inset 0 -8px 14px rgba(255, 255, 255, 0.06);
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.15s ease;
}
.button:hover { transform: translateY(-1px); }

.effective { color: var(--sub); font-size: 15px; }

/* Footer */
.footer { padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--sub); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { color: var(--sub); font-weight: 700; text-decoration: none; margin-left: 16px; }
.footer a:first-child { margin-left: 0; }
.footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .nav-links a { padding: 8px 8px; font-size: 14px; }
  .doc { padding: 26px 22px; }
  .doc .icon-list { grid-template-columns: 1fr; }
}
