/* Shared styles for legal/policy pages (cookie policy, privacy policy, etc.) */
.policy-wrapper {
    max-width: 920px;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

.policy-hero {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.policy-hero h1 {
    font-weight: 700;
    font-size: clamp(2.1rem, 4.2vw, 2.85rem);
    color: #1e46a8; /* solid brand color for readability */
    letter-spacing: -0.5px;
    margin-bottom: .65rem;
}

.policy-meta {
    font-size: .875rem;
    color: #6c757d;
}

.policy-toc {
    background: #f9fbfd;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    padding: 1.2rem 1.4rem 1rem;
    margin-bottom: 2.4rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.policy-toc h2 {
    font-size: .95rem;
    font-weight: 600;
    margin: 0 0 .6rem;
    color: #365899;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.policy-toc ol {
    counter-reset: section;
    list-style: none;
    padding-left: 0;
    margin: 0;
    column-gap: 2rem;
    column-width: 250px;
}

.policy-toc li {
    counter-increment: section;
    margin: 0 0 .4rem;
    font-size: .9rem;
    line-height: 1.3;
}

.policy-toc li a {
    display: inline-flex;
    gap: .35rem;
    align-items: flex-start;
    text-decoration: none;
    color: #2a4568;
    padding: .24rem .45rem;
    border-radius: 6px;
    line-height: 1.35;
    transition: background .18s, color .18s;
}

.policy-toc li a::before {
    content: counters(section, '.') '.';
    font-weight: 600;
    color: #1e46a8;
}

.policy-toc li a:hover,
.policy-toc li a:focus {
    background: #e9f1ff;
    color: #1e46a8;
}

.policy-section + .policy-section { margin-top: 2.75rem; }

.policy-section h2 {
    font-weight: 600;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    scroll-margin-top: 90px;
}

.policy-section h2 .section-index {
    font-size: .8rem;
    background: #1e46a8;
    color: #fff;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-weight: 600;
}

.policy-section p, .policy-section ul { max-width: 70ch; }

.policy-section ul { padding-left: 1.1rem; }
.policy-section li { margin-bottom: .4rem; }

.policy-section strong { color: #1d2740; }

/* Inline anchor links */
.anchor-link-wrapper { position: relative; }
.anchor-link {
    opacity: 0;
    font-size: .85rem;
    margin-left: .35rem;
    text-decoration: none;
    color: #3168e7;
    transition: opacity .25s;
}
.anchor-link:focus { opacity: 1; }
.anchor-link-wrapper:hover .anchor-link { opacity: 1; }

/* Code / highlight style (if needed) */
.policy-section code {
    background: #f5f7fb;
    padding: .15rem .35rem;
    border-radius: 4px;
    font-size: .85rem;
}

/* Back to top */
.back-to-top {
    margin-top: 3rem;
    text-align: center;
}
.back-to-top a { text-decoration: none; font-weight: 500; }
.back-to-top a i { margin-right: .35rem; }

/* Responsive */
@media (max-width: 992px) {
    .policy-wrapper { padding: 2.5rem 1rem 3.5rem; }
    .policy-toc ol { column-width: 200px; }
}
@media (max-width: 576px) {
    .policy-wrapper { padding: 2.25rem .75rem 3rem; }
    .policy-toc { padding: 1rem .9rem .75rem; }
    .policy-toc ol { column-count: 1; }
    .policy-section h2 { font-size: 1.25rem; }
}

/* Intentionally no dark theme override: keeping consistent light theme */
