.gnn-legal-page {
    background: #fffaf6;
    color: #2d2525;
}

.gnn-legal-hero {
    position: relative;
    padding: 0 0 58px;
    overflow: hidden;
    background: #fff4eb;
}

.gnn-legal-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(86, 151, 136, 0.32);
}

.gnn-legal-breadcrumbs {
    margin-bottom: 42px;
}

.gnn-legal-hero__copy {
    width: 100%;
    max-width: 980px;
}

.gnn-legal-eyebrow {
    margin: 0 0 10px;
    color: var(--gnn-a11y-sage-text, #467a6e);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.gnn-legal-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #2d2525;
    font-size: 52px;
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.gnn-legal-hero__copy > p:not(.gnn-legal-eyebrow) {
    max-width: 820px;
    margin: 20px 0 0;
    color: #5b5552;
    font-size: 18px;
    line-height: 1.6;
}

.gnn-legal-hero__copy small {
    display: block;
    margin-top: 18px;
    color: var(--gnn-a11y-muted, #776f6b);
    font-size: 13px;
    line-height: 1.4;
}

.gnn-legal-content {
    padding: 68px 0 92px;
}

.gnn-legal-layout {
    display: flex;
    align-items: flex-start;
    gap: 64px;
}

.gnn-legal-nav {
    position: sticky;
    top: 118px;
    display: flex;
    flex: 0 0 270px;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    border: 1px solid rgba(86, 151, 136, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 36px rgba(45, 37, 37, 0.045);
}

.gnn-legal-nav strong {
    margin-bottom: 8px;
    color: #2d2525;
    font-size: 14px;
    font-weight: 650;
}

.gnn-legal-nav a {
    display: block;
    padding: 8px 0;
    color: #67605d;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    transition: color 180ms ease;
}

.gnn-legal-nav a:hover,
.gnn-legal-nav a:focus-visible {
    color: var(--gnn-a11y-sage-hover, #3d7065);
}

.gnn-legal-article {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 1040px;
}

.gnn-legal-article section {
    padding: 0 0 38px;
    scroll-margin-top: 130px;
}

.gnn-legal-article section + section {
    padding-top: 38px;
    border-top: 1px solid rgba(86, 151, 136, 0.18);
}

.gnn-legal-article h2 {
    margin: 0 0 18px;
    color: #2d2525;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.gnn-legal-article p,
.gnn-legal-article li {
    color: #4d4744;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.72;
}

.gnn-legal-article p {
    margin: 0;
}

.gnn-legal-article p + p {
    margin-top: 14px;
}

.gnn-legal-article a {
    color: var(--gnn-a11y-sage-hover, #3d7065);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.gnn-legal-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.gnn-legal-socials a {
    display: inline-flex;
    min-height: 44px;
    padding: 0 18px;
    align-items: center;
    border: 1px solid rgba(86, 151, 136, 0.38);
    border-radius: 999px;
    background: #ffffff;
    color: var(--gnn-a11y-sage-hover, #3d7065);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.gnn-legal-socials a:hover,
.gnn-legal-socials a:focus-visible {
    border-color: var(--gnn-a11y-sage-hover, #3d7065);
    background: var(--gnn-a11y-sage-hover, #3d7065);
    color: #ffffff;
}

.woocommerce-checkout .gnn-digital-consent {
    margin: 18px 0 0;
    padding: 16px 18px;
    border: 1px solid rgba(86, 151, 136, 0.25);
    border-radius: 14px;
    background: #f4f8f6;
}

.woocommerce-checkout .gnn-digital-consent label {
    color: #4d4744;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
}

.woocommerce-checkout .gnn-digital-consent a {
    color: var(--gnn-a11y-sage-hover, #3d7065);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 1024px) {
    .gnn-legal-hero {
        padding-bottom: 48px;
    }

    .gnn-legal-breadcrumbs {
        margin-bottom: 32px;
    }

    .gnn-legal-hero h1 {
        font-size: 42px;
    }

    .gnn-legal-layout {
        flex-direction: column;
        gap: 34px;
    }

    .gnn-legal-nav {
        position: static;
        flex: 0 0 auto;
        width: 100%;
        padding: 18px;
    }

    .gnn-legal-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 18px;
    }

    .gnn-legal-nav strong {
        flex: 0 0 100%;
    }

    .gnn-legal-nav a {
        padding: 5px 0;
    }
}

@media (max-width: 767px) {
    .gnn-legal-hero {
        padding-bottom: 38px;
    }

    .gnn-legal-breadcrumbs {
        margin-bottom: 24px;
    }

    .gnn-legal-eyebrow {
        font-size: 11px;
    }

    .gnn-legal-hero h1 {
        font-size: 34px;
        line-height: 1.12;
    }

    .gnn-legal-hero__copy > p:not(.gnn-legal-eyebrow) {
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.55;
    }

    .gnn-legal-content {
        padding: 42px 0 66px;
    }

    .gnn-legal-layout {
        gap: 28px;
    }

    .gnn-legal-nav {
        display: block;
        padding: 16px 18px;
    }

    .gnn-legal-nav strong {
        display: block;
        margin-bottom: 8px;
    }

    .gnn-legal-nav a {
        display: inline-block;
        margin-right: 12px;
        font-size: 12.5px;
    }

    .gnn-legal-article section {
        padding-bottom: 28px;
    }

    .gnn-legal-article section + section {
        padding-top: 28px;
    }

    .gnn-legal-article h2 {
        margin-bottom: 14px;
        font-size: 24px;
    }

    .gnn-legal-article p,
    .gnn-legal-article li {
        font-size: 15px;
        line-height: 1.65;
    }

    .gnn-legal-socials {
        flex-direction: column;
    }

    .gnn-legal-socials a {
        width: 100%;
        justify-content: center;
    }
}

/* 2.17.10 — breadcrumbs spaced like on the other subpages ("Strona główna / Regulamin"). */
.gnn-legal-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 9px;
    font-size: 12px;
    color: #77706e;
}

.gnnh-breadcrumbs.gnn-legal-breadcrumbs strong {
    color: var(--gnn-a11y-sage-text, #467a6e);
    font-weight: 500;
}
