/*
 * YTMAXING — Privacy Policy
 * v1.2.0
 *
 * The plugin adds .ytm-privacy-policy-content around the exact WordPress
 * page content so the design is reliable even when the active theme uses
 * a custom content wrapper.
 */

/* =========================================================
   PAGE / GLOBAL POLICY SCOPE
   ========================================================= */
html:has(body.ytm-privacy-policy-page),
body.ytm-privacy-policy-page {
    background: #050505 !important;
}

body.ytm-privacy-policy-page {
    --ytm-red: #f3263a;
    --ytm-red-2: #d7192d;
    --ytm-white: #ffffff;
    --ytm-text: #b7b7b7;
    --ytm-muted: #8f8f8f;
    --ytm-border: rgba(255,255,255,.105);
    --ytm-border-strong: rgba(255,255,255,.16);
    --ytm-card: rgba(13,13,13,.94);
    color: var(--ytm-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================================
   PRIVACY PAGE TITLE
   ========================================================= */
body.ytm-privacy-policy-page .entry-title,
body.ytm-privacy-policy-page .page-title,
body.ytm-privacy-policy-page .wp-block-post-title,
body.ytm-privacy-policy-page h1.wp-block-post-title {
    box-sizing: border-box;
    width: min(1120px, calc(100% - 48px)) !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 34px 0 22px !important;
    color: #fff !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: clamp(42px, 6vw, 72px) !important;
    line-height: 1.02 !important;
    font-weight: 800 !important;
    letter-spacing: -.045em !important;
    text-align: left !important;
    text-shadow: 0 4px 30px rgba(0,0,0,.45);
}

body.ytm-privacy-policy-page .entry-title::after,
body.ytm-privacy-policy-page .page-title::after,
body.ytm-privacy-policy-page .wp-block-post-title::after,
body.ytm-privacy-policy-page h1.wp-block-post-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ytm-red), var(--ytm-red-2));
    box-shadow: 0 0 24px rgba(243,38,58,.35);
}

/* =========================================================
   CONTENT CARD
   ========================================================= */
body.ytm-privacy-policy-page .ytm-privacy-policy-content {
    position: relative;
    box-sizing: border-box;
    width: min(1120px, calc(100% - 48px)) !important;
    max-width: 1120px !important;
    margin: 0 auto 80px !important;
    padding: 48px clamp(24px, 5vw, 64px) 58px !important;
    overflow: hidden;
    color: var(--ytm-text) !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 17px !important;
    line-height: 1.82 !important;
    background:
        radial-gradient(ellipse at 95% 0%, rgba(243,38,58,.07), transparent 28%),
        radial-gradient(ellipse at 0% 100%, rgba(255,255,255,.025), transparent 32%),
        linear-gradient(145deg, rgba(18,18,18,.96), rgba(8,8,8,.97)) !important;
    border: 1px solid var(--ytm-border-strong) !important;
    border-radius: 28px !important;
    box-shadow:
        0 28px 90px rgba(0,0,0,.58),
        inset 0 1px 0 rgba(255,255,255,.035) !important;
}

body.ytm-privacy-policy-page .ytm-privacy-policy-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ytm-red), transparent);
    box-shadow: 0 0 26px rgba(243,38,58,.38);
}

/* =========================================================
   TEXT
   ========================================================= */
body.ytm-privacy-policy-page .ytm-privacy-policy-content p {
    margin: 0 0 1.25em !important;
    color: var(--ytm-text) !important;
    font-size: 1em !important;
    line-height: 1.82 !important;
}

body.ytm-privacy-policy-page .ytm-privacy-policy-content > p:first-child {
    margin-bottom: .7em !important;
    color: #fff !important;
    font-size: 1.22em !important;
    font-weight: 700 !important;
}

body.ytm-privacy-policy-page .ytm-privacy-policy-content strong {
    color: #fff !important;
    font-weight: 750 !important;
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
body.ytm-privacy-policy-page .ytm-privacy-policy-content h2 {
    position: relative;
    margin: 2.2em 0 .85em !important;
    padding: 0 0 14px 18px !important;
    color: #fff !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: clamp(22px, 3vw, 30px) !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: -.025em !important;
    border-bottom: 1px solid var(--ytm-border) !important;
}

body.ytm-privacy-policy-page .ytm-privacy-policy-content h2::before {
    content: "";
    position: absolute;
    top: .12em;
    bottom: 14px;
    left: 0;
    width: 3px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--ytm-red), var(--ytm-red-2));
    box-shadow: 0 0 16px rgba(243,38,58,.3);
}

/* =========================================================
   LINKS
   ========================================================= */
body.ytm-privacy-policy-page .ytm-privacy-policy-content a {
    color: #ff4b5d !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color .2s ease, text-shadow .2s ease;
}

body.ytm-privacy-policy-page .ytm-privacy-policy-content a:hover,
body.ytm-privacy-policy-page .ytm-privacy-policy-content a:focus-visible {
    color: #ff7481 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    text-shadow: 0 0 18px rgba(243,38,58,.35);
}

/* =========================================================
   LISTS
   ========================================================= */
body.ytm-privacy-policy-page .ytm-privacy-policy-content ul,
body.ytm-privacy-policy-page .ytm-privacy-policy-content ol {
    margin: 0 0 1.45em !important;
    padding-left: 1.5em !important;
}

body.ytm-privacy-policy-page .ytm-privacy-policy-content li {
    margin: .5em 0 !important;
    padding-left: .28em !important;
    color: var(--ytm-text) !important;
    line-height: 1.7 !important;
}

body.ytm-privacy-policy-page .ytm-privacy-policy-content li::marker {
    color: var(--ytm-red) !important;
    font-weight: 800 !important;
}

/* =========================================================
   OPTIONAL ELEMENTS
   ========================================================= */
body.ytm-privacy-policy-page .ytm-privacy-policy-content blockquote {
    margin: 1.6em 0 !important;
    padding: 18px 20px !important;
    color: var(--ytm-text) !important;
    background: rgba(243,38,58,.07) !important;
    border-left: 3px solid var(--ytm-red) !important;
    border-radius: 0 14px 14px 0 !important;
}

body.ytm-privacy-policy-page .ytm-privacy-policy-content hr {
    height: 1px !important;
    margin: 2.5em 0 !important;
    border: 0 !important;
    background: linear-gradient(90deg, transparent, var(--ytm-border-strong), transparent) !important;
}

/* =========================================================
   MOBILE — specifically tuned for the phone view
   ========================================================= */
@media (max-width: 767px) {
    body.ytm-privacy-policy-page .entry-title,
    body.ytm-privacy-policy-page .page-title,
    body.ytm-privacy-policy-page .wp-block-post-title,
    body.ytm-privacy-policy-page h1.wp-block-post-title {
        width: calc(100% - 40px) !important;
        padding: 24px 0 18px !important;
        font-size: clamp(40px, 11vw, 56px) !important;
        line-height: 1.02 !important;
    }

    body.ytm-privacy-policy-page .entry-title::after,
    body.ytm-privacy-policy-page .page-title::after,
    body.ytm-privacy-policy-page .wp-block-post-title::after,
    body.ytm-privacy-policy-page h1.wp-block-post-title::after {
        width: 52px;
        height: 3px;
        margin-top: 15px;
    }

    body.ytm-privacy-policy-page .ytm-privacy-policy-content {
        width: calc(100% - 40px) !important;
        margin-bottom: 50px !important;
        padding: 30px 20px 38px !important;
        border-radius: 22px !important;
        font-size: 16px !important;
        line-height: 1.78 !important;
    }

    body.ytm-privacy-policy-page .ytm-privacy-policy-content p {
        font-size: 16px !important;
        line-height: 1.78 !important;
        margin-bottom: 1.15em !important;
    }

    body.ytm-privacy-policy-page .ytm-privacy-policy-content > p:first-child {
        font-size: 18px !important;
    }

    body.ytm-privacy-policy-page .ytm-privacy-policy-content h2 {
        margin-top: 2em !important;
        padding-left: 14px !important;
        padding-bottom: 11px !important;
        font-size: 23px !important;
    }

    body.ytm-privacy-policy-page .ytm-privacy-policy-content h2::before {
        bottom: 11px;
        width: 3px;
    }

    body.ytm-privacy-policy-page .ytm-privacy-policy-content ul,
    body.ytm-privacy-policy-page .ytm-privacy-policy-content ol {
        padding-left: 1.3em !important;
    }
}
