
/*
============================================================
AVON COOKIE CONSENT AND LEGAL PAGE STYLES
Self-contained. Does not define or override public brand colours.
============================================================
*/

html.cookie-consent-required,
html.cookie-consent-required body{
    overflow:hidden!important;
}

.cookie-consent-overlay{
    position:fixed;
    inset:0;
    z-index:99999;
    display:grid;
    place-items:center;
    padding:22px;
    background:rgba(3,4,5,.78);
    backdrop-filter:blur(3px);
    -webkit-backdrop-filter:blur(3px);
    opacity:1;
    transition:opacity .2s ease;
}

.cookie-consent-overlay.is-closing{
    opacity:0;
}

.cookie-consent-dialog{
    width:min(650px,100%);
    padding:34px 38px 30px;
    border-top:6px solid var(--orange, #F92C02);
    background:#fff;
    box-shadow:0 30px 90px rgba(0,0,0,.42);
    box-sizing:border-box;
}

.cookie-consent-brand{
    display:flex;
    align-items:center;
    gap:13px;
    margin-bottom:28px;
}

.cookie-consent-brand strong,
.cookie-consent-brand em{
    display:block;
    line-height:1;
}

.cookie-consent-brand strong{
    color:#151718;
    font-size:19px;
    letter-spacing:.08em;
}

.cookie-consent-brand em{
    margin-top:5px;
    color:var(--orange, #F92C02);
    font-size:12px;
    font-style:normal;
    font-weight:900;
    letter-spacing:.15em;
}

.cookie-consent-kicker{
    display:block;
    margin-bottom:7px;
    color:var(--orange, #F92C02);
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.cookie-consent-dialog h2{
    margin:0 0 16px;
    color:#111314;
    font-size:clamp(31px,5vw,48px);
    line-height:.95;
    text-transform:uppercase;
}

.cookie-consent-copy{
    color:#4e5559;
    font-size:15px;
    line-height:1.65;
}

.cookie-consent-copy p{
    margin:0 0 10px;
}

.cookie-consent-accept{
    display:block;
    width:100%;
    min-height:54px;
    margin-top:24px;
    border:0;
    background:var(--orange, #F92C02);
    color:#fff;
    cursor:pointer;
    font-size:13px;
    font-weight:900;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.cookie-consent-accept:hover{
    filter:brightness(.92);
}

.cookie-consent-accept:disabled{
    cursor:wait;
    opacity:.75;
}

.cookie-consent-links{
    display:flex;
    justify-content:center;
    gap:22px;
    margin-top:18px;
}

.cookie-consent-links a{
    color:#33383b;
    font-size:12px;
    font-weight:800;
    text-underline-offset:4px;
}

/* Legal pages */
.legal-page-hero{
    min-height:300px;
    display:flex;
    align-items:center;
}

.legal-page{
    padding:65px 0 95px;
    background:#eef0f1;
}

.legal-layout{
    display:grid;
    grid-template-columns:260px minmax(0,1fr);
    gap:34px;
    align-items:start;
}

.legal-summary{
    position:sticky;
    top:130px;
    padding:22px;
    border-top:5px solid var(--orange, #F92C02);
    background:#111314;
    color:#fff;
}

.legal-summary span,
.legal-summary strong{
    display:block;
}

.legal-summary span{
    color:#aeb4b7;
    font-size:9px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.legal-summary strong{
    margin:6px 0 16px;
    color:var(--orange, #F92C02);
    font-size:17px;
}

.legal-summary p{
    margin:0;
    color:#c8ccce;
    font-size:12px;
    line-height:1.6;
}

.legal-content{
    padding:38px 44px;
    border:1px solid #d7dcde;
    background:#fff;
}

.legal-content section+section{
    margin-top:36px;
    padding-top:31px;
    border-top:1px solid #e0e3e4;
}

.legal-content h2{
    margin:0 0 13px;
    color:#151718;
    font-size:25px;
    line-height:1.12;
    text-transform:uppercase;
}

.legal-content p,
.legal-content li{
    color:#4f575b;
    font-size:15px;
    line-height:1.72;
}

.legal-content p{
    margin:0 0 13px;
}

.legal-content ul{
    margin:13px 0 16px;
    padding-left:22px;
}

.legal-content a{
    color:var(--orange, #F92C02);
    font-weight:800;
    text-underline-offset:3px;
}

.legal-table-wrap{
    width:100%;
    overflow-x:auto;
}

.legal-table{
    width:100%;
    min-width:680px;
    border-collapse:collapse;
}

.legal-table th{
    padding:13px 15px;
    background:#111314;
    color:#fff;
    font-size:10px;
    text-align:left;
    text-transform:uppercase;
}

.legal-table td{
    padding:15px;
    border:1px solid #dce0e2;
    color:#50585c;
    font-size:13px;
    line-height:1.55;
    vertical-align:top;
}

.legal-table td strong,
.legal-table td small{
    display:block;
}

.legal-table td strong{
    color:#17191a;
}

.legal-table td small{
    margin-top:4px;
    color:#7b8387;
}

@media(max-width:820px){
    .cookie-consent-dialog{
        padding:28px 22px 24px;
    }

    .cookie-consent-links{
        align-items:center;
        flex-direction:column;
        gap:9px;
    }

    .legal-layout{
        grid-template-columns:1fr;
    }

    .legal-summary{
        position:static;
    }

    .legal-content{
        padding:27px 22px;
    }
}


/* Real Avon logo inside the cookie popup */
.cookie-consent-logo{
    display:block;
    flex:0 0 58px;
    width:58px;
    height:58px;
}

.cookie-consent-logo-orange{
    fill:var(--orange, #F92C02);
}

.cookie-consent-logo-dark{
    fill:#333;
}

.cookie-consent-brand-divider{
    display:block;
    width:1px;
    height:52px;
    background:#c9ced0;
}

.cookie-consent-brand-copy{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.cookie-consent-brand-copy strong,
.cookie-consent-brand-copy em,
.cookie-consent-brand-copy small{
    display:block;
}

.cookie-consent-brand-copy strong{
    color:#151718;
    font-size:22px;
    line-height:1;
    letter-spacing:.08em;
}

.cookie-consent-brand-copy em{
    margin-top:5px;
    color:var(--orange, #F92C02);
    font-size:13px;
    line-height:1;
    font-style:normal;
    font-weight:900;
    letter-spacing:.16em;
}

.cookie-consent-brand-copy small{
    margin-top:8px;
    color:#4e5559;
    font-size:7px;
    line-height:1;
    font-weight:800;
    letter-spacing:.05em;
}

@media(max-width:520px){
    .cookie-consent-logo{
        flex-basis:48px;
        width:48px;
        height:48px;
    }

    .cookie-consent-brand-divider{
        height:44px;
    }

    .cookie-consent-brand-copy strong{
        font-size:18px;
    }

    .cookie-consent-brand-copy em{
        font-size:11px;
    }

    .cookie-consent-brand-copy small{
        display:none;
    }
}


/* ============================================================
   PRIVACY & COOKIE POLICY — MOBILE LAYOUT CORRECTION
============================================================ */
@media(max-width:820px){
    .legal-page-hero{
        min-height:auto;
        padding:42px 0 48px;
    }

    .legal-page-hero .container{
        width:min(100% - 34px,1200px);
    }

    .legal-page-hero .breadcrumb{
        margin-bottom:22px;
        font-size:13px;
        line-height:1.4;
    }

    .legal-page-hero .kicker{
        margin-bottom:10px;
        font-size:11px;
    }

    .legal-page-hero h1{
        max-width:100%;
        margin:0 0 18px;
        font-size:clamp(42px,13vw,68px);
        line-height:.96;
        overflow-wrap:normal;
        word-break:normal;
    }

    .legal-page-hero p{
        max-width:100%;
        margin:0;
        font-size:18px;
        line-height:1.45;
    }

    .legal-page{
        padding:34px 0 58px;
    }

    .legal-page .container{
        width:min(100% - 34px,1200px);
    }

    .legal-layout{
        display:block;
    }

    .legal-summary{
        width:100%;
        margin:0 0 26px;
        padding:20px;
        overflow:hidden;
        box-sizing:border-box;
    }

    .legal-summary p{
        max-width:100%;
        overflow-wrap:anywhere;
        font-size:13px;
    }

    .legal-content{
        width:100%;
        padding:24px 20px;
        overflow:hidden;
        box-sizing:border-box;
    }

    .legal-content section+section{
        margin-top:28px;
        padding-top:25px;
    }

    .legal-content h2{
        max-width:100%;
        margin-bottom:12px;
        font-size:clamp(25px,8vw,34px);
        line-height:1.08;
        overflow-wrap:anywhere;
    }

    .legal-content p,
    .legal-content li{
        max-width:100%;
        font-size:16px;
        line-height:1.65;
        overflow-wrap:anywhere;
        word-break:normal;
    }

    .legal-content ul{
        padding-left:20px;
    }

    .legal-table-wrap{
        margin-right:0;
        margin-left:0;
        -webkit-overflow-scrolling:touch;
    }

    .legal-table{
        min-width:620px;
    }
}

@media(max-width:520px){
    .legal-page-hero{
        padding:34px 0 40px;
    }

    .legal-page-hero .container,
    .legal-page .container{
        width:calc(100% - 28px);
    }

    .legal-page-hero h1{
        font-size:clamp(38px,12vw,54px);
    }

    .legal-page-hero p{
        font-size:16px;
    }

    .legal-page{
        padding-top:26px;
    }

    .legal-summary{
        padding:18px;
    }

    .legal-content{
        padding:22px 17px;
    }

    .legal-content h2{
        font-size:clamp(23px,7.8vw,30px);
    }

    .legal-content p,
    .legal-content li{
        font-size:15px;
        line-height:1.62;
    }
}
