/* Privacy policy pages for the Village Info apps (one page per app).
   Fonts and colours follow iqbalthalayad.com. Each page sets its own accent
   colour with <html style="--accent: ...; --accent-soft: ...">. */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #151515;
  --text: #2b2b2e;
  --muted: #6a6b70;
  --line: #e3dfd6;
  --accent: #0e7490;
  --accent-soft: #dcf0f4;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Malayalam", sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121311; --surface: #1c1d1b; --ink: #f2f1ec; --text: #d9d8d2;
    --muted: #a3a29b; --line: #34352f; --accent-soft: #23302a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-block: 36px 30px; }
.app { display: flex; align-items: center; gap: 16px; }
.app img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.app p { margin: 0; font-size: .9375rem; color: var(--muted); }
.app strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
h1 { margin: 22px 0 6px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(2rem, 1.4rem + 2.6vw, 2.75rem); line-height: 1.15; color: var(--ink); }
.updated { margin: 0; font-size: .9375rem; color: var(--muted); }

/* At a glance */
.glance { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 24px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .glance { grid-template-columns: 1fr 1fr; } }
.glance li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--accent-soft); border-radius: 12px; font-size: .9375rem; line-height: 1.5; color: var(--ink); }
.glance li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; font-size: .8125rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 50%; }

.ml { margin: 20px 0 0; padding: 14px 16px; font-size: .9375rem; line-height: 1.75; background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; }
.ml b { color: var(--ink); }

/* Contents */
.toc { margin: 28px 0 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.toc h2 { margin: 0 0 8px; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--font); }
.toc ol { margin: 0; padding-left: 1.4em; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 0 0 4px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Content */
main { padding-block: 8px 64px; }
section { margin-top: 36px; }
h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.3; color: var(--ink); }
h2 .n { display: inline-grid; place-items: center; min-width: 30px; height: 30px; margin-right: 8px; padding-inline: 6px; font: 600 .875rem var(--font); color: var(--accent); background: var(--accent-soft); border-radius: 8px; vertical-align: 2px; }
h3 { margin: 22px 0 6px; font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }
strong { color: var(--ink); }

.note { margin: 0 0 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; }
.note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9375rem; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
td:first-child { font-weight: 600; color: var(--ink); }

/* Phones: each table row becomes a small card */
@media (max-width: 640px) {
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { padding: 3px 0; border: 0; }
  td:first-child { margin-bottom: 4px; font-size: 1.0625rem; }
  td:not(:first-child)::before { content: attr(data-label); display: block; margin-top: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
}

.contact { display: grid; gap: 4px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.contact a { font-weight: 600; overflow-wrap: anywhere; }
.btn { display: inline-block; margin-top: 8px; padding: 10px 18px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 999px; text-decoration: none; }
.btn:hover { color: #fff; filter: brightness(.92); }

footer { padding: 24px 0 28px; font-size: .9375rem; color: #a8a59d; background: #151515; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
footer p { margin: 0; }
footer a { color: #d6d3cb; }
footer a:hover { color: #fff; }
