/* Legal pages (Terms, Booking & Cancellation, Privacy) — slg-* classes. Plain CSS, not compiled by Vite. */

html {
    scroll-padding-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.slg,
.slg-hero {
    --slg-green: #2d5016;
    --slg-green-ink: #2f5d1e;
    --slg-deep: #0f2a18;
    --slg-deep-2: #1f4a18;
    --slg-ink: #243028;
    --slg-body: #4a5347;
    --slg-muted: #5f6a5c;
    --slg-line: #e4e7e2;
    --slg-cream: #f7f6f2;
    --slg-honey: #c97a3a;
    --slg-gold: #e8c27a;
    --slg-leaf: #7fa36a;
    --slg-switch-h: 68px;
    --slg-mtoc-h: 56px;
}

.slg {
    font-family: var(--font-sans, 'Readex Pro', system-ui, sans-serif);
    background: var(--slg-cream);
    color: var(--slg-body);
}

.slg *,
.slg *::before,
.slg *::after {
    box-sizing: border-box;
}

.slg a:focus-visible,
.slg button:focus-visible,
.slg summary:focus-visible {
    outline: 2px solid var(--slg-green-ink);
    outline-offset: 3px;
}

.slg-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Hero script line ---------- */
.slg-hero .main-width::before {
    content: 'Our Policies';
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-sirivennela, 'Sirivennela', cursive);
    font-size: 30px;
    line-height: 1.2;
    color: #e8c27a;
}

/* ---------- Switcher ---------- */
.slg-switch {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffff;
    border-bottom: 1px solid var(--slg-line);
}

.slg-switch__inner {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px clamp(16px, 4vw, 40px);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slg-switch__inner::-webkit-scrollbar {
    display: none;
}

.slg-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--slg-line);
    border-radius: 999px;
    background: #ffffff;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--slg-ink);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.slg-pill:hover {
    border-color: var(--slg-green);
    color: var(--slg-green);
}

.slg-pill.is-active,
.slg-pill.is-active:hover {
    background: var(--slg-green);
    border-color: var(--slg-green);
    color: #ffffff;
}

/* ---------- Shell / meta ---------- */
.slg-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px clamp(16px, 4vw, 40px) 72px;
}

.slg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 24px;
}

.slg-meta__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--slg-muted);
}

.slg-meta__list strong {
    font-weight: 500;
    color: var(--slg-ink);
}

.slg-print {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--slg-line);
    border-radius: 999px;
    background: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--slg-ink);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.slg-print svg {
    width: 18px;
    height: 18px;
}

.slg-print:hover {
    border-color: var(--slg-green);
    color: var(--slg-green);
}

.slg-print-title {
    display: none;
}

/* ---------- Layout ---------- */
.slg-layout {
    display: block;
}

.slg-side {
    display: none;
}

.slg-main {
    min-width: 0;
}

/* Mobile TOC (details) */
.slg-mtoc {
    position: sticky;
    top: var(--slg-switch-h);
    z-index: 20;
    margin: 0 0 20px;
    background: #ffffff;
    border: 1px solid var(--slg-line);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 42, 24, .06);
}

.slg-mtoc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--slg-mtoc-h);
    padding: 0 16px;
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--slg-ink);
}

.slg-mtoc summary::-webkit-details-marker {
    display: none;
}

.slg-mtoc__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slg-mtoc__current {
    color: var(--slg-green-ink);
}

.slg-mtoc__chev {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    transition: transform .25s ease;
}

.slg-mtoc[open] .slg-mtoc__chev {
    transform: rotate(180deg);
}

.slg-mtoc__nav {
    max-height: min(60vh, 420px);
    overflow-y: auto;
    padding: 4px 8px 12px;
    border-top: 1px solid var(--slg-line);
}

.slg-mtoc ol,
.slg-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.slg-mtoc a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--slg-body);
    text-decoration: none;
}

.slg-mtoc a.is-active {
    background: #eef5e9;
    color: var(--slg-green-ink);
    font-weight: 500;
}

/* ---------- Document card ---------- */
.slg-card {
    background: #ffffff;
    border: 1px solid var(--slg-line);
    border-radius: 20px;
    padding: clamp(22px, 5vw, 48px);
}

.slg-prose {
    max-width: 72ch;
    font-size: 15.5px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--slg-body);
    overflow-wrap: break-word;
}

.slg-prose > :first-child {
    margin-top: 0;
}

.slg-prose p {
    margin: 0 0 1em;
}

.slg-prose strong {
    font-weight: 500;
    color: var(--slg-ink);
}

.slg-prose a {
    color: var(--slg-green-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.slg-prose a:hover {
    color: var(--slg-green);
}

.slg-prose h2 {
    position: relative;
    margin: 2.2em 0 .8em;
    padding-top: 1.6em;
    border-top: 1px solid var(--slg-line);
    font-size: clamp(21px, 2.2vw, 24px);
    font-weight: 500;
    line-height: 1.3;
    color: var(--slg-ink);
    scroll-margin-top: calc(var(--slg-switch-h) + var(--slg-mtoc-h) + 24px);
}

.slg-prose h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* First section heading follows the intro paragraphs; keep its divider. */
.slg-num {
    color: var(--slg-honey);
    margin-right: .15em;
}

.slg-anchor {
    margin-left: .35em;
    font-size: .7em;
    font-weight: 400;
    color: var(--slg-muted) !important;
    text-decoration: none !important;
    opacity: 0;
    transition: opacity .2s ease;
}

.slg-prose h2:hover .slg-anchor,
.slg-anchor:focus-visible {
    opacity: 1;
}

.slg-prose h3 {
    margin: 1.6em 0 .5em;
    font-size: 16.5px;
    font-weight: 500;
    color: var(--slg-ink);
}

.slg-prose ul {
    margin: 0 0 1.1em;
    padding: 0;
    list-style: none;
}

.slg-prose li {
    position: relative;
    padding-left: 20px;
    margin: 0 0 .35em;
}

.slg-prose li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: .82em;
    width: 6px;
    height: 6px;
    border-radius: 0 6px 0 6px;
    background: var(--slg-leaf);
}

/* ---------- Tables ---------- */
.slg-table {
    margin: 1.2em 0;
    border: 1px solid var(--slg-line);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.slg-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: 1.5;
}

.slg-table th,
.slg-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--slg-line);
    color: var(--slg-body);
}

.slg-table thead th {
    background: var(--slg-cream);
    font-weight: 500;
    color: var(--slg-ink);
}

.slg-table tbody th {
    font-weight: 500;
    color: var(--slg-ink);
}

.slg-table tbody tr:last-child > * {
    border-bottom: 0;
}

/* ---------- At a glance ---------- */
.slg-glance {
    margin: 0 0 20px;
    padding: clamp(20px, 4vw, 32px);
    background: #ffffff;
    border: 1px solid var(--slg-line);
    border-radius: 20px;
}

.slg-glance__title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 500;
    color: var(--slg-ink);
}

.slg-glance__sub {
    margin: 26px 0 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--slg-ink);
}

.slg-glance__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.slg-gcard {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--slg-cream);
    border: 1px solid var(--slg-line);
    border-radius: 14px;
}

.slg-gcard__label {
    font-size: 13px;
    color: var(--slg-muted);
}

.slg-gcard__value {
    font-size: 20px;
    font-weight: 500;
    color: var(--slg-green-ink);
}

.slg-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.slg-seg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
}

.slg-seg__when {
    font-size: 13px;
}

.slg-seg__result {
    font-size: 17px;
    font-weight: 500;
}

.slg-seg--full {
    background: #eef5e9;
    color: #2f5d1e;
    border-left: 4px solid #4f8a3a;
}

.slg-seg--part {
    background: #fbf2e2;
    color: #7a4f10;
    border-left: 4px solid #d4912c;
}

.slg-seg--none {
    background: #f8e9e4;
    color: #8a3a26;
    border-left: 4px solid #b5533c;
}

.slg-glance__note {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--slg-muted);
}

/* ---------- Contact card ---------- */
.slg-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin-top: 24px;
    padding: clamp(22px, 4vw, 36px);
    border-radius: 20px;
    background: linear-gradient(135deg, #0f2a18 0%, #1f4a18 100%);
    color: #e4ebe0;
}

.slg-contact__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
}

.slg-contact__text {
    margin: 0;
    max-width: 44ch;
    font-size: 14.5px;
    line-height: 1.6;
    color: #cfdccb;
}

.slg-contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.slg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.slg-btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.slg-btn--gold {
    background: #e8c27a;
    color: #0f2a18;
}

.slg-btn--gold:hover {
    background: #f2d59c;
}

.slg-btn--ghost {
    border-color: rgba(228, 235, 224, .4);
    color: #e4ebe0;
}

.slg-btn--ghost:hover {
    border-color: #e8c27a;
    color: #e8c27a;
}

.slg-contact a:focus-visible {
    outline-color: #e8c27a;
}

/* ---------- Related ---------- */
.slg-related {
    margin-top: 24px;
}

.slg-related__title {
    margin: 0 0 10px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--slg-muted);
}

.slg-related__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.slg-rel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 44px;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid var(--slg-line);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.slg-rel:hover {
    border-color: var(--slg-green-ink);
    transform: translateY(-2px);
}

.slg-rel__name {
    font-size: 17px;
    font-weight: 500;
    color: var(--slg-ink);
}

.slg-rel__blurb {
    font-size: 14px;
    line-height: 1.55;
    color: var(--slg-muted);
}

.slg-rel__go {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slg-green-ink);
}

/* ---------- Desktop: two columns ---------- */
@media (min-width: 1024px) {
    .slg-layout {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 40px;
        align-items: start;
    }

    .slg-side {
        display: block;
        position: sticky;
        top: calc(var(--slg-switch-h) + 20px);
    }

    .slg-toc {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        padding: 4px 0 4px 18px;
        border-left: 1px solid var(--slg-line);
        scrollbar-width: thin;
        position: relative;
    }

    .slg-toc__title {
        margin: 0 0 10px;
        font-size: 12.5px;
        font-weight: 600;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--slg-muted);
    }

    .slg-toc a {
        display: block;
        margin-left: -19px;
        padding: 7px 10px 7px 17px;
        border-left: 2px solid transparent;
        font-size: 13.5px;
        line-height: 1.4;
        color: var(--slg-body);
        text-decoration: none;
        transition: color .15s ease, border-color .15s ease;
    }

    .slg-toc a:hover {
        color: var(--slg-green-ink);
    }

    .slg-toc a.is-active {
        border-left-color: var(--slg-green-ink);
        color: var(--slg-green-ink);
        font-weight: 500;
    }

    .slg-mtoc {
        display: none;
    }

    .slg-prose h2 {
        scroll-margin-top: calc(var(--slg-switch-h) + 24px);
    }
}

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
    .slg-glance__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .slg-timeline {
        grid-template-columns: 1fr;
    }

    .slg-related__grid {
        grid-template-columns: 1fr;
    }

    .slg-contact__actions {
        width: 100%;
        flex-direction: column;
    }

    .slg-btn {
        width: 100%;
    }

    .slg-hero .main-width::before {
        font-size: 26px;
    }
}

@media (max-width: 599px) {
    .slg-table {
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .slg-table table,
    .slg-table tbody,
    .slg-table tr,
    .slg-table th,
    .slg-table td {
        display: block;
        width: 100%;
    }

    .slg-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .slg-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--slg-line);
        border-radius: 14px;
        background: #ffffff;
        overflow: hidden;
    }

    .slg-table th,
    .slg-table td {
        padding: 10px 14px;
    }

    .slg-table [data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--slg-muted);
    }

    .slg-table tbody tr:last-child > * {
        border-bottom: 1px solid var(--slg-line);
    }

    .slg-table tbody tr > *:last-child {
        border-bottom: 0;
    }
}

/* ---------- Print ---------- */
@media print {
    #siteNav,
    .page-hero,
    .slg-switch,
    .slg-side,
    .slg-mtoc,
    .slg-print,
    .slg-contact,
    .slg-related,
    .slg-anchor,
    footer {
        display: none !important;
    }

    body,
    .slg {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .slg-shell {
        max-width: none;
        padding: 0;
    }

    .slg-layout {
        display: block;
    }

    .slg-print-title {
        display: block;
        margin: 0 0 12pt;
        font-size: 16pt;
        font-weight: 600;
        color: #000000;
    }

    .slg-meta {
        margin-bottom: 12pt;
    }

    .slg-card,
    .slg-glance {
        border: 0;
        border-radius: 0;
        padding: 0;
        background: #ffffff;
    }

    .slg-prose {
        max-width: none;
        font-size: 11pt;
        font-weight: 400;
        line-height: 1.5;
        color: #000000;
    }

    .slg-prose *,
    .slg-num {
        color: #000000 !important;
    }

    .slg-prose h2 {
        break-after: avoid;
        padding-top: 10pt;
        margin-top: 16pt;
    }

    .slg-prose li::before {
        background: #000000;
    }

    .slg-glance * {
        color: #000000 !important;
    }

    .slg-seg,
    .slg-gcard {
        background: #ffffff;
        color: #000000;
        border: 1px solid #000000;
    }
}
