/* Shared styles for EasySlip policy and contact pages. Tokens follow DESIGN.md. */
:root {
    --bg: #fbfdfb;
    --surface: #eef5f0;
    --surface-2: #dff0e4;
    --ink: #112018;
    --muted: #4a5d52;
    --field: #0b3f24;
    --field-2: #006d3b;
    --on-field: #f6faf7;
    --accent: #f4c95d;
    --on-accent: #112018;
    --paper: #ffffff;
    --margin: clamp(20px, 5vw, 56px);
    --r-xl: 36px;
    --r-lg: 28px;
    --r-md: 18px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    --step-body: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
    --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
    --step-head: clamp(2rem, 1.35rem + 2.9vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: rgba(0, 109, 59, 0.15); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "General Sans", "Anek Malayalam", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: var(--step-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, table, figure { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--field-2); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.skip { position: absolute; left: var(--margin); top: -80px; z-index: 10; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: max(var(--margin), env(safe-area-inset-left)) max(var(--margin), env(safe-area-inset-right)); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.nav img { width: 168px; }
.nav ul { display: flex; align-items: center; gap: 28px; list-style: none; }
.link { font-weight: 500; transition: color 180ms var(--ease); }
.link:hover { color: var(--field-2); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
    background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 500; text-decoration: none;
    border: 0; border-radius: 999px; cursor: pointer; touch-action: manipulation;
    transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #f7d57c; }
.btn:active { transform: scale(0.98); }
.nav .btn { min-height: 46px; padding: 0 22px; }

/* Page head */
.head { margin-top: clamp(24px, 4vw, 56px); background: var(--surface-2); border-radius: var(--r-xl); padding: clamp(32px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.head h1 { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.head .lead { margin-top: 16px; font-size: var(--step-lead); line-height: 1.35; color: var(--muted); max-width: 34ch; }
.head .date { margin-top: 20px; font-size: var(--step-small); color: var(--muted); }
.head svg { width: clamp(120px, 14vw, 190px); height: auto; }

/* Document layout */
.doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 7vw, 104px); align-items: start; }
.toc { position: sticky; top: 24px; background: var(--surface); border-radius: var(--r-lg); padding: 28px; max-height: calc(100vh - 48px); overflow-y: auto; }
.toc h2 { font-size: var(--step-body); font-weight: 600; margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 8px 12px; margin-inline: -12px; border-radius: 12px; text-decoration: none; font-size: var(--step-small); line-height: 1.4; color: var(--muted); transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.toc a:hover { background: var(--surface-2); color: var(--ink); }

.prose { max-width: 70ch; min-width: 0; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-top: clamp(48px, 5vw, 72px); scroll-margin-top: 24px; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-body); font-weight: 600; line-height: 1.35; margin-top: 32px; }
.prose h4 { font-size: var(--step-body); font-weight: 500; line-height: 1.35; margin-top: 24px; color: var(--field-2); }
.prose ul, .prose ol { padding-left: 1.25em; display: grid; gap: 8px; }
.prose li::marker { color: var(--field-2); }
.prose li > ul, .prose li > ol { margin-top: 8px; }
.prose a { font-weight: 500; }
.prose a:hover { color: var(--field-2); }
.note { background: var(--surface); border-radius: var(--r-md); padding: 22px 26px; }
.note > * + * { margin-top: 12px; }
.note ul, .note ol { padding-left: 1.25em; display: grid; gap: 6px; }
.tablewrap { overflow-x: auto; border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--step-small); line-height: 1.45; }
.prose th, .prose td { padding: 14px 16px; vertical-align: top; background: var(--surface); }
.prose thead th { background: var(--field); color: var(--on-field); font-weight: 500; }
.prose tbody tr + tr th, .prose tbody tr + tr td { border-top: 3px solid var(--bg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 72px); }
.card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 36px); }
.card h2, .card h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.card p { margin-top: 8px; color: var(--muted); }
.card .big { display: inline-block; margin-top: 16px; font-size: var(--step-lead); font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.ic { display: block; width: 48px; height: 48px; padding: 10px; margin-bottom: 20px; background: var(--surface-2); border-radius: 14px; fill: none; stroke: var(--field-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(64px, 9vw, 136px); align-items: start; }
.split h2 { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.split .intro { margin-top: 16px; color: var(--muted); max-width: 46ch; }
form { margin-top: 32px; display: grid; gap: 20px; }
label { display: block; font-weight: 500; margin-bottom: 8px; }
label small { font-weight: 400; color: var(--muted); font-size: var(--step-small); }
input, select, textarea {
    width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; color: var(--ink);
    background: var(--paper); border: 1px solid #8fa397; border-radius: 14px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--field-2); outline-offset: 1px; }
.form-note { font-size: var(--step-small); color: var(--muted); }
.faq { display: grid; gap: 12px; margin-top: 28px; }
.faq details { background: var(--surface); border-radius: var(--r-md); padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 500; padding: 16px 0; list-style-position: outside; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Footer */
footer { margin-top: clamp(96px, 12vw, 176px); padding-bottom: 40px; }
.foot { background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; }
.foot p { max-width: 52ch; }
.foot .small { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.foot ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; align-content: start; }

@media (max-width: 899px) {
    .head { grid-template-columns: 1fr; }
    .head svg { order: -1; width: 110px; }
    .doc, .split, .foot { grid-template-columns: 1fr; }
    .toc { position: static; max-height: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .nav img { width: 132px; }
    .nav-opt { display: none; }
    :root { --r-xl: 24px; --r-lg: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .link, .toc a { transition: none; }
    .btn:hover { transform: none; }
}
