

.policy-page {
    background: var(--buai-page, #f6f5ef);
    color: var(--buai-text, #252923);
}

.policy-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

.policy-hero {
    max-width: 780px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--buai-border, #e4e5dc);
    margin-bottom: 36px;
}

.policy-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #111;
    color: #f4f4f2;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.policy-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 600;
}

.policy-company {
    margin: 0;
    color: var(--buai-muted, #73776f);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.policy-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 34px;
    margin: 20px 0 0;
}

.policy-dates div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.policy-dates dt {
    color: var(--buai-muted, #73776f);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.policy-dates dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.policy-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.policy-toc {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 18px 18px 20px;
    border: 1px solid var(--buai-border, #e4e5dc);
    border-radius: 16px;
    background: var(--buai-surface, #fffefa);
}

.policy-toc-title {
    margin: 0 0 12px;
    color: var(--buai-muted, #73776f);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

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

.policy-toc li {
    counter-increment: toc;
}

.policy-toc a {
    display: block;
    padding: 7px 9px 7px 30px;
    border-radius: 8px;
    color: var(--buai-text, #252923);
    font-size: 12.5px;
    line-height: 1.45;
    text-decoration: none;
    position: relative;
    transition: background .16s ease, color .16s ease;
}

.policy-toc a::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 9px;
    top: 7px;
    color: #a8a399;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.policy-toc a:hover {
    background: #f4f2ea;
}

.policy-toc a:focus-visible {
    outline: 2px solid #111;
    outline-offset: 1px;
}

.policy-body {
    max-width: 760px;
    min-width: 0;
}

.policy-section {
    padding: 0 0 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--buai-border, #e4e5dc);
    scroll-margin-top: 24px;
}

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

.policy-section h2 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -.01em;
    font-weight: 600;
    text-transform: none;
}

.policy-num {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 9px;
    background: #f1ede1;
    color: #8a6d1a;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.policy-section h3 {
    margin: 22px 0 8px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
}

.policy-body p {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.72;
    color: #3c3a34;
}

.policy-body ul,
.policy-body ol {
    margin: 0 0 14px;
    padding-left: 0;
    list-style: none;
}

.policy-body li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 7px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #3c3a34;
}

.policy-body ul li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: .68em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c3a75a;
}

.policy-body a {
    color: #14150f;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: #c3a75a;
}

.policy-body a:hover {
    text-decoration-color: #14150f;
}

.policy-steps {
    counter-reset: steps;
}

.policy-steps li {
    counter-increment: steps;
    padding-left: 30px;
    margin-bottom: 9px;
}

.policy-steps li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: .18em;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #f1ede1;
    color: #8a6d1a;
    font-size: 11px;
    font-weight: 700;
}

.policy-rights li {
    padding: 9px 12px 9px 30px;
    border: 1px solid var(--buai-border, #e4e5dc);
    border-radius: 10px;
    background: var(--buai-surface, #fffefa);
}

.policy-rights li::before {
    left: 12px;
}

.policy-rights li strong {
    color: #14150f;
}

.policy-note,
.policy-highlight {
    margin: 16px 0 6px;
    padding: 14px 16px 4px;
    border-radius: 12px;
    border-left: 3px solid #d8c49a;
    background: #faf7ee;
}

.policy-note p,
.policy-highlight p {
    margin: 0 0 10px;
    font-size: 13.5px;
    line-height: 1.65;
}

.policy-highlight {
    border-left-color: #9bb391;
    background: #f1f5ec;
}

.policy-highlight p {
    font-weight: 600;
    color: #14150f;
}

.policy-contact {
    margin: 16px 0 18px;
    padding: 18px 20px;
    border: 1px solid var(--buai-border, #e4e5dc);
    border-radius: 14px;
    background: var(--buai-surface, #fffefa);
}

.policy-contact p {
    margin: 0 0 8px;
    font-size: 14px;
}

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

.policy-copyright {
    margin: 56px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--buai-border, #e4e5dc);
    color: #a39d92;
    font-size: 12px;
    text-align: center;
}

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

    
    .policy-toc {
        position: static;
        max-height: 260px;
    }

    .policy-toc ol {
        columns: 2;
        column-gap: 12px;
    }

    .policy-toc li {
        break-inside: avoid;
    }
}

@media (max-width: 620px) {
    .policy-shell {
        padding: 32px 16px 56px;
    }

    .policy-toc ol {
        columns: 1;
    }

    .policy-section h2 {
        font-size: 17px;
    }

    .policy-body p,
    .policy-body li {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .policy-toc a {
        transition: none;
    }
}
