/* ==========================================================================
   HitBidder Legal Pages
   Privacy Policy and Terms & Conditions. Builds on top of welcome.css, which
   provides the shared navbar and footer chrome.
   ========================================================================== */

.legal-hero {
    padding: 140px 0 64px;
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #6366f1 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.legal-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.1) 0%, transparent 46%);
    pointer-events: none;
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

.legal-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.86);
}

.legal-breadcrumb a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-breadcrumb a:hover {
    color: #fff;
    text-decoration-thickness: 2px;
}

.legal-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.7);
}

.legal-hero h1 {
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.legal-hero__intro {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.075rem;
    line-height: 1.65;
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.legal-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.legal-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Body layout */
.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

@media (min-width: 992px) {
    .legal-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 3rem;
        align-items: start;
    }

    .legal-aside {
        position: sticky;
        top: 1.5rem;
    }
}

/* Table of contents */
.legal-toc {
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    background: #f8fafc;
    padding: 1.25rem 1.25rem 1rem;
}

.legal-toc__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475467;
    margin-bottom: 0.75rem;
}

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

.legal-toc li {
    counter-increment: legal-toc;
    margin-bottom: 0.15rem;
}

.legal-toc a {
    display: block;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    color: #344054;
    font-size: 0.875rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.legal-toc a::before {
    content: counter(legal-toc) '. ';
    color: #667085;
    font-weight: 600;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    background: #eef0fb;
    color: #312e81;
    text-decoration: none;
}

.legal-toc a:focus-visible,
.legal-article a:focus-visible,
.legal-breadcrumb a:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Article prose */
.legal-article {
    color: #344054;
    font-size: 1rem;
    line-height: 1.75;
}

.legal-article > section {
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #eceef4;
    scroll-margin-top: 90px;
}

.legal-article > section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
}

.legal-article h2 {
    color: #101828;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.85rem;
}

.legal-article h3 {
    color: #1d2939;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-top: 1.35rem;
    margin-bottom: 0.5rem;
}

.legal-article p {
    margin-bottom: 0.9rem;
}

.legal-article ul,
.legal-article ol {
    padding-left: 1.35rem;
    margin-bottom: 0.9rem;
}

.legal-article li {
    margin-bottom: 0.4rem;
}

.legal-article strong {
    color: #101828;
    font-weight: 700;
}

.legal-article a {
    color: #4338ca;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-article a:hover {
    color: #312e81;
}

.legal-callout {
    border-left: 4px solid #4f46e5;
    background: #f5f5ff;
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.15rem;
    margin: 1.25rem 0;
    color: #312e81;
    font-size: 0.95rem;
}

.legal-callout strong {
    color: #312e81;
}

.legal-contact-card {
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    background: #fff;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 18px 40px -34px rgba(15, 23, 42, 0.4);
}

.legal-contact-card h2 {
    margin-bottom: 0.5rem;
}

@media (max-width: 575.98px) {
    .legal-hero {
        padding: 120px 0 48px;
    }

    .legal-layout {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }
}
