/* HoneyGold legal pages + shared consent control (onboarding) */

body.product-honeygold.honeygold-legal-page #primary {
    padding-top: 18px;
    margin-top: 36px;
}

body.honeygold-legal-page .site-main {
    padding-top: 18px;
    padding-bottom: 50px;
}

body.honeygold-legal-page article.hg-legal-article {
    width: 100%;
    max-width: 1160px;
    margin: 10px auto 0;
    padding: 0 20px 3rem;
    box-sizing: border-box;
}

body.honeygold-legal-page .hg-legal-back {
    text-align: center;
    margin: 0 0 1.25rem;
    font-size: 1em;
}

body.honeygold-legal-page .hg-legal-back a {
    color: var(--granola-honeygold);
    font-weight: 600;
    text-decoration: none;
}

body.honeygold-legal-page .hg-legal-back a:hover {
    text-decoration: underline;
}

body.honeygold-legal-page .entry-header.hg-legal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

body.honeygold-legal-page .hg-legal-eyebrow {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--granola-honeygold);
    margin: 0 0 0.5em;
}

body.honeygold-legal-page .hg-legal-meta {
    font-size: 1em;
    color: #5c6368;
    margin: 0.5em 0 0;
}

body.honeygold-legal-page .entry-content.hg-legal-content {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

body.honeygold-legal-page .hg-legal-content h2 {
    font-size: 1.35em;
    font-weight: 700;
    color: #2f353c;
    margin: 2em 0 0.65em;
    line-height: 1.25;
}

body.honeygold-legal-page .hg-legal-content h2:first-child {
    margin-top: 0;
}

body.honeygold-legal-page .hg-legal-content p,
body.honeygold-legal-page .hg-legal-content li {
    font-size: 1.125em;
    line-height: 1.55;
    font-weight: 300;
    color: #2f353c;
}

body.honeygold-legal-page .hg-legal-content p {
    margin-bottom: 1em;
}

body.honeygold-legal-page .hg-legal-content ul {
    margin: 0 0 1.25em 1.25em;
    padding: 0;
}

body.honeygold-legal-page .hg-legal-content li {
    margin-bottom: 0.5em;
}

body.honeygold-legal-page .hg-legal-content a {
    color: var(--granola-honeygold);
    font-weight: 600;
}

body.honeygold-legal-page .hg-legal-notice {
    font-size: 1em;
    line-height: 1.5;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border-left: 4px solid var(--granola-honeygold);
    color: #2f353c;
}

body.honeygold-legal-page .hg-legal-footer-links {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0dcd3;
    font-size: 1.05em;
    text-align: center;
}

/* Custom consent checkbox (onboarding) */
.hg-onboard-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1rem;
    cursor: pointer;
    user-select: none;
}

.hg-onboard-consent-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hg-onboard-consent-box {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.1rem;
    border: 2px solid var(--hg-accent, var(--granola-honeygold));
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    position: relative;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hg-onboard-consent-input:focus + .hg-onboard-consent-box {
    box-shadow: 0 0 0 3px var(--hg-accent-glow, rgba(208, 154, 0, 0.28));
}

.hg-onboard-consent-input:checked + .hg-onboard-consent-box {
    background-color: var(--hg-accent, var(--granola-honeygold));
    border-color: var(--hg-accent, var(--granola-honeygold));
}

.hg-onboard-consent-input:checked + .hg-onboard-consent-box::after {
    content: "";
    position: absolute;
    left: 0.42rem;
    top: 0.12rem;
    width: 0.4rem;
    height: 0.75rem;
    border: solid #2f353c;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.hg-onboard-consent-text {
    font-size: 1.125em;
    line-height: 1.5;
    font-weight: 300;
    color: #2f353c;
}

.hg-onboard-consent-text a {
    color: var(--hg-accent, var(--granola-honeygold));
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hg-onboard-consent-text a:hover {
    color: #b8860b;
}
