/*
 * Styles for content-asset pages rendered by ContentPage (`/static/:contentId.html`).
 *
 * The page body comes from a SFCC content asset and relies on the SiteGenesis site
 * CSS, which the PWA does not ship. These are the rules the asset markup actually
 * needs (wrapper/grid/table), scoped under `.static-content` so they cannot leak
 * into the rest of the PWA (Chakra) styling.
 */

.static-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    color: #000;
    font-family: 'Shiseido Ginza', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.33333;
}

/* Minimal grid fallback for the `container / row / col-*` classes used by assets */
.static-content .container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.static-content .row {
    display: flex;
    flex-wrap: wrap;
}

.static-content [class*='col-desktop-'] {
    flex: 0 0 100%;
    max-width: 100%;
}

/* The asset ships its own breadcrumb pointing at the SFCC backend host.
   The PWA renders its own navigation, so hide it. */
.static-content .breadcrumb-mobile,
.static-content .z-breadcrumbs-wrap {
    display: none;
}

/* ------------------------------------------------------------------ text --- */

.static-content .z-privacy-notice {
    font-size: 18px;
    line-height: 1.33333;
    margin-bottom: 240px;
}

.static-content .z-privacy-notice p,
.static-content .z-privacy-notice ul,
.static-content .z-privacy-notice ol {
    margin: 24px 0;
}

/* The asset markup carries its own numbering inside <li> text, so the browser
   marker must be hidden (production does the same). */
.static-content .z-privacy-notice ol {
    list-style: none;
    padding: 0;
}

/* Opt-in numbered lists use the CSS marker instead */
.static-content .z-privacy-notice ol.z-privacy-notice_ol {
    list-style-type: decimal;
}

.static-content .z-privacy-notice ol > li {
    position: relative;
    padding-left: 2em;
}

.static-content .z-privacy-notice ol > li > span:first-child {
    position: absolute;
    display: block;
    left: 0;
}

.static-content .z-privacy-notice ol ul {
    list-style-type: disc;
    margin-left: 1em;
}

/* Indentation: Chakra's global reset strips the default <ul> padding */
.static-content .z-privacy-notice ul {
    list-style: disc;
    padding-left: 1.25em;
}

.static-content .z-privacy-notice_section > ul,
.static-content .z-privary-notice_subsection > ul {
    padding-left: 1em;
}

.static-content .z-privacy-notice li {
    margin-bottom: 24px;
}

.static-content .z-privacy-notice b,
.static-content .z-privacy-notice strong {
    font-weight: 700;
}

/* Brand red links, matching the SiteGenesis global anchor rule */
.static-content a {
    color: #c8102e;
}

.static-content .z-privacy-notice a {
    text-decoration: underline;
    font-size: 18px !important;
    line-height: 1.33333 !important;
}

/* External-link icon shown after links opening in a new tab */
.static-content .z-privacy-notice a[target='_blank']::after {
    display: inline-block;
    margin-left: 4px;
    margin-right: 4px;
    width: 14px;
    height: 10px;
    border: 2px solid #c8102e;
    box-shadow: 1px -1px 0 #fff, 3px -3px 0 #c8102e;
    vertical-align: middle;
    content: '';
}

.static-content .z-privacy-notice_title {
    margin-top: 70px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.35294;
    text-transform: none;
    border-bottom: 4px solid #000;
}

.static-content .z-privacy-notice_section-title,
.static-content .z-privary-notice_subsection-title {
    margin-bottom: 23px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.33333;
}

.static-content .z-privacy-notice_section-title + *,
.static-content .z-privary-notice_subsection-title + * {
    margin-top: 0 !important;
}

/* ----------------------------------------------------------------- table --- */

.static-content .z-privacy-notice_table-scroll {
    margin: 37px 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.static-content .z-privacy-notice table {
    border-collapse: collapse;
}

.static-content .z-privacy-notice table th,
.static-content .z-privacy-notice table td {
    padding: 30px 20px;
    border: 1px solid #ccc;
    font-weight: 400;
    text-align: left;
    vertical-align: top;
}

.static-content .z-privacy-notice table th {
    font-weight: 700;
    vertical-align: middle;
    background-color: #f1f1f1;
}

.static-content .z-privacy-notice table td > :first-child {
    margin-top: 0;
}

.static-content .z-privacy-notice table td > :last-child {
    margin-bottom: 0;
}

.static-content .z-privacy-notice table td > ul {
    margin-left: 20px;
}

.static-content .z-privacy-notice table ol,
.static-content .z-privacy-notice table ul {
    margin-top: 20px;
    margin-bottom: 0;
}

.static-content .z-privacy-notice table ol:last-child > li:last-child,
.static-content .z-privacy-notice table ul:last-child > li:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------------------- utilities --- */

.static-content .text-underline {
    text-decoration: underline;
}

.static-content .z-privacy-notice_align-left {
    text-align: left;
}

.static-content .z-privacy-notice_align-center {
    text-align: center;
}

.static-content .z-privacy-notice_align-right {
    text-align: right;
}

/* ----------------------------------------------------------------- mobile --- */

@media screen and (max-width: 768px) {
    .static-content {
        padding: 0 5.33vw;
        font-size: 12px;
        line-height: 1.41667;
    }

    .static-content .z-privacy-notice {
        margin-bottom: 120px;
        font-size: 12px;
        line-height: 1.41667;
    }

    .static-content .z-privacy-notice p,
    .static-content .z-privacy-notice ul,
    .static-content .z-privacy-notice ol {
        margin: 20px 0;
    }

    .static-content .z-privacy-notice li {
        margin-bottom: 10px;
    }

    .static-content .z-privacy-notice a {
        font-size: 12px !important;
        line-height: 1.41667 !important;
    }

    .static-content .z-privacy-notice a[target='_blank']::after {
        margin-left: 2px;
        margin-right: 2px;
        transform: scale(0.5);
    }

    .static-content .z-privacy-notice_title {
        margin-top: 40px;
        margin-bottom: 40px;
        padding-bottom: 30px;
        font-size: 25px;
        line-height: 37.5px;
        border-bottom-width: 2px;
    }

    .static-content .z-privacy-notice_section-title,
    .static-content .z-privary-notice_subsection-title {
        font-size: 15px;
        margin-bottom: 10.5px;
    }

    .static-content .z-privacy-notice table th,
    .static-content .z-privacy-notice table td {
        padding: 15px 10px;
    }
}
