.policy-page {
    background: #f5faf7;
}

.policy-header {
    color: white;
    background:
        radial-gradient(circle at 82% 18%, rgba(25, 135, 84, 0.34), transparent 38%),
        linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.policy-topbar,
.policy-hero,
.policy-layout {
    width: min(100% - 3rem, 1180px);
    margin-inline: auto;
}

.policy-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1.8rem;
}

.policy-brand {
    display: inline-flex;
    align-items: center;
}

.policy-brand img {
    display: block;
    width: clamp(150px, 17vw, 205px);
    height: auto;
}

.policy-home-link {
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    font-weight: 600;
    white-space: nowrap;
}

.policy-home-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.policy-hero {
    padding: clamp(4rem, 8vw, 6rem) 0 6.5rem;
}

.policy-eyebrow {
    margin: 0 0 1rem;
    color: #bfe9cc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.policy-hero h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(2.7rem, 6vw, 4.5rem);
    line-height: 1.12;
}

.policy-hero > p:not(.policy-eyebrow) {
    max-width: 640px;
    margin: 1.1rem 0 1.6rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.policy-date {
    display: inline-block;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.policy-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(210px, 255px) minmax(0, 1fr);
    align-items: start;
    gap: 1.8rem;
    margin-top: -3rem;
    margin-bottom: 5rem;
}

.policy-toc,
.policy-document {
    background: white;
    border: 1px solid rgba(26, 54, 93, 0.08);
    box-shadow: 0 18px 50px rgba(26, 54, 93, 0.08);
}

.policy-toc {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    border-radius: 1.2rem;
    padding: 1.35rem;
}

.policy-toc-label {
    margin: 0 0 0.75rem;
    color: var(--hube-forest);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.policy-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.policy-toc li + li {
    margin-top: 0.1rem;
}

.policy-toc a {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    border-radius: 0.6rem;
    padding: 0.45rem 0.35rem;
    color: var(--hube-navy);
    font-size: 0.82rem;
    line-height: 1.4;
    text-decoration: none;
}

.policy-toc a:hover,
.policy-toc a:focus-visible {
    background: var(--hube-cream);
    color: var(--hube-forest);
}

.policy-toc a span {
    flex: none;
    color: var(--hube-green);
    font-size: 0.72rem;
    font-weight: 700;
}

.policy-document {
    min-width: 0;
    border-radius: 1.4rem;
    padding: clamp(1.5rem, 4vw, 3.3rem);
}

.policy-document p,
.policy-document li {
    max-width: 75ch;
    color: #2a435a;
    font-size: 0.97rem;
    line-height: 1.8;
}

.policy-document p {
    margin: 0 0 1.15rem;
}

.policy-document .policy-intro {
    border-left: 4px solid var(--hube-green);
    padding-left: 1.3rem;
    color: var(--hube-navy);
    font-size: 1.04rem;
}

.policy-document section {
    padding: 2.2rem 0;
    border-top: 1px solid #e3ece7;
    scroll-margin-top: 1.5rem;
}

.policy-document section:last-child {
    padding-bottom: 0;
}

.policy-document h2 {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin: 0 0 1.5rem;
    color: var(--hube-navy);
    font-size: clamp(1.25rem, 2.3vw, 1.65rem);
    line-height: 1.3;
}

.policy-document h2 span {
    color: var(--hube-green);
    font-size: 0.72em;
    font-weight: 700;
}

.policy-document h3 {
    margin: 1.8rem 0 0.8rem;
    color: var(--hube-forest);
    font-size: 1.08rem;
    line-height: 1.4;
}

.policy-document ul {
    max-width: 75ch;
    margin: 0.2rem 0 1.4rem;
    padding-left: 1.5rem;
}

.policy-document li {
    padding-left: 0.2rem;
    margin-bottom: 0.55rem;
}

.policy-document li::marker {
    color: var(--hube-green);
}

.policy-document .policy-definition,
.policy-document .policy-lettered {
    padding-left: 0.9rem;
    border-left: 2px solid #d9ebe0;
}

.policy-document .policy-effective-date {
    margin: 2rem 0 0;
    color: var(--hube-forest);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.policy-document a {
    overflow-wrap: anywhere;
}

.policy-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 2rem max(1.5rem, calc((100vw - 1180px) / 2));
    background: var(--hube-navy);
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
    font-size: 0.85rem;
}

.policy-footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.policy-footer a {
    color: white;
    font-weight: 600;
}

.policy-page a:focus-visible {
    outline: 3px solid #8cdaa6;
    outline-offset: 3px;
}

@media (max-width: 850px) {
    .policy-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .policy-toc {
        position: static;
        max-height: none;
        overflow: hidden;
    }

    .policy-toc ol {
        display: flex;
        gap: 0.4rem;
        overflow-x: auto;
        padding-bottom: 0.3rem;
        scrollbar-width: thin;
    }

    .policy-toc li {
        flex: 0 0 190px;
    }

    .policy-toc li + li {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .policy-topbar,
    .policy-hero,
    .policy-layout {
        width: min(100% - 2rem, 1180px);
    }

    .policy-topbar {
        gap: 0.5rem;
        padding-top: 1rem;
    }

    .policy-brand img {
        width: 135px;
    }

    .policy-home-link {
        padding: 0.55rem 0.8rem;
        font-size: 0.78rem;
    }

    .policy-hero {
        padding: 4rem 0 5.5rem;
    }

    .policy-layout {
        margin-top: -2.5rem;
        margin-bottom: 2.5rem;
    }

    .policy-document h2 {
        gap: 0.55rem;
    }

    .policy-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.7rem 1rem;
    }
}

@media print {
    .policy-page {
        background: white;
    }

    .policy-header {
        color: var(--hube-navy);
        background: white;
    }

    .policy-home-link,
    .policy-toc,
    .policy-footer {
        display: none;
    }

    .policy-layout {
        display: block;
        margin: 0 auto;
    }

    .policy-document {
        border: 0;
        box-shadow: none;
    }
}
