/*
 * Vensu's plain HTML pages: About & contact, Terms, Privacy and the
 * Refund & cancellation policy. They are ordinary pages (no Flutter), so
 * payment-provider reviewers and search engines can read them without
 * running the app. Fonts and logo come from the app's own build assets.
 */

@font-face {
  font-family: "Inter";
  src: url("/assets/assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/assets/fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/assets/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --blue: #0066cc;
  --blue-soft: #e3f2fd;
  --ink: #222222;
  --ink-soft: #3d3d3d;
  --muted: #717171;
  --border: #dddddd;
  --canvas: #ffffff;
  --fill: #f7f7f7;
  --surface: #ffffff;
  --radius: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header img { display: block; height: 34px; width: auto; }
.site-header .cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .cta:hover { background: #004c99; }

/* ── Page body ──────────────────────────────────────────────────────── */

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.page-nav a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.page-nav a:hover { border-color: var(--ink-soft); }
.page-nav a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
  text-wrap: balance;
}
.updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 28px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 0 0 16px;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

h2 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
}
h3 { font-size: 16px; font-weight: 600; margin: 18px 0 4px; }
p, ul, ol { margin: 0 0 12px; }
li { margin: 0 0 6px; }

/* Facts laid out as label / value rows (contact details, policy terms). */
dl.facts {
  display: grid;
  grid-template-columns: minmax(130px, max-content) 1fr;
  gap: 10px 20px;
  margin: 0;
}
dl.facts dt { color: var(--muted); font-size: 15px; }
dl.facts dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

/* The refund presets side by side. */
.table-wrap { overflow-x: auto; margin: 0 0 12px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { font-weight: 600; color: var(--ink-soft); background: var(--fill); }
tbody tr:last-child td { border-bottom: 0; }

.note {
  background: var(--blue-soft);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  margin: 0 0 12px;
}

/* Details the business still has to supply; deploy_web.sh refuses to
   publish a page that still has one. */
.todo {
  background: #fff3cd;
  color: #7a5a00;
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  main { padding: 28px 16px 40px; }
  .site-header .inner { padding: 12px 16px; }
  .site-header img { height: 28px; }
  .site-footer .inner { padding: 20px 16px; }
  h1 { font-size: 26px; }
  .card { padding: 20px 18px; }
  dl.facts { grid-template-columns: 1fr; gap: 2px 0; }
  dl.facts dd { margin-bottom: 10px; }
}
