/* Policy pages (terms, privacy, refunds, delivery, contact).
   Colours and fonts match the main site in /css/style.css. */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #151515;
  --text: #2b2b2e;
  --muted: #6a6b70;
  --line: #e3dfd6;
  --accent: #0e7490;
  --accent-soft: #dcf0f4;
  --font-display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
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: 780px; margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.policy-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.policy-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.back { font-size: 0.9375rem; font-weight: 500; }

/* Policy navigation (same on every page) */
.policy-nav { border-bottom: 1px solid var(--line); background: var(--surface); }
.policy-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 10px 0; list-style: none; }
.policy-nav a { display: inline-block; padding: 6px 12px; font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 999px; }
.policy-nav a:hover { color: var(--ink); background: var(--bg); }
.policy-nav a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }

/* Content */
main { padding-block: 40px 64px; }
h1 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2.6vw, 2.75rem); line-height: 1.15; color: var(--ink); }
.updated { margin: 0 0 32px; font-size: 0.9375rem; color: var(--muted); }
h2 { margin: 40px 0 10px; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.3; color: var(--ink); }
h3 { margin: 24px 0 6px; 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); }

.summary { margin: 0 0 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; background: var(--surface); }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
th { color: var(--ink); background: #faf9f6; }

.contact-list { padding: 0; list-style: none; }
.contact-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { font-size: 0.875rem; color: var(--muted); }
.contact-list p { margin: 0; }
.contact-list a, .contact-list address { font-style: normal; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

/* Footer */
.policy-footer { padding: 24px 0 28px; font-size: 0.9375rem; color: #a8a59d; background: var(--ink); }
.policy-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.policy-footer p { margin: 0; }
.policy-footer a { color: #d6d3cb; }
.policy-footer a:hover { color: #fff; }

/* Product sections: Village Info and Mess Book are kept apart on every policy page */
.products { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.products li { margin: 0; }
.products a { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.tag-vi { color: #0f5c34; background: #e3f3ea; }
.tag-mb { color: #124d3f; background: #fbf0d2; }
.product { margin-top: 44px; padding: 4px 0 4px 18px; border-left: 4px solid; scroll-margin-top: 16px; }
.product-vi { border-color: #13703f; }
.product-mb { border-color: #ebb83a; }
.product > h2:first-child { margin-top: 0; }
.product-label { display: inline-block; margin: 0 0 4px; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.header-links { display: flex; gap: 12px; white-space: nowrap; }
