:root {
    --yc-legal-canvas: #f8f7f1;
    --yc-legal-surface: #ffffff;
    --yc-legal-surface-subtle: #fbfbfa;
    --yc-legal-ink: #202428;
    --yc-legal-muted: #68717d;
    --yc-legal-muted-strong: #4e5762;
    --yc-legal-line: #e3e4e1;
    --yc-legal-line-strong: #d2d5d1;
    --yc-legal-charcoal: #24282c;
    --yc-legal-violet: #5f63d8;
    --yc-legal-violet-soft: #eeefff;
    --yc-legal-teal: #087f6d;
    --yc-legal-teal-soft: #e4f5f1;
    --yc-legal-coral: #d96f3f;
    --yc-legal-coral-soft: #fff0e8;
    --yc-legal-font: Manrope, "Avenir Next", "Segoe UI", Roboto, Helvetica,
        Arial, sans-serif;
    --yc-legal-shadow: 0 24px 80px rgb(35 39 43 / 10%);
    --yc-legal-shadow-soft: 0 8px 28px rgb(35 39 43 / 6%);
}

.legal-skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--yc-legal-charcoal);
    font-weight: 750;
    transform: translateY(-180%);
}

.legal-skip-link:focus {
    transform: translateY(0);
}

.legal-document {
    width: min(1480px, 100%);
    min-width: 0;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #dedfdb;
    border-radius: 26px;
    background: var(--yc-legal-canvas);
    box-shadow: var(--yc-legal-shadow);
    color: var(--yc-legal-ink);
    font-family: var(--yc-legal-font);
}

.legal-document a {
    text-underline-offset: 3px;
}

.legal-masthead {
    position: relative;
    overflow: hidden;
    padding: 0 clamp(24px, 5vw, 72px) clamp(74px, 8vw, 110px);
    background: var(--yc-legal-charcoal);
    color: #fff;
}

.legal-masthead::before,
.legal-masthead::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.legal-masthead::before {
    top: -280px;
    right: -170px;
    width: 570px;
    height: 570px;
    background: radial-gradient(circle, rgb(95 99 216 / 27%), transparent 68%);
}

.legal-masthead::after {
    bottom: -360px;
    left: 22%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgb(217 111 63 / 12%), transparent 70%);
}

.legal-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 98px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid rgb(255 255 255 / 11%);
}

.legal-brand {
    display: inline-flex;
    align-items: center;
}

.legal-brand img {
    display: block;
    width: min(210px, 48vw);
    height: auto;
}

.legal-utility-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #c9cccf;
    font-size: 13px;
    font-weight: 650;
}

.legal-utility-nav a {
    color: inherit;
    text-decoration: none;
}

.legal-utility-nav a:hover,
.legal-utility-nav a:focus-visible,
.legal-utility-nav a[aria-current="page"] {
    color: #fff;
}

.legal-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: clamp(40px, 8vw, 120px);
    align-items: end;
    padding-top: clamp(60px, 8vw, 108px);
}

.legal-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #c9cccf;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #777bea;
    content: "";
}

.legal-hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 720;
    letter-spacing: -0.052em;
    line-height: 0.98;
}

.legal-introduction {
    max-width: 680px;
    margin: 0;
    color: #c8cbce;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
}

.legal-document-switcher {
    display: grid;
    gap: 8px;
    align-self: end;
}

.legal-document-switcher > p {
    margin: 0 0 5px;
    color: #9fa5aa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-document-tab {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 16px 13px 18px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 14px;
    background: rgb(255 255 255 / 5%);
    color: #d8dadd;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease,
        transform 150ms ease;
}

.legal-document-tab:hover {
    border-color: rgb(255 255 255 / 28%);
    color: #fff;
    transform: translateY(-1px);
}

.legal-document-tab.is-active {
    border-color: #777bea;
    background: var(--yc-legal-violet);
    color: #fff;
}

.legal-document-tab span:last-child {
    font-size: 18px;
    line-height: 1;
}

.legal-content {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 48px));
    margin: -42px auto 0;
    padding-bottom: clamp(56px, 8vw, 96px);
}

.legal-summary {
    display: grid;
    grid-template-columns: minmax(220px, 0.74fr) minmax(0, 2.26fr);
    overflow: hidden;
    margin-bottom: 26px;
    border: 1px solid var(--yc-legal-line);
    border-radius: 20px;
    background: var(--yc-legal-surface);
    box-shadow: var(--yc-legal-shadow-soft);
}

.legal-summary-heading {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 34px;
    padding: 27px 28px;
    border-right: 1px solid var(--yc-legal-line);
    background: var(--yc-legal-surface-subtle);
}

.legal-summary-heading p {
    margin: 0;
}

.legal-summary-label {
    color: var(--yc-legal-violet);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-summary-heading strong {
    display: block;
    margin-top: 7px;
    font-size: 20px;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.legal-effective-date {
    color: var(--yc-legal-muted);
    font-size: 11px;
    line-height: 1.5;
}

.legal-summary-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-summary-point {
    min-height: 156px;
    padding: 26px 25px;
    border-right: 1px solid var(--yc-legal-line);
}

.legal-summary-point:last-child {
    border-right: 0;
}

.legal-summary-number {
    display: grid;
    width: 30px;
    height: 30px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    background: var(--yc-legal-violet-soft);
    color: var(--yc-legal-violet);
    font-size: 11px;
    font-weight: 850;
}

.legal-summary-point:nth-child(2) .legal-summary-number {
    background: var(--yc-legal-teal-soft);
    color: var(--yc-legal-teal);
}

.legal-summary-point:nth-child(3) .legal-summary-number {
    background: var(--yc-legal-coral-soft);
    color: var(--yc-legal-coral);
}

.legal-summary-point strong {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.35;
}

.legal-summary-point p {
    margin: 0;
    color: var(--yc-legal-muted);
    font-size: 12px;
    line-height: 1.6;
}

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

.legal-contents {
    position: sticky;
    top: 18px;
    max-height: calc(100svh - 36px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--yc-legal-line);
    border-radius: 18px;
    background: var(--yc-legal-surface);
    box-shadow: 0 1px 2px rgb(25 31 36 / 3%);
}

.legal-contents-heading {
    padding: 20px 20px 14px;
    border-bottom: 1px solid var(--yc-legal-line);
}

.legal-contents-heading span {
    display: block;
    color: var(--yc-legal-violet);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-contents-heading strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}

.legal-contents nav {
    padding: 9px;
}

.legal-contents a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    color: var(--yc-legal-muted-strong);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
}

.legal-contents a:hover,
.legal-contents a:focus-visible {
    background: var(--yc-legal-violet-soft);
    color: #464bb4;
}

.legal-contents a span {
    flex: 0 0 18px;
    color: #9da2a8;
    font-size: 9px;
    font-weight: 800;
}

.legal-contents-note {
    margin: 0;
    padding: 15px 19px 18px;
    border-top: 1px solid var(--yc-legal-line);
    color: var(--yc-legal-muted);
    font-size: 10px;
    line-height: 1.55;
}

.legal-sections {
    display: grid;
    gap: 11px;
    min-width: 0;
    counter-reset: legal-section;
}

.legal-document .accordion-title {
    display: grid;
    width: 100%;
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    gap: 16px;
    align-items: center;
    margin: 0;
    padding: 21px 22px;
    border: 1px solid var(--yc-legal-line);
    border-radius: 16px;
    background: var(--yc-legal-surface);
    box-shadow: 0 1px 2px rgb(25 31 36 / 3%);
    color: var(--yc-legal-ink);
    cursor: pointer;
    counter-increment: legal-section;
    scroll-margin-top: 18px;
    text-align: left;
    transition: border-color 150ms ease, box-shadow 150ms ease,
        transform 150ms ease;
}

.legal-document .accordion-title::before {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--yc-legal-line);
    border-radius: 11px;
    background: var(--yc-legal-surface-subtle);
    color: var(--yc-legal-muted);
    content: counter(legal-section, decimal-leading-zero);
    font-size: 10px;
    font-weight: 850;
}

.legal-document .accordion-title:hover,
.legal-document .accordion-title.is-open {
    border-color: #d8d9e9;
    background: var(--yc-legal-surface);
    color: var(--yc-legal-ink);
    box-shadow: var(--yc-legal-shadow-soft);
}

.legal-document .accordion-title.is-open {
    border-radius: 16px 16px 0 0;
}

.legal-document .accordion-title:active {
    transform: translateY(1px);
}

.legal-section-title strong {
    display: block;
    font-size: 15px;
    letter-spacing: -0.012em;
    line-height: 1.35;
}

.legal-section-title small {
    display: block;
    margin-top: 3px;
    color: var(--yc-legal-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.legal-document .accordion-title > span:last-child {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--yc-legal-violet-soft);
    color: var(--yc-legal-violet);
    font-size: 20px;
}

.legal-document .accordion-title.is-open > span:last-child {
    transform: rotate(180deg);
}

.legal-document .accordion-content {
    display: block;
    width: 100%;
    margin: -12px 0 0;
    padding: 30px 76px 28px;
    border: 1px solid #d8d9e9;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: var(--yc-legal-surface);
    color: var(--yc-legal-muted-strong);
    font-size: 13px;
    line-height: 1.75;
}

.legal-document .accordion-content[hidden] {
    display: none;
}

.legal-document .accordion-content p,
.legal-document .accordion-content ul,
.legal-document .accordion-content address {
    margin-top: 0;
}

.legal-document .accordion-content p:last-child,
.legal-document .accordion-content ul:last-child,
.legal-document .accordion-content address:last-child {
    margin-bottom: 0;
}

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

.legal-document .accordion-content li + li {
    margin-top: 7px;
}

.legal-document .accordion-content strong,
.legal-document .accordion-content .font-semibold {
    color: var(--yc-legal-ink);
}

.legal-document .accordion-content .link {
    color: #4e52be;
    font-weight: 650;
}

.legal-updated {
    padding: 14px 18px;
    color: var(--yc-legal-muted);
    font-size: 11px;
    text-align: center;
}

.legal-back-to-top {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.legal-back-to-top a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--yc-legal-line-strong);
    border-radius: 999px;
    background: var(--yc-legal-surface);
    color: var(--yc-legal-muted-strong);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.legal-back-to-top a:hover {
    border-color: #b6b9c9;
    color: #464bb4;
}

.legal-document-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    margin-top: 28px;
    padding: 25px 28px;
    border: 1px solid var(--yc-legal-line);
    border-radius: 18px;
    background: var(--yc-legal-surface);
}

.legal-document-footer h2 {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.legal-document-footer p {
    max-width: 690px;
    margin: 0;
    color: var(--yc-legal-muted);
    font-size: 12px;
}

.legal-document-footer-copy > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    color: #4e52be;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.legal-document-footer-copy > a:hover {
    text-decoration: underline;
}

.legal-partner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 28px;
    border-left: 1px solid var(--yc-legal-line);
}

.legal-partner span {
    color: var(--yc-legal-muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-partner img {
    display: block;
    width: 110px;
    height: auto;
}

.legal-document :focus-visible {
    outline: 3px solid rgb(95 99 216 / 42%);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .legal-hero {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .legal-document-switcher {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-document-switcher > p {
        grid-column: 1 / -1;
    }

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

    .legal-summary-heading {
        flex-direction: row;
        align-items: end;
        border-right: 0;
        border-bottom: 1px solid var(--yc-legal-line);
    }

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

    .legal-contents {
        position: static;
        max-height: none;
        overflow: hidden;
    }

    .legal-contents nav {
        display: flex;
        overflow-x: auto;
        padding: 10px;
        scrollbar-width: thin;
    }

    .legal-contents a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .legal-contents-note {
        display: none;
    }
}

@media (max-width: 700px) {
    body {
        padding: 10px !important;
    }

    .legal-document {
        border-radius: 20px;
    }

    .legal-masthead {
        padding-right: 24px;
        padding-left: 24px;
    }

    .legal-topbar {
        min-height: 82px;
    }

    .legal-utility-nav a:first-child,
    .legal-utility-nav a:nth-child(2) {
        display: none;
    }

    .legal-hero h1 {
        font-size: clamp(40px, 13vw, 58px);
    }

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

    .legal-content {
        width: min(100% - 24px, 1220px);
    }

    .legal-summary-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

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

    .legal-summary-point {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--yc-legal-line);
    }

    .legal-summary-point:last-child {
        border-bottom: 0;
    }

    .legal-document .accordion-title {
        grid-template-columns: 34px minmax(0, 1fr) 30px;
        gap: 12px;
        padding: 18px 16px;
    }

    .legal-section-title small {
        display: none;
    }

    .legal-document .accordion-content {
        padding: 28px 20px 24px;
    }

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

    .legal-partner {
        padding-top: 20px;
        padding-left: 0;
        border-top: 1px solid var(--yc-legal-line);
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal-document *,
    .legal-document *::before,
    .legal-document *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body {
        padding: 0 !important;
        background: #fff !important;
    }

    .legal-skip-link,
    .legal-topbar,
    .legal-document-switcher,
    .legal-contents,
    .legal-back-to-top,
    [data-analytics-consent] {
        display: none !important;
    }

    .legal-document {
        border: 0;
        box-shadow: none;
    }

    .legal-masthead {
        padding: 24px 0 32px;
        background: #fff;
        color: #000;
    }

    .legal-eyebrow,
    .legal-introduction {
        color: #333;
    }

    .legal-content {
        width: 100%;
        margin-top: 24px;
    }

    .legal-document-layout {
        display: block;
    }

    .legal-document .accordion-title,
    .legal-document .accordion-content,
    .legal-summary,
    .legal-document-footer {
        break-inside: avoid;
        box-shadow: none;
    }

    .legal-document .accordion-content[hidden] {
        display: block !important;
    }
}
