/* Policy — classes/widgets/Policy/policy.php
   vw on the 1440 canvas like hero.css; px from 1024 down.
   The Columns control writes --pol-cols-set, never --pol-cols: Elementor's
   selector carries two classes and would outrank the breakpoints below. */

.pol {
    --pol-bg: #1b2e42;
    --pol-ink: #ffffff;
    --pol-body: rgba(255, 255, 255, .72);
    --pol-gold: #e0a940;
    --pol-item-body: rgba(255, 255, 255, .76);
    --pol-btn-bg: #e8b64a;
    --pol-btn-ink: #16293a;
    --pol-cols: var(--pol-cols-set, 1);
    --pol-shape-color: rgba(72, 116, 150, .45);
    --pol-shape-size: 80%;
    --pol-shape-x: 42%;
    --pol-shape-y: 88%;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 5.56vw 80px;
    overflow: hidden;
    background: var(--pol-bg);
}

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

/* the wash over a background photo; transparent until the Overlay control
   gives it a colour, so it costs nothing when no image is set */
.pol::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--pol-overlay, transparent);
    pointer-events: none;
}

/* decorative layer behind the content */
.pol__shape {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.pol--shape-glow .pol__shape {
    background-image: radial-gradient(var(--pol-shape-size) var(--pol-shape-size) at var(--pol-shape-x) var(--pol-shape-y), var(--pol-shape-color) 0%, transparent 70%);
}

.pol--shape-lines .pol__shape {
    background-image: repeating-linear-gradient(115deg, var(--pol-shape-color) 0 1px, transparent 1px 22px);
}

.pol--shape-dots .pol__shape {
    background-image: radial-gradient(var(--pol-shape-color) 1.6px, transparent 1.7px);
    background-size: 22px 22px;
}

.pol--shape-ring .pol__shape::before {
    content: "";
    position: absolute;
    top: var(--pol-shape-y);
    left: var(--pol-shape-x);
    width: var(--pol-shape-size);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid var(--pol-shape-color);
    border-radius: 50%;
}

.pol--shape-blob .pol__shape::before {
    content: "";
    position: absolute;
    top: var(--pol-shape-y);
    left: var(--pol-shape-x);
    width: var(--pol-shape-size);
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(18deg);
    background: var(--pol-shape-color);
    border-radius: 42% 58% 38% 62% / 52% 42% 58% 48%;
}

/* the column the header and the entries share, so both range off one edge */
.pol__inner {
    position: relative;
    z-index: 1;
    max-width: 60vw;
    margin: 0 auto;
}

.pol__head {
    margin: 0 0 5.2vw;
    text-align: center;
}

.pol__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7vw;
    margin: 0 0 1vw;
}

.pol__eyebrow-dash {
    flex: 0 0 auto;
    width: 1.6vw;
    height: max(2px, .14vw);
    background: var(--pol-ink);
}

.pol__eyebrow-text {
    font-size: max(12px, 1.05vw);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pol-ink);
}

.pol__title {
    max-width: 100%;
    margin: 0 auto;
    font-size: max(34px, 4.5vw);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.01em;
    color: var(--pol-ink);
}

.pol__lead {
    max-width: 37vw;
    margin: 1.1vw auto 0;
    font-size: max(15px, 1.35vw);
    line-height: 1.5;
    color: var(--pol-body);
}

.pol__lead p {
    margin: 0 0 1em;
}

.pol__lead p:last-child {
    margin-bottom: 0;
}

.pol--head-left .pol__head {
    text-align: left;
}

.pol--head-left .pol__eyebrow {
    justify-content: flex-start;
}

.pol--head-left .pol__title,
.pol--head-left .pol__lead {
    margin-inline: 0;
}

.pol__list {
    display: grid;
    grid-template-columns: repeat(var(--pol-cols), minmax(0, 1fr));
    column-gap: 4vw;
    row-gap: 3.3vw;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pol__item-title {
    margin: 0 0 .55vw;
    font-size: max(20px, 2.2vw);
    font-weight: 700;
    line-height: 1.15;
    color: var(--pol-gold);
}

.pol__item-title a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.pol__item-text {
    margin: 0;
    font-size: max(13px, 1.2vw);
    line-height: 1.5;
    color: var(--pol-item-body);
}

/* the short line closing each entry; block so it can be centred with the copy */
.pol__rule {
    display: block;
    width: 3.8vw;
    height: 2px;
    margin-top: 1.1vw;
    background: var(--pol-rule, var(--pol-gold));
}

.pol--items-center .pol__item {
    text-align: center;
}

.pol--items-center .pol__rule {
    margin-inline: auto;
}

.pol__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 3.4vw;
}

.pol__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7vw;
    padding: 1.15vw 2.2vw;
    border: 0;
    border-radius: .5vw;
    background: var(--pol-btn-bg);
    font-size: max(15px, 1.35vw);
    font-weight: 600;
    line-height: 1;
    color: var(--pol-btn-ink);
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.pol__btn:hover,
.pol__btn:focus {
    background: #fff;
    color: #16293a;
    transform: translateY(-2px);
}

/* Entrance — held at frame one by assets/css/reveal.css */
@media (prefers-reduced-motion: no-preference) {

    .pol--animated .pol__eyebrow,
    .pol--animated .pol__title,
    .pol--animated .pol__lead,
    .pol--animated .pol__item {
        animation: pol-up .7s cubic-bezier(.22, 1, .36, 1) both;
    }

    .pol--animated .pol__eyebrow { animation-delay: .08s; }
    .pol--animated .pol__title { animation-delay: .16s; }
    .pol--animated .pol__lead { animation-delay: .24s; }
    .pol--animated .pol__item:nth-child(1) { animation-delay: .32s; }
    .pol--animated .pol__item:nth-child(2) { animation-delay: .40s; }
    .pol--animated .pol__item:nth-child(3) { animation-delay: .48s; }
    .pol--animated .pol__item:nth-child(4) { animation-delay: .56s; }
    .pol--animated .pol__item:nth-child(n+5) { animation-delay: .64s; }
}

@keyframes pol-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {

    .pol {
        --pol-cols: var(--pol-cols-tab, 1);
        padding: 56px 32px;
    }

    .pol__inner {
        max-width: none;
    }

    .pol__head {
        margin-bottom: 44px;
    }

    .pol__eyebrow {
        gap: 10px;
        margin-bottom: 12px;
    }

    .pol__eyebrow-dash {
        width: 22px;
    }

    .pol__eyebrow-text {
        font-size: 13px;
    }

    .pol__title {
        font-size: 42px;
    }

    .pol__lead {
        max-width: 52ch;
        margin-top: 14px;
        font-size: 17px;
    }

    .pol__list {
        column-gap: 40px;
        row-gap: 34px;
    }

    .pol__item-title {
        margin-bottom: 7px;
        font-size: 26px;
    }

    .pol__item-text {
        font-size: 16px;
    }

    .pol__rule {
        width: 48px;
        margin-top: 14px;
    }

    .pol__actions {
        margin-top: 34px;
    }

    .pol__btn {
        gap: 8px;
        padding: 16px 26px;
        border-radius: 8px;
        font-size: 17px;
    }
}

@media (max-width: 600px) {

    .pol {
        --pol-cols: var(--pol-cols-mob, 1);
        padding: 40px 20px;
    }

    .pol__head {
        margin-bottom: 32px;
    }

    .pol__title {
        font-size: 32px;
    }

    .pol__lead {
        font-size: 16px;
    }

    .pol__list {
        row-gap: 28px;
    }

    .pol__item-title {
        font-size: 22px;
    }

    .pol__item-text {
        font-size: 15px;
    }

    .pol__rule {
        width: 40px;
        margin-top: 12px;
    }

    .pol__actions {
        display: block;
    }

    .pol__btn {
        width: 100%;
        padding: 15px 22px;
        font-size: 16px;
    }
}
