/* =========================================================
   BARKBUDDY LEGAL PAGES
   ========================================================= */

.bb-legal {
    min-height: 100vh;
    color: #fffaf0;
    background:
        radial-gradient(
            circle at 82% 12%,
            rgba(223, 188, 106, 0.12),
            transparent 30%
        ),
        linear-gradient(180deg, #090909 0%, #050505 100%);
}

.bb-legal-container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

/* HERO */

.bb-legal-hero {
    padding: 150px 0 75px;
}

.bb-legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--bb-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bb-legal-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bb-gold);
    box-shadow: 0 0 0 6px rgba(223, 188, 106, 0.12);
}

.bb-legal-hero h1 {
    max-width: 860px;
    margin: 0;
    color: #fffaf0;
    font-size: clamp(50px, 7vw, 88px);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.bb-legal-hero h1 em {
    display: block;
    color: var(--bb-gold);
    font-style: normal;
}

.bb-legal-hero__intro {
    max-width: 720px;
    margin: 28px 0 0;
    color: rgba(255, 250, 240, 0.68);
    font-size: 18px;
    line-height: 1.75;
}

.bb-legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(223, 188, 106, 0.18);
    color: rgba(255, 250, 240, 0.52);
    font-size: 13px;
}

.bb-legal-meta strong {
    color: #f1d58d;
}

/* MAIN LAYOUT */

.bb-legal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.3fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(40px, 7vw, 90px);
    padding-bottom: 120px;
}

.bb-legal-nav {
    position: sticky;
    top: 120px;
    display: grid;
    gap: 7px;
    padding: 22px;
    border: 1px solid rgba(223, 188, 106, 0.3);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
}

.bb-legal-nav strong {
    margin-bottom: 9px;
    color: #f1d58d;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bb-legal-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 250, 240, 0.68);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    transition:
        color 180ms ease,
        background 180ms ease;
}

.bb-legal-nav a:hover,
.bb-legal-nav a:focus-visible {
    color: #fffaf0;
    background: rgba(223, 188, 106, 0.1);
}

.bb-legal-content {
    min-width: 0;
}

.bb-legal-section {
    scroll-margin-top: 130px;
    padding: 0 0 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(223, 188, 106, 0.16);
}

.bb-legal-section:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.bb-legal-section__number {
    display: block;
    margin-bottom: 12px;
    color: var(--bb-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.bb-legal-section h2 {
    margin: 0 0 22px;
    color: #fffaf0;
    font-size: clamp(30px, 4vw, 47px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.bb-legal-section h3 {
    margin: 30px 0 13px;
    color: #f1d58d;
    font-size: 20px;
    line-height: 1.3;
}

.bb-legal-section p,
.bb-legal-section li {
    color: rgba(255, 250, 240, 0.72);
    font-size: 16px;
    line-height: 1.8;
}

.bb-legal-section p {
    margin: 0 0 18px;
}

.bb-legal-section ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 24px;
    padding-left: 22px;
}

.bb-legal-section a {
    color: #f1d58d;
    text-underline-offset: 3px;
}

.bb-legal-section strong {
    color: #fffaf0;
}

.bb-legal-card {
    margin: 26px 0;
    padding: 24px;
    border: 1px solid rgba(223, 188, 106, 0.28);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(223, 188, 106, 0.08),
            transparent 35%
        ),
        rgba(255, 255, 255, 0.025);
}

.bb-legal-card p:last-child {
    margin-bottom: 0;
}

.bb-legal-contact {
    display: grid;
    gap: 8px;
    margin-top: 25px;
    padding: 24px;
    border: 1px solid rgba(223, 188, 106, 0.4);
    border-radius: 20px;
    background: #0d0d0d;
}

.bb-legal-contact strong {
    color: var(--bb-gold);
}

.bb-legal-contact address {
    color: rgba(255, 250, 240, 0.72);
    font-style: normal;
    line-height: 1.7;
}

/* RELATED PAGES */

.bb-legal-related {
    padding: 0 0 110px;
}

.bb-legal-related__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
    border: 1px solid rgba(223, 188, 106, 0.3);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
}

.bb-legal-related__inner strong {
    color: #fffaf0;
    font-size: 18px;
}

.bb-legal-related__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bb-legal-related__links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 18px;
    border: 1px solid rgba(223, 188, 106, 0.38);
    border-radius: 999px;
    color: #f1d58d;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.bb-legal-related__links a:hover,
.bb-legal-related__links a:focus-visible {
    color: #111;
    background: var(--bb-gold);
}

/* RESPONSIVE */

@media screen and (max-width: 850px) {
    .bb-legal-layout {
        grid-template-columns: 1fr;
    }

    .bb-legal-nav {
        position: static;
    }
}

@media screen and (max-width: 600px) {
    .bb-legal-container {
        width: min(100% - 24px, 1120px);
    }

    .bb-legal-hero {
        padding: 120px 0 60px;
    }

    .bb-legal-hero__intro {
        font-size: 16px;
    }

    .bb-legal-layout {
        padding-bottom: 80px;
    }

    .bb-legal-section {
        padding-bottom: 38px;
        margin-bottom: 38px;
    }

    .bb-legal-section p,
    .bb-legal-section li {
        font-size: 15px;
    }

    .bb-legal-related {
        padding-bottom: 80px;
    }

    .bb-legal-related__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   SHARED BUTTON ARROW
   ========================================================= */

.bb-button-arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 16px;
    line-height: 1;

    flex-shrink: 0;

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}


.bb-button-arrow--dark {
    border: 1px solid rgba(10, 10, 10, 0.32);

    background: rgba(10, 10, 10, 0.04);

    color: #0a0a0a;
}

/* =========================================================
   TRUE INVERTED GOLD BUTTON
   ========================================================= */

.bb-button--outline-gold {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 0 54px;

    border: 1px solid transparent;
    border-radius: 999px;

    background:
        linear-gradient(#0a0a0a, #0a0a0a) padding-box,
        linear-gradient(135deg, #f1d58d, #d8bb6d) border-box;

    color: #d8bb6d;

    font-weight: 800;
    text-decoration: none;

    transition:
        transform 180ms ease,
        color 180ms ease,
        background 180ms ease;
}


/* Gold gradient text */

.bb-button--outline-gold {
    background:
        linear-gradient(#0a0a0a, #0a0a0a) padding-box,
        linear-gradient(135deg, #f1d58d, #d8bb6d) border-box;
}


/* Arrow */

.bb-button--outline-gold .bb-button-arrow {
    position: absolute;

    right: 9px;
    top: 50%;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid #d8bb6d;
    border-radius: 50%;

    background: transparent;
    color: #d8bb6d;

    transform: translateY(-50%);
}


/* Hover flips back to the normal gold button */

.bb-button--outline-gold:hover {
    background:
        linear-gradient(135deg, #f1d58d, #d8bb6d);

    color: #0a0a0a;

    transform: translateY(-2px);
}


.bb-button--outline-gold:hover .bb-button-arrow {
    border-color: rgba(10, 10, 10, 0.28);

    background: rgba(10, 10, 10, 0.05);

    color: #0a0a0a;
}