/* Policy layout shares the landing page's colours and typography. */
.policy-page {
    background: var(--paper);
    color: var(--text-2);
    line-height: 1.75;
}

.policy-page .wrap {
    max-width: 900px;
    padding-inline: 24px;
}

.policy-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.policy-topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
}

.policy-topbar img {
    display: block;
    width: 171px;
    height: 40px;
    object-fit: contain;
}

.policy-home {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.policy-page a {
    color: var(--navy);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.policy-page a:hover {
    color: var(--navy-hover);
    text-decoration: underline;
}

.policy-page :focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 4px;
}

.policy-page .masthead {
    padding-block: clamp(40px, 6vw, 64px);
    background: var(--navy);
    color: var(--on-navy);
}

.policy-page .brandline {
    margin-bottom: 16px;
    color: var(--on-navy-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .09em;
}

.policy-page h1 {
    color: var(--white);
    font-size: clamp(36px, 7vw, 54px);
}

.policy-page .stamp {
    margin-top: 20px;
    color: var(--on-navy-2);
    font-size: 15px;
}

.policy-page main {
    padding-top: 36px;
    padding-bottom: 48px;
}

/* Contents stay in the document flow, independent of the main site's nav. */
.policy-page .toc {
    position: static;
    z-index: auto;
    padding: 24px;
    margin-bottom: 40px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    backdrop-filter: none;
    box-shadow: var(--shadow);
}

.policy-page .toc h2 {
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: .08em;
}

.policy-page .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 28px;
    margin: 0;
    padding-left: 20px;
    font-size: 15px;
}

.policy-page .toc a {
    text-decoration: none;
}

.policy-page section {
    padding-block: 0;
    margin-bottom: 36px;
    scroll-margin-top: 24px;
}

.policy-page h2.sec {
    padding-top: 28px;
    margin-bottom: 16px;
    border-top: 1px solid var(--line);
    font-size: clamp(23px, 4vw, 28px);
    line-height: 1.25;
    text-wrap: initial;
}

.policy-page section:first-of-type h2.sec {
    border-top: 0;
    padding-top: 0;
}

.policy-page h3 {
    margin: 24px 0 12px;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -.01em;
}

.policy-page p,
.policy-page ul {
    margin: 0 0 16px;
}

.policy-page ul {
    padding-left: 22px;
}

.policy-page li {
    margin-bottom: 6px;
}

.policy-page .toc li {
    margin: 0;
}

.policy-page li::marker {
    color: var(--text-3);
}

.policy-page strong {
    color: var(--text);
    font-weight: 600;
}

.policy-page .contact {
    padding: 20px 24px;
    margin-bottom: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow-wrap: anywhere;
}

.policy-page .contact p {
    margin-bottom: 6px;
}

.policy-page .contact p:last-child {
    margin-bottom: 0;
}

.policy-page .tablewrap {
    overflow-x: auto;
    margin-bottom: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.policy-page table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
}

.policy-page th,
.policy-page td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line-2);
}

.policy-page th {
    background: var(--wash);
    color: var(--navy);
    font-weight: 600;
}

.policy-page tbody tr:last-child td {
    border-bottom: 0;
}

.policy-page footer {
    padding: 24px;
    margin-top: 48px;
    border-radius: 12px;
    font-size: 14px;
}

.policy-page footer p {
    margin-bottom: 8px;
}

.policy-page footer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .policy-page .wrap {
        padding-inline: 20px;
    }

    .policy-topbar .wrap {
        min-height: 72px;
        gap: 12px;
    }

    .policy-home {
        font-size: 12px;
    }

    .policy-page .toc {
        padding: 20px;
    }

    .policy-page .toc ol {
        grid-template-columns: 1fr;
    }

    .policy-page .contact {
        padding: 18px;
    }
}

@media print {
    .policy-topbar {
        display: none;
    }

    .policy-page,
    .policy-page .masthead,
    .policy-page footer {
        background: white;
        color: black;
    }

    .policy-page h1 {
        color: black;
    }

    .policy-page .tablewrap {
        overflow: visible;
    }

    .policy-page table {
        min-width: 0;
    }
}
