/*
 * Harvestime policy pages — privacy, terms, cookies, returns, delivery.
 * Loaded by includes/legal.php on those pages only.
 * Shares the tokens and reading rhythm of the blog article layer so every
 * long-form page on the site reads as one system.
 */

.harvestime-legal-page {
    --ht-legal-forest: #0c4437;
    --ht-legal-deep: #07372d;
    --ht-legal-green: #35b979;
    --ht-legal-lime: #b7dc64;
    --ht-legal-ink: #15372e;
    --ht-legal-body: #33514a;
    --ht-legal-muted: #61756f;
    --ht-legal-line: #dce7e1;
    --ht-legal-soft: #e8f0ea;
    --ht-legal-wash: #f3f7f3;
    --ht-legal-cream: #fbfcf8;
    --ht-legal-radius: 22px;
    background: var(--ht-legal-cream);
}

.harvestime-legal-page #content.site-content {
    padding-top: 0 !important;
    background:
        radial-gradient(circle at 3% 2%, rgba(183, 220, 100, 0.12), transparent 26rem),
        var(--ht-legal-cream);
}

.harvestime-legal-page #content > .container {
    width: min(100% - 40px, 1200px) !important;
    max-width: 1200px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

.harvestime-legal-page #primary.content-area {
    width: 100%;
    max-width: 100%;
    padding-top: 36px !important;
    padding-bottom: 92px !important;
}

.harvestime-legal-page #main > .row {
    margin: 0 !important;
}

.harvestime-legal-page article.page {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.harvestime-legal-page article.page > .entry-content {
    padding: 0 !important;
}

/* ------------------------------------------------------------------ *
 * Breadcrumb strip — matched to the blog and shop
 * ------------------------------------------------------------------ */
.harvestime-legal-page .dokan_only_breadcrumb {
    padding: 0 !important;
    background: #f7faf7;
    border-top: 1px solid rgba(20, 65, 53, 0.06);
    border-bottom: 1px solid var(--ht-legal-line);
}

.harvestime-legal-page .breadcrumbs.nest {
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    display: flex;
    align-items: center;
}

.harvestime-legal-page .breadcrumbs.nest .breadcrumb {
    min-height: 64px;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--ht-legal-muted);
    font-size: 13px;
    font-weight: 500;
}

.harvestime-legal-page .breadcrumbs.nest .breadcrumb li,
.harvestime-legal-page .breadcrumbs.nest .breadcrumb a {
    color: var(--ht-legal-muted) !important;
    font-size: inherit !important;
    font-weight: 500 !important;
}

.harvestime-legal-page .breadcrumbs.nest .breadcrumb li:last-child {
    color: var(--ht-legal-ink) !important;
    font-weight: 600 !important;
}

/* ------------------------------------------------------------------ *
 * Page header
 * ------------------------------------------------------------------ */
.harvestime-legal-page .ht-legal__header {
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(24px, 3vw, 36px);
    padding: clamp(30px, 4.4vw, 54px);
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 4%, rgba(183, 220, 100, 0.2), transparent 50%),
        radial-gradient(circle at 68% 130%, rgba(53, 185, 121, 0.28), transparent 58%),
        linear-gradient(125deg, var(--ht-legal-deep), var(--ht-legal-forest));
}

.harvestime-legal-page .ht-legal__eyebrow {
    margin: 0 0 14px !important;
    color: var(--ht-legal-lime) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.17em !important;
    line-height: 1 !important;
    text-transform: uppercase;
}

.harvestime-legal-page .ht-legal__title {
    margin: 0 !important;
    max-width: 20ch;
    color: #fff !important;
    font-family: var(--font-display);
    font-size: clamp(29px, 4vw, 48px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.034em !important;
    line-height: 1.06 !important;
    text-wrap: balance;
}

.harvestime-legal-page .ht-legal__standfirst {
    margin: 18px 0 0 !important;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: clamp(15px, 1.15vw, 17px) !important;
    font-weight: 400 !important;
    line-height: 1.66 !important;
}

.harvestime-legal-page .ht-legal__meta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 24px 0 0 !important;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78) !important;
    background: rgba(255, 255, 255, 0.07);
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.harvestime-legal-page .ht-legal__meta::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--ht-legal-lime);
}

/* ------------------------------------------------------------------ *
 * Layout: contents rail + reading column
 * ------------------------------------------------------------------ */
.harvestime-legal-page .ht-legal__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.harvestime-legal-page .ht-legal__toc {
    padding: 22px;
    border: 1px solid var(--ht-legal-line);
    border-radius: var(--ht-legal-radius);
    background: #fff;
    box-shadow: 0 12px 32px rgba(20, 65, 53, 0.05);
}

.harvestime-legal-page .ht-legal__toc-title {
    margin: 0 0 14px !important;
    color: var(--ht-legal-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.13em !important;
    line-height: 1 !important;
    text-transform: uppercase;
}

.harvestime-legal-page .ht-legal__toc ol {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    counter-reset: ht-toc;
    display: grid;
    gap: 2px;
}

.harvestime-legal-page .ht-legal__toc li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    counter-increment: ht-toc;
}

.harvestime-legal-page .ht-legal__toc a {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ht-legal-body) !important;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none !important;
    transition: background-color 160ms ease, color 160ms ease;
}

.harvestime-legal-page .ht-legal__toc a::before {
    content: counter(ht-toc);
    flex: 0 0 auto;
    min-width: 1.4em;
    color: var(--ht-legal-muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.7;
}

.harvestime-legal-page .ht-legal__toc a:hover,
.harvestime-legal-page .ht-legal__toc a:focus-visible {
    color: var(--ht-legal-forest) !important;
    background: var(--ht-legal-wash);
}

.harvestime-legal-page .ht-legal__body {
    padding: clamp(24px, 3.2vw, 46px);
    border: 1px solid var(--ht-legal-line);
    border-radius: var(--ht-legal-radius);
    background: #fff;
    box-shadow: 0 14px 38px rgba(20, 65, 53, 0.05);
    color: var(--ht-legal-body);
    font-size: 16.5px;
    line-height: 1.78;
}

/* ------------------------------------------------------------------ *
 * Policy typography
 * ------------------------------------------------------------------ */
.harvestime-legal-page .ht-legal__body > *:first-child {
    margin-top: 0 !important;
}

.harvestime-legal-page .ht-legal__body p {
    max-width: 74ch;
    margin: 0 0 1.35em !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.harvestime-legal-page .ht-legal__heading {
    max-width: none;
    margin: 2.2em 0 0.7em !important;
    padding-top: 1.5em;
    border-top: 1px solid var(--ht-legal-soft);
    color: var(--ht-legal-ink) !important;
    font-family: var(--font-display);
    font-size: clamp(21px, 2.1vw, 26px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.028em !important;
    line-height: 1.24 !important;
    scroll-margin-top: 110px;
}

.harvestime-legal-page .ht-legal__body > .ht-legal__heading:first-child {
    margin-top: 0 !important;
    padding-top: 0;
    border-top: 0;
}

.harvestime-legal-page .ht-legal__body h2:not(.ht-legal__heading),
.harvestime-legal-page .ht-legal__body h3,
.harvestime-legal-page .ht-legal__body h4 {
    margin: 1.9em 0 0.6em !important;
    color: var(--ht-legal-ink) !important;
    font-family: var(--font-display);
    font-weight: 700 !important;
    letter-spacing: -0.026em !important;
    line-height: 1.3 !important;
    scroll-margin-top: 110px;
}

.harvestime-legal-page .ht-legal__body h3 {
    font-size: 19px !important;
}

.harvestime-legal-page .ht-legal__body h4 {
    font-size: 17px !important;
}

/* Bold lead-ins such as "Order Processing: To process and fulfil…" */
.harvestime-legal-page .ht-legal__body p > strong:first-child {
    color: var(--ht-legal-ink);
    font-weight: 700;
}

.harvestime-legal-page .ht-legal__body a:not(.ht-legal__related-links a) {
    color: var(--ht-legal-forest) !important;
    font-weight: 600;
    text-decoration: none;
    box-shadow: inset 0 -1px 0 0 rgba(53, 185, 121, 0.5);
    overflow-wrap: anywhere;
    transition: box-shadow 180ms ease;
}

.harvestime-legal-page .ht-legal__body a:not(.ht-legal__related-links a):hover {
    box-shadow: inset 0 -2px 0 0 var(--ht-legal-green);
}

.harvestime-legal-page .ht-legal__body ul,
.harvestime-legal-page .ht-legal__body ol {
    max-width: 74ch;
    margin: 0 0 1.35em !important;
    padding-left: 1.3em !important;
}

.harvestime-legal-page .ht-legal__body li {
    margin: 0 0 0.55em !important;
    padding-left: 0.25em;
    line-height: 1.72;
}

.harvestime-legal-page .ht-legal__body li::marker {
    color: var(--ht-legal-green);
    font-weight: 700;
}

.harvestime-legal-page .ht-legal__body blockquote {
    margin: 1.8em 0 !important;
    padding: 20px 24px !important;
    border: 0 !important;
    border-left: 3px solid var(--ht-legal-green) !important;
    border-radius: 0 12px 12px 0;
    background: var(--ht-legal-wash);
    color: var(--ht-legal-ink);
    font-size: 16px;
    font-style: normal;
}

.harvestime-legal-page .ht-legal__body table {
    width: 100%;
    margin: 1.8em 0 !important;
    border-collapse: collapse;
    font-size: 14.5px;
}

.harvestime-legal-page .ht-legal__body th,
.harvestime-legal-page .ht-legal__body td {
    padding: 11px 14px;
    border: 1px solid var(--ht-legal-line);
    text-align: left;
    vertical-align: top;
}

.harvestime-legal-page .ht-legal__body th {
    background: var(--ht-legal-wash);
    color: var(--ht-legal-ink);
    font-weight: 700;
}

/* Wide content scrolls inside itself; the page never scrolls sideways. */
.harvestime-legal-page .ht-legal__body > table,
.harvestime-legal-page .ht-legal__body pre {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

/* ------------------------------------------------------------------ *
 * Contact block and policy cross-links
 * ------------------------------------------------------------------ */
.harvestime-legal-page .ht-legal__contact {
    margin-top: 2.4em;
    padding: 24px;
    border: 1px solid var(--ht-legal-line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(53, 185, 121, 0.09), transparent 16rem),
        var(--ht-legal-wash);
}

.harvestime-legal-page .ht-legal__contact h2 {
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--ht-legal-ink) !important;
    font-family: var(--font-display);
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: -0.026em !important;
    line-height: 1.3 !important;
}

.harvestime-legal-page .ht-legal__contact p {
    margin: 0 0 14px !important;
    color: var(--ht-legal-muted) !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
}

.harvestime-legal-page .ht-legal__contact-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.harvestime-legal-page .ht-legal__contact-lines a,
.harvestime-legal-page .ht-legal__contact-lines span {
    padding: 9px 14px;
    border: 1px solid var(--ht-legal-line);
    border-radius: 999px;
    color: var(--ht-legal-ink) !important;
    background: #fff;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.harvestime-legal-page .ht-legal__contact-lines a:hover {
    border-color: var(--ht-legal-forest);
    box-shadow: none !important;
}

.harvestime-legal-page .ht-legal__related {
    margin-top: clamp(24px, 3vw, 34px);
    padding: 22px clamp(20px, 2.6vw, 28px);
    border: 1px solid var(--ht-legal-line);
    border-radius: var(--ht-legal-radius);
    background: #fff;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.harvestime-legal-page .ht-legal__related-title {
    margin: 0 !important;
    color: var(--ht-legal-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.13em !important;
    line-height: 1 !important;
    text-transform: uppercase;
}

.harvestime-legal-page .ht-legal__related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.harvestime-legal-page .ht-legal__related-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid var(--ht-legal-line);
    border-radius: 999px;
    color: var(--ht-legal-ink) !important;
    background: #fff;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: border-color 160ms ease, transform 160ms ease;
}

.harvestime-legal-page .ht-legal__related-links a:hover,
.harvestime-legal-page .ht-legal__related-links a:focus-visible {
    border-color: var(--ht-legal-forest);
    transform: translateY(-1px);
}

/* ------------------------------------------------------------------ *
 * Breakpoints
 * ------------------------------------------------------------------ */
@media (min-width: 992px) {
    .harvestime-legal-page .ht-legal__layout {
        grid-template-columns: minmax(0, 258px) minmax(0, 1fr);
        gap: 26px;
    }

    .harvestime-legal-page .ht-legal__layout.is-single-column {
        grid-template-columns: minmax(0, 1fr);
    }

    .harvestime-legal-page .ht-legal__toc {
        position: sticky;
        top: 96px;
        max-height: calc(100vh - 132px);
        overflow-y: auto;
    }
}

@media (max-width: 991px) {
    .harvestime-legal-page #content > .container {
        width: min(100% - 32px, 1200px) !important;
    }

    .harvestime-legal-page #primary.content-area {
        padding-top: 24px !important;
        padding-bottom: 64px !important;
    }

    /* The contents list collapses so it never pushes the policy off screen. */
    .harvestime-legal-page .ht-legal__toc ol {
        max-height: 232px;
        overflow-y: auto;
    }
}

@media (max-width: 767px) {
    .harvestime-legal-page #content > .container {
        width: min(100% - 24px, 1200px) !important;
    }

    .harvestime-legal-page .ht-legal__header,
    .harvestime-legal-page .ht-legal__body,
    .harvestime-legal-page .ht-legal__toc,
    .harvestime-legal-page .ht-legal__related {
        border-radius: 18px;
    }

    .harvestime-legal-page .ht-legal__body {
        font-size: 15.8px;
        line-height: 1.76;
    }

    .harvestime-legal-page .ht-legal__heading {
        padding-top: 1.2em;
    }

    .harvestime-legal-page .ht-legal__related {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .harvestime-legal-page *,
    .harvestime-legal-page *::before,
    .harvestime-legal-page *::after {
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
