/* ================================================================
   fastagnellai.com — policy pages (Terms, Refund, Privacy, Disclaimer,
   Delivery, Grievance). Loaded after careall-fastag.css and uses its
   colour and type tokens. Added 2026-09-19.
================================================================ */

/* ── Title band ─────────────────────────────────────────────── */
.policy-hero {
    background: var(--grad-navy);
    position: relative;
    overflow: hidden;
    padding: 118px 24px 44px;
    color: var(--white);
}
.policy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(127,219,255,0.16) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: .35;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 95%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 95%);
    pointer-events: none;
}
.policy-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: rgba(255,255,255,.62); margin-bottom: 14px; }
.crumbs a { color: var(--sbi-cyan-soft); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.policy-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3.2vw + .8rem, 2.9rem);
    line-height: 1.12;
    letter-spacing: -.01em;
    margin-bottom: 12px;
}
.policy-hero .lede { max-width: 62ch; font-size: 1.02rem; line-height: 1.7; color: rgba(255,255,255,.78); }
.policy-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 20px; }
.policy-meta span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 50px;
    background: rgba(0,181,239,.10); border: 1px solid rgba(0,181,239,.30);
    color: var(--sbi-cyan-soft); font-size: .74rem; font-weight: 600; letter-spacing: .03em;
}

/* ── Layout: contents list + article ────────────────────────── */
.policy-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 72px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 1024px) {
    .policy-wrap { grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; }
}

/* Contents: a card on the left on desktop, a fold-out on phones */
.policy-toc {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 6px 8px;
}
@media (min-width: 1024px) { .policy-toc { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; } }
.policy-toc summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 10px; font-weight: 700; font-size: .86rem; color: var(--sbi-navy);
    text-transform: uppercase; letter-spacing: .06em;
}
.policy-toc summary::-webkit-details-marker { display: none; }
.policy-toc summary svg { width: 18px; height: 18px; transition: transform .2s ease; color: var(--sbi-blue-mid); }
.policy-toc[open] summary svg { transform: rotate(180deg); }
.policy-toc ol { list-style: none; padding: 2px 0 8px; margin: 0; counter-reset: toc; }
.policy-toc li a {
    display: flex; gap: 10px; align-items: baseline;
    padding: 7px 10px; border-radius: 9px;
    font-size: .88rem; line-height: 1.45; color: var(--text-secondary);
    border-left: 2px solid transparent;
}
.policy-toc li a::before {
    counter-increment: toc; content: counter(toc, decimal-leading-zero);
    font-size: .72rem; font-weight: 700; color: var(--sbi-blue-mid); min-width: 18px;
}
.policy-toc li a:hover { background: var(--off-white); color: var(--sbi-navy); }
.policy-toc li a.active { background: rgba(0,181,239,.08); color: var(--sbi-navy); border-left-color: var(--sbi-cyan); font-weight: 600; }

/* ── Article ────────────────────────────────────────────────── */
.policy-doc {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 36px clamp(20px, 4vw, 48px) 40px;
    min-width: 0;
}
.policy-doc section { scroll-margin-top: 92px; }
.policy-doc section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--card-border); }
.policy-doc h2 {
    font-family: var(--font-head);
    font-size: clamp(1.2rem, .9vw + .95rem, 1.5rem);
    line-height: 1.25; color: var(--sbi-navy);
    margin-bottom: 12px;
    display: flex; gap: 12px; align-items: baseline;
}
.policy-doc h2 .n {
    flex: none; font-size: .78rem; font-weight: 700; color: var(--white);
    background: var(--grad-sbi); border-radius: 8px; padding: 3px 8px; letter-spacing: .03em;
    transform: translateY(-2px);
}
.policy-doc h3 { font-size: 1.02rem; color: var(--sbi-navy); margin: 20px 0 8px; }
.policy-doc p, .policy-doc li { font-size: 1rem; line-height: 1.75; color: #27344f; }
.policy-doc p + p { margin-top: 10px; }
.policy-doc ul, .policy-doc ol.list { margin: 10px 0 0 0; padding-left: 22px; }
.policy-doc ul li + li, .policy-doc ol.list li + li { margin-top: 6px; }
.policy-doc ul li::marker { color: var(--sbi-cyan); }
.policy-doc a { color: var(--sbi-blue-mid); text-decoration: underline; text-underline-offset: 2px; }
.policy-doc a:hover { color: var(--sbi-navy); }
.policy-doc strong { color: var(--sbi-navy); }

/* In-short box at the top of each page */
.in-short {
    background: linear-gradient(135deg, rgba(0,181,239,.07), rgba(21,101,192,.05));
    border: 1px solid rgba(0,181,239,.28);
    border-radius: var(--radius-md);
    padding: 20px 22px 18px;
    margin-bottom: 30px;
}
.in-short h2 { font-size: 1.02rem !important; margin-bottom: 10px !important; text-transform: uppercase; letter-spacing: .06em; color: var(--sbi-blue-mid) !important; }
.in-short ul { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 8px; }
.in-short li { display: flex; gap: 10px; align-items: flex-start; }
.in-short li svg { width: 18px; height: 18px; flex: none; color: var(--fastag-green); margin-top: 5px; }

/* Callouts */
.callout {
    display: flex; gap: 14px; align-items: flex-start;
    border-radius: 14px; padding: 14px 16px; margin: 16px 0 4px;
    border: 1px solid; font-size: .96rem;
}
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.callout p { margin: 0 !important; font-size: .96rem !important; }
.callout.info { background: #EEF6FF; border-color: rgba(21,101,192,.25); }
.callout.info svg { color: var(--sbi-blue-mid); }
.callout.warn { background: #FFF6E8; border-color: rgba(214,137,16,.35); }
.callout.warn svg { color: #B46A00; }
.callout.warn strong { color: #7A4600; }
.callout.safe { background: #EEF8EF; border-color: rgba(67,160,71,.35); }
.callout.safe svg { color: #2E7D32; }

/* Tables: scroll sideways inside their own box on phones, never the page */
.table-wrap { overflow-x: auto; margin: 14px 0 4px; border: 1px solid var(--card-border); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.policy-doc table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .94rem; }
.policy-doc th, .policy-doc td { text-align: left; vertical-align: top; padding: 11px 14px; line-height: 1.55; }
.policy-doc thead th { background: var(--sbi-navy); color: var(--white); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.policy-doc tbody tr:nth-child(even) td { background: var(--surface); }
.policy-doc tbody td { border-top: 1px solid var(--card-border); color: #27344f; }
.policy-doc td strong { white-space: nowrap; }

/* Definition-style contact block */
.contact-grid { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--card-border);
}
.contact-item svg { width: 20px; height: 20px; flex: none; color: var(--sbi-blue-mid); margin-top: 3px; }
.contact-item small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.contact-item span, .contact-item a { font-size: .98rem; color: var(--sbi-navy); font-weight: 600; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* Other policies */
.other-policies { margin-top: 40px; }
.other-policies h2 { font-family: var(--font-head); font-size: 1.1rem; color: var(--sbi-navy); margin-bottom: 14px; }
.policy-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .policy-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .policy-cards { grid-template-columns: repeat(3, 1fr); } }
.policy-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 14px;
    background: var(--white); border: 1px solid var(--card-border);
    color: var(--sbi-navy) !important; text-decoration: none !important; font-weight: 600; font-size: .95rem;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.policy-card svg { width: 20px; height: 20px; color: var(--sbi-cyan); flex: none; }
.policy-card:hover { border-color: rgba(0,181,239,.55); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.policy-card[aria-current="page"] { background: var(--off-white); pointer-events: none; opacity: .75; }

/* Footer on policy pages: the site footer, one row shorter */
.footer .policy-foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ── Print: the policy text only ────────────────────────────── */
@media print {
    .navbar, .policy-toc, .other-policies, .footer, .mobile-bar, .float-whatsapp { display: none !important; }
    .policy-hero { background: none; color: #000; padding: 0 0 12px; }
    .policy-hero::before { display: none; }
    .policy-hero .lede, .crumbs { color: #333; }
    .policy-meta span { border-color: #999; color: #333; background: none; }
    .policy-wrap { display: block; padding: 0; }
    .policy-doc { border: 0; box-shadow: none; padding: 0; }
    .policy-doc a { color: #000; }
    body { background: #fff; padding: 0; }
}

/* Phones: each table row becomes a labelled card instead of a table that
   scrolls sideways. The labels come from data-label on every cell. */
@media (max-width: 600px) {
    .table-wrap { overflow: visible; border: 0; border-radius: 0; }
    .policy-doc table { min-width: 0; }
    .policy-doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .policy-doc table, .policy-doc tbody, .policy-doc tr, .policy-doc td { display: block; width: 100%; }
    .policy-doc tbody tr {
        border: 1px solid var(--card-border); border-radius: 14px;
        padding: 6px 14px; margin-bottom: 10px; background: var(--white);
    }
    .policy-doc tbody tr:nth-child(even) td { background: none; }
    .policy-doc tbody td { border-top: 0; padding: 7px 0; }
    .policy-doc tbody td + td { border-top: 1px dashed var(--card-border); }
    .policy-doc tbody td::before {
        content: attr(data-label); display: block;
        font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
        color: var(--sbi-blue-mid); margin-bottom: 2px;
    }
    .policy-doc td strong { white-space: normal; }
}

/* Smallest phones (320px): the e-mail address cannot wrap, which pushed the
   contact cards past the screen edge. Let the text column shrink and wrap. */
.contact-item > div { min-width: 0; }
.contact-item a, .contact-item span { overflow-wrap: anywhere; }
.contact-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A paragraph that follows a list or table needs its own space above it. */
.policy-doc ul + p, .policy-doc .table-wrap + p, .policy-doc .contact-grid + p, .policy-doc .callout + p { margin-top: 14px; }
