/* Shared editorial treatment for the legal pages.
   Hero sections intentionally keep their original design. */

body.legal-usage-page {
    background: #f6f6f4;
    color: #1a1d2e;
}

.legal-usage-page :is(
    .privacy-container,
    .terms-container,
    .cookie-container,
    .subprocessors-content
) {
    position: relative;
    width: min(1240px, 100%);
    max-width: 1240px;
    margin: 0 auto;
    padding: 13px !important;
    gap: 13px;
    background-image: repeating-linear-gradient(135deg, #eeeeec 0, #eeeeec 1px, transparent 1px, transparent 9px);
    border-right: 1px solid rgba(132, 140, 161, .3);
    border-bottom: 1px solid rgba(132, 140, 161, .3);
    border-left: 1px solid rgba(132, 140, 161, .3);
}

.legal-usage-page :is(.privacy-container, .terms-container, .cookie-container) {
    display: block;
}

.legal-usage-page :is(.privacy-toc, .terms-toc, .cookie-toc) {
    position: relative;
    top: 0;
    width: 100%;
    margin: 0 0 13px;
    padding: 18px 20px 20px;
    border: 1px solid rgba(132, 140, 161, .22);
    border-radius: 5px;
    background: #fff;
    box-shadow: none;
}

.legal-usage-page :is(.privacy-toc, .terms-toc, .cookie-toc) h3 {
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(132, 140, 161, .22);
    color: #3f51b5;
    font: 700 .9rem/1.2 'Sora', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.legal-usage-page :is(.privacy-toc, .terms-toc, .cookie-toc) ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-top: 1px solid #dcdfe5;
    border-left: 1px solid #dcdfe5;
    border-radius: 5px;
    list-style: none;
}

.legal-usage-page :is(.privacy-toc, .terms-toc, .cookie-toc) li {
    margin: 0;
    border-right: 1px solid #dcdfe5;
    border-bottom: 1px solid #dcdfe5;
    background: #fafafa;
}

.legal-usage-page :is(.privacy-toc, .terms-toc, .cookie-toc) a {
    display: block;
    height: 100%;
    padding: 10px 12px;
    border: 0;
    color: #626a79;
    font-size: .9rem;
    line-height: 1.4;
    text-decoration: none;
}

.legal-usage-page :is(.privacy-toc, .terms-toc, .cookie-toc) a:hover,
.legal-usage-page :is(.privacy-toc, .terms-toc, .cookie-toc) a.active {
    border: 0;
    background: #f0f2ff;
    color: #3f51b5;
}

.legal-usage-page .cookie-toc .manage-btn {
    margin-top: 14px;
    border: 1px solid #d8ddef;
    border-radius: 5px;
    background: #f0f2ff;
}

.legal-usage-page :is(.privacy-content, .terms-content, .cookie-content) {
    min-width: 0;
    overflow: visible;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.legal-usage-page :is(.privacy-section, .terms-section, .cookie-section) {
    margin: 13px 0 !important;
    padding: 28px 34px !important;
    scroll-margin-top: 96px;
    border: 1px solid rgba(132, 140, 161, .18) !important;
    border-top: 0 !important;
    border-radius: 0;
    background: #fff;
}

.legal-usage-page :is(.privacy-section, .terms-section, .cookie-section):first-of-type {
    margin-top: 13px !important;
}

.legal-usage-page :is(.privacy-section, .terms-section, .cookie-section):last-child {
    margin-bottom: 0 !important;
}

.legal-usage-page :is(.privacy-section, .terms-section, .cookie-section) h2 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: #11141c;
    font: 650 1.4rem 'Sora', sans-serif;
    letter-spacing: -.02em;
}

.legal-usage-page :is(.privacy-section, .terms-section, .cookie-section) h3 {
    margin: 10px 0 9px;
    color: #20242d;
    font: 650 1.05rem/1.45 'Sora', sans-serif;
}

.legal-usage-page :is(.privacy-section, .terms-section, .cookie-section) p,
.legal-usage-page :is(.privacy-section, .terms-section, .cookie-section) li {
    color: #4f5868;
    font-size: 1rem;
    line-height: 1.75;
}

.legal-usage-page :is(.privacy-section, .terms-section, .cookie-section) p {
    margin: 0 0 13px;
}

.legal-usage-page :is(.privacy-section, .terms-section, .cookie-section) li::marker {
    color: #3f51b5;
}

.legal-section-separator {
    position: relative;
    z-index: 2;
    overflow: visible !important;
    height: 1px;
    margin: 13px -13px 0;
}

.legal-section-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    height: 1px;
    background: rgba(132, 140, 161, .48);
    pointer-events: none;
}

.legal-marker {
    position: absolute;
    top: 0;
    z-index: 3;
    width: 16px;
    height: 16px;
    background: linear-gradient(to bottom, #f6f6f4 50%, #ebe8e6 50%);
    pointer-events: none;
}

.legal-marker::after {
    content: '';
    position: absolute;
    top: 5.5px;
    left: 5.5px;
    width: 5px;
    height: 5px;
    background: #1111115f;
}

.legal-marker.left {
    left: 0;
    transform: translate(calc(-50% + .5px), calc(-50% + .5px));
}

.legal-marker.right {
    right: 0;
    transform: translate(calc(50% - .5px), calc(-50% + .5px));
}

.legal-section-band {
    position: relative;
    isolation: isolate;
    z-index: auto;
    display: flex;
    align-items: center;
    overflow: visible !important;
    width: calc(100% + 26px);
    height: 60px;
    margin: 0 -13px;
    padding: 0 13px;
    background: #ebe8e6;
    color: #3f51b5;
    font: 700 .95rem/1.2 'DM Sans', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.legal-section-band::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    z-index: 0;
    width: 100vw;
    background: #ebe8e6;
    border-bottom: 1px solid rgba(132, 140, 161, .48);
    pointer-events: none;
}

.legal-section-band > span:not(.legal-marker) {
    position: relative;
    z-index: 1;
}

.legal-section-band::after {
    content: none;
}

.legal-section-band .legal-marker.band-bottom {
    top: auto;
    bottom: 0;
    background: linear-gradient(to bottom, #ebe8e6 50%, #f6f6f4 50%);
}

.legal-section-band .legal-marker.band-bottom.left {
    transform: translate(calc(-50% + .5px), calc(50% - .5px));
}

.legal-section-band .legal-marker.band-bottom.right {
    transform: translate(calc(50% - .5px), calc(50% - .5px));
}

.legal-usage-page :is(.privacy-highlight, .terms-highlight, .cookie-highlight, .terms-warning) {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    margin: 20px 0 !important;
    padding: 15px 18px;
    border: 0;
    border-radius: 7px;
    background: #dceefe;
    color: #465264;
}

.legal-usage-page :is(.privacy-highlight.red, .terms-warning) {
    border: 0;
    background: #fff0ef;
}

.legal-usage-page .legal-callout-icon {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    color: #315b8b;
    stroke-width: 1.9;
}

.legal-usage-page :is(.privacy-highlight.red, .terms-warning) .legal-callout-icon {
    color: #c7443e;
}

.legal-usage-page .legal-callout-content {
    min-width: 0;
}

.legal-usage-page .legal-callout-content > *:last-child {
    margin-bottom: 0 !important;
}

.legal-usage-page .legal-callout-content > * + * {
    margin-top: 8px;
}

.legal-usage-page :is(.privacy-contact, .terms-contact, .cookie-contact) {
    margin-top: 20px;
    padding: 15px 24px 5px !important;
    border: 1px solid #dcdfe5;
    border-radius: 0px;
    background: #fafafa;
    box-shadow: none;
}

.legal-usage-page .terms-summary {
    margin: 0 0 13px;
    padding: 25px 28px;
    border: 1px solid rgba(132, 140, 161, .18);
    border-radius: 0;
    background: #fff;
}

.legal-usage-page .terms-summary-grid,
.legal-usage-page .cookie-cards,
.legal-usage-page .browser-grid {
    gap: 0;
    overflow: hidden;
    border-top: 1px solid #dcdfe5;
    border-left: 1px solid #dcdfe5;
    border-radius: 6px;
}

.legal-usage-page :is(.ts-item, .cookie-card, .browser-item) {
    margin: 0;
    border: 0;
    border-right: 1px solid #dcdfe5;
    border-bottom: 1px solid #dcdfe5;
    border-radius: 0;
    background: #fafafa;
    box-shadow: none;
}

.legal-usage-page .cookie-card {
    padding: 18px;
}

.legal-usage-page .cookie-card-icon {
    border-radius: 5px;
}

.legal-usage-page :is(.cookie-table-wrap, .sp-table-wrap) {
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
    overflow-x: auto;
    box-sizing: border-box;
    border: 1px solid #dcdfe5;
    border-radius: 0;
    background: #fff;
}

.legal-usage-page :is(.cookie-table, .subprocessors-table) {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    border-collapse: collapse;
    background: #fff;
    box-shadow: none;
}

.legal-usage-page :is(.cookie-table, .subprocessors-table) thead {
    background: #ebe8e6;
}

.legal-usage-page :is(.cookie-table, .subprocessors-table) thead th {
    border-bottom: 1px solid #d3d4d9;
    color: #343945;
}

.legal-usage-page :is(.cookie-table, .subprocessors-table) tbody tr,
.legal-usage-page :is(.cookie-table, .subprocessors-table) tbody tr:nth-child(even) {
    border-bottom: 1px solid #e1e2e6;
    background: #fff;
}

.legal-usage-page :is(.cookie-table, .subprocessors-table) tbody tr:nth-child(even) {
    background: #fafafa;
}

.legal-usage-page .subprocessors-table {
    min-width: 920px;
    table-layout: fixed;
}

.legal-usage-page .subprocessors-table :is(th, td):nth-child(1) {
    width: 16%;
}

.legal-usage-page .subprocessors-table :is(th, td):nth-child(2) {
    width: 20%;
}

.legal-usage-page .subprocessors-table :is(th, td):nth-child(3) {
    width: 14%;
}

.legal-usage-page .subprocessors-table :is(th, td):nth-child(4) {
    width: 50%;
}

.legal-usage-page .subprocessors-table tbody td {
    border-bottom: 1px solid #e1e2e6;
}

.legal-usage-page .subprocessors-table tbody tr:last-child td {
    border-bottom: 0;
}

.legal-usage-page .subprocessors-content {
    display: block;
    overflow: visible !important;
}

.legal-usage-page .sp-intro {
    margin: 0px 0 13px;
    padding: 28px 34px;
    border: 1px solid rgba(132, 140, 161, .18);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.legal-usage-page .sp-directory {
    margin: 13px 0;
    padding: 28px 34px 34px;
    border: 1px solid rgba(132, 140, 161, .18);
    border-top: 0;
    background: #fff;
}

.legal-usage-page .sp-directory-intro h2 {
    margin: 0 0 10px;
    color: #11141c;
    font: 650 1.5rem/1.35 'Sora', sans-serif;
    letter-spacing: -.02em;
}

.legal-usage-page .sp-directory-intro p {
    margin: 0;
    color: #4f5868;
    font-size: 1rem;
    line-height: 1.75;
}

.legal-usage-page .sp-table-wrap {
    position: relative;
    isolation: isolate;
    margin: 18px 0 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin;
}

.legal-usage-page .sp-table-wrap > .subprocessors-table {
    display: table;
}

.legal-usage-page .sp-intro h2,
.legal-usage-page :is(.sp-updates, .sp-contact) h3 {
    margin: 0 0 10px;
    color: #11141c;
    font-family: 'Sora', sans-serif;
}

.legal-usage-page .sp-intro h2 {
    font-size: 1.5rem;
}

.legal-usage-page .sp-intro p,
.legal-usage-page .sp-updates p,
.legal-usage-page .sp-contact p {
    margin: 0 0 10px;
    color: #4f5868;
    font-size: 1rem;
    line-height: 1.75;
}

.legal-usage-page .sp-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin: 13px 0 0;
}

.legal-usage-page :is(.sp-updates, .sp-contact) {
    min-width: 0;
    margin: 0;
    padding: 26px 28px;
    border: 1px solid rgba(132, 140, 161, .24);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.legal-usage-page .sp-contact {
    background: #eef7ff;
}

.legal-usage-page :is(.sp-updates, .sp-contact) h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    line-height: 1.4;
}

.legal-usage-page :is(.sp-updates, .sp-contact) h3 svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    color: #315b8b;
    stroke-width: 1.9;
}

.legal-usage-page .sp-contact {
    margin-bottom: 0;
}

.legal-usage-page :is(
    .privacy-section,
    .terms-section,
    .cookie-section,
    .sp-intro,
    .sp-updates,
    .sp-contact,
    .legal-support,
    .legal-related
) > :last-child {
    margin-bottom: 0 !important;
}

.legal-usage-page .legal-closing-panel {
    overflow: hidden;
    margin: 13px 0 0;
    border: 1px solid rgba(132, 140, 161, .24);
    border-radius: 0;
    background: #fff;
}

.legal-usage-page .legal-support,
.legal-usage-page .legal-related {
    padding: 28px 34px;
}

.legal-usage-page .legal-related {
    border-top: 1px solid rgba(132, 140, 161, .28);
    background: #ebe8e6;
}

.legal-usage-page .legal-closing-panel h2 {
    margin: 0 0 10px;
    color: #11141c;
    font: 650 1.5rem/1.35 'Sora', sans-serif;
    letter-spacing: -.02em;
}

.legal-usage-page .legal-closing-panel p {
    max-width: none;
    margin: 0;
    color: #4f5868;
    font-size: 1rem;
    line-height: 1.75;
}

.legal-usage-page .legal-closing-panel a {
    color: #2447bd;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.legal-usage-page .legal-related ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 48px;
    margin: 16px 0 0;
    padding-left: 18px;
}

.legal-usage-page .legal-related li {
    color: #11141c;
    font-size: 1rem;
    line-height: 1.45;
}

.legal-usage-page .legal-related li::marker {
    color: #11141c;
}

.legal-usage-page .legal-related a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legal-usage-page .legal-related a svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    stroke-width: 1.8;
}

@media (max-width: 900px) {
    .legal-usage-page :is(
        .privacy-container,
        .terms-container,
        .cookie-container,
        .subprocessors-content
    ) {
        width: min(1240px, calc(100% - 28px));
        padding: 13px 18px !important;
    }

    .legal-usage-page :is(.privacy-container, .terms-container, .cookie-container) {
        display: block;
    }

    .legal-usage-page :is(.privacy-toc, .terms-toc, .cookie-toc) ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-section-separator {
        margin-right: -18px;
        margin-left: -18px;
    }

    .legal-section-band {
        width: calc(100% + 36px);
        margin-right: -18px;
        margin-left: -18px;
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (max-width: 620px) {
    .legal-usage-page :is(.privacy-section, .terms-section, .cookie-section),
    .legal-usage-page .sp-intro,
    .legal-usage-page .sp-directory,
    .legal-usage-page .sp-updates,
    .legal-usage-page .sp-contact,
    .legal-usage-page .terms-summary {
        padding: 26px 20px !important;
    }

    .legal-usage-page :is(.privacy-section, .terms-section, .cookie-section) h2,
    .legal-usage-page .sp-intro h2,
    .legal-usage-page .sp-directory-intro h2,
    .legal-usage-page .legal-closing-panel h2 {
        font-size: 1.3rem;
    }

    .legal-usage-page .legal-support,
    .legal-usage-page .legal-related {
        padding: 26px 20px;
    }

    .legal-usage-page .legal-related ul {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .legal-usage-page .terms-summary-grid,
    .legal-usage-page .cookie-cards,
    .legal-usage-page .browser-grid,
    .legal-usage-page .sp-secondary-grid {
        grid-template-columns: 1fr;
    }

    .legal-usage-page :is(.privacy-toc, .terms-toc, .cookie-toc) {
        overflow: hidden;
        padding: 16px;
    }

    .legal-usage-page :is(.privacy-toc, .terms-toc, .cookie-toc) ul {
        display: flex;
        gap: 0;
        overflow-x: auto;
        border-radius: 5px;
        scrollbar-width: thin;
    }

    .legal-usage-page :is(.privacy-toc, .terms-toc, .cookie-toc) li {
        flex: 0 0 auto;
        min-width: 180px;
    }

    .legal-usage-page :is(.privacy-toc, .terms-toc, .cookie-toc) a {
        white-space: nowrap;
    }
}
