@charset "utf-8";

/* =========================================================
   Grand Pacific / Legal pages
   ========================================================= */
:root {
    --legal-ink: #030711;
    --legal-navy: #071525;
    --legal-surface: #081321;
    --legal-white: #f6f8fb;
    --legal-ice: #ddecff;
    --legal-muted: #aebdcd;
    --legal-cyan: #28b8ff;
    --legal-border: rgba(221, 236, 255, .12);
    --legal-motion: 360ms cubic-bezier(.2, .75, .2, 1);
}

html {
    scroll-behavior: smooth;
    background: var(--legal-ink);
}

body.legal-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: clip;
    background:
        radial-gradient(ellipse at 78% 8%, rgba(8, 124, 255, .11), transparent 34rem),
        linear-gradient(180deg, #030711 0%, #06111e 42%, #030711 100%);
    color: var(--legal-white);
    font-family: "Archivo", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.legal-page *,
.legal-page *::before,
.legal-page *::after {
    box-sizing: border-box;
}

.legal-page a {
    color: inherit;
}

.legal-page a:focus-visible {
    outline: 2px solid var(--legal-cyan);
    outline-offset: 4px;
}

.legal-page ::selection {
    background: #087cff;
    color: #fff;
}

.legal-skip-link {
    position: fixed;
    z-index: 100;
    top: 1rem;
    left: 1rem;
    padding: .75rem 1rem;
    background: var(--legal-cyan);
    color: #030711 !important;
}

/* =========================================================
   Header
   ========================================================= */
.legal-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--legal-border);
    background: rgba(3, 7, 17, .88);
}

.legal-header__inner {
    min-height: 86px;
    padding: 1rem clamp(1.2rem, 3vw, 2.5rem);
}

.legal-brand {
    min-width: 0;
    gap: .8rem;
    color: var(--legal-white);
    transition: opacity var(--legal-motion);
}

.legal-brand:hover {
    color: var(--legal-white);
    opacity: .82;
}

.legal-brand__mark {
    display: block;
    width: clamp(4rem, 5vw, 5.1rem);
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(40, 184, 255, .15));
}

.legal-brand__text {
    display: grid;
    gap: .26rem;
}

.legal-brand__text strong {
    font-size: clamp(.85rem, 1.25vw, 1rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.legal-brand__text small {
    color: var(--legal-cyan);
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    white-space: nowrap;
}

.legal-home-btn {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: .8rem 1.25rem;
    border: 1px solid rgba(221, 236, 255, .28);
    border-radius: 2px;
    background: rgba(4, 14, 28, .6);
    color: var(--legal-white) !important;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1.1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: border-color var(--legal-motion), background-color var(--legal-motion), color var(--legal-motion);
}

.legal-home-btn:hover {
    border-color: var(--legal-cyan);
    background: rgba(8, 124, 255, .14);
}

.legal-home-btn__arrow {
    color: var(--legal-cyan);
    font-size: 1rem;
    line-height: 0;
    transition: transform var(--legal-motion);
}

.legal-home-btn:hover .legal-home-btn__arrow {
    transform: translateX(-3px);
}

.legal-home-btn__short {
    display: none;
}

/* =========================================================
   Introduction / Oceanic brand atmosphere
   ========================================================= */
.legal-shell {
    position: relative;
    flex: 1 0 auto;
    width: 100%;
    padding: 0 clamp(1.2rem, 3vw, 2.5rem) clamp(5rem, 8vw, 8rem);
}

.legal-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(2.1rem, 4vw, 4rem);
}

.legal-hero::before {
    position: absolute;
    z-index: -1;
    top: 10%;
    right: -8%;
    width: min(55vw, 680px);
    aspect-ratio: 1;
    content: "";
    background: radial-gradient(circle, rgba(8, 124, 255, .13), transparent 70%);
    pointer-events: none;
}

.legal-hero__orbit {
    position: absolute;
    z-index: -1;
    top: 53%;
    right: 3%;
    width: min(35vw, 430px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.legal-hero__orbit i {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(40, 184, 255, .13);
    border-radius: 50%;
}

.legal-hero__orbit i:nth-child(2) {
    inset: 17%;
    border-color: rgba(221, 236, 255, .1);
}

.legal-hero__orbit i:nth-child(3) {
    inset: 36%;
    border-color: rgba(40, 184, 255, .25);
    box-shadow: 0 0 28px rgba(8, 124, 255, .1);
}

.legal-hero__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(2rem, 3vw, 3rem);
    color: var(--legal-cyan);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .19em;
    line-height: 1.5;
    text-transform: uppercase;
}

.legal-hero__topline span:last-child {
    color: rgba(221, 236, 255, .36);
}

.legal-hero__heading {
    position: relative;
    z-index: 1;
    max-width: 13ch;
    margin: 0;
    font-size: clamp(2.8rem, 6.6vw, 7.2rem);
    font-weight: 600;
    letter-spacing: -.072em;
    line-height: .94;
    text-transform: uppercase;
}

.legal-hero__heading span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(221, 236, 255, .77);
    text-shadow: 0 0 38px rgba(40, 184, 255, .065);
}

.legal-hero__intro {
    position: relative;
    z-index: 1;
    max-width: 43rem;
    margin: clamp(1.4rem, 2.5vw, 2.3rem) 0 0;
    color: var(--legal-muted);
    font-size: clamp(.94rem, 1.2vw, 1.05rem);
    line-height: 1.75;
}

.legal-hero__trace {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(40, 184, 255, .36), rgba(221, 236, 255, .12) 65%, transparent);
}

.legal-hero__trace i {
    position: absolute;
    top: 0;
    left: 18%;
    width: 9%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff, var(--legal-cyan), transparent);
    box-shadow: 0 0 12px var(--legal-cyan);
}

/* =========================================================
   Legal document navigation
   ========================================================= */
.legal-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: clamp(1.2rem, 2vw, 1.8rem) 0 clamp(1.8rem, 3vw, 2.8rem);
}

.legal-nav__link {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 5.3rem;
    align-items: center;
    gap: clamp(.75rem, 1.4vw, 1.6rem);
    padding: 1rem clamp(.9rem, 1.6vw, 1.5rem);
    border: 1px solid rgba(221, 236, 255, .12);
    background: rgba(8, 22, 38, .64);
    color: rgba(221, 236, 255, .72) !important;
    text-decoration: none;
    transition: background-color var(--legal-motion), border-color var(--legal-motion), color var(--legal-motion);
}

.legal-nav__link::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, var(--legal-cyan), rgba(40, 184, 255, .2), transparent);
    opacity: 0;
    transform: scaleX(.45);
    transform-origin: left;
    transition: opacity var(--legal-motion), transform var(--legal-motion);
}

.legal-nav__link:hover,
.legal-nav__link.is-active {
    border-color: rgba(40, 184, 255, .4);
    background: rgba(8, 124, 255, .105);
    color: var(--legal-white) !important;
}

.legal-nav__link:hover::after,
.legal-nav__link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.legal-nav__index {
    flex: 0 0 auto;
    color: var(--legal-cyan);
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.legal-nav__label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(.7rem, 1vw, .86rem);
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1.45;
    text-transform: uppercase;
}

.legal-nav__indicator {
    flex: 0 0 auto;
    color: rgba(221, 236, 255, .34);
    font-size: 1rem;
    transition: color var(--legal-motion), transform var(--legal-motion);
}

.legal-nav__link:hover .legal-nav__indicator,
.legal-nav__link.is-active .legal-nav__indicator {
    color: var(--legal-cyan);
    transform: translate(2px, -2px);
}

/* =========================================================
   Legal document / Reading area
   ========================================================= */
.legal-card {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding: clamp(1.45rem, 4.5vw, 4.5rem);
    border: 1px solid rgba(221, 236, 255, .12);
    background:
        linear-gradient(150deg, rgba(10, 29, 49, .97), rgba(5, 15, 28, .98) 40%, rgba(7, 18, 33, .99));
    box-shadow: 0 32px 100px rgba(0, 0, 0, .17);
    color: var(--legal-ice);
    font-size: clamp(.94rem, 1.04vw, 1.04rem);
    line-height: 1.85;
    overflow-wrap: break-word;
}

.legal-card::before {
    position: absolute;
    top: -1px;
    left: -1px;
    width: min(155px, 24%);
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--legal-cyan), rgba(40, 184, 255, 0));
    box-shadow: 0 0 18px rgba(40, 184, 255, .25);
}

.legal-card > :last-child,
.legal-card .legal-section:last-child > :last-child {
    margin-bottom: 0;
}

.legal-title {
    margin-bottom: clamp(1.15rem, 2.4vw, 2rem);
    padding-bottom: clamp(1.4rem, 3vw, 2.4rem);
    border-bottom: 1px solid var(--legal-border);
}

.legal-kicker {
    display: block;
    margin-bottom: .85rem;
    color: var(--legal-cyan);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.legal-title h1 {
    max-width: 17ch;
    margin: 0 0 1rem;
    color: var(--legal-white);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -.06em;
    line-height: 1.05;
    overflow-wrap: normal;
}

.legal-lead {
    max-width: 48rem;
    margin: 0;
    color: var(--legal-muted);
    font-size: clamp(.96rem, 1.3vw, 1.12rem);
    line-height: 1.85;
}

.legal-version,
.legal-note {
    color: #91a5bb;
    font-size: .87rem;
    line-height: 1.7;
}

.legal-section {
    padding: clamp(1.5rem, 2.7vw, 2.65rem) 0;
    border-bottom: 1px solid var(--legal-border);
}

.legal-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2,
.legal-section h3,
.legal-card > h2,
.legal-card > h3 {
    color: var(--legal-white);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.25;
}

.legal-section h2,
.legal-card > h2 {
    margin: 0 0 1.2rem;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.legal-section h3,
.legal-card > h3 {
    margin: 1.65rem 0 .75rem;
    font-size: clamp(1.06rem, 1.6vw, 1.3rem);
}

.legal-section p,
.legal-section li,
.legal-card > p,
.legal-card > ul,
.legal-card > ol {
    color: #c1ccda;
    line-height: 1.85;
}

.legal-section p,
.legal-card > p {
    margin-bottom: 1.1rem;
}

.legal-section li + li {
    margin-top: .48rem;
}

.legal-section ul,
.legal-section ol,
.legal-card > ul,
.legal-card > ol {
    padding-left: 1.35rem;
}

.legal-card strong,
.legal-card b {
    color: var(--legal-white);
    font-weight: 600;
}

.legal-card a:not(.btn) {
    color: #80d7ff;
    text-decoration-color: rgba(128, 215, 255, .48);
    text-underline-offset: .2em;
    transition: color var(--legal-motion), text-decoration-color var(--legal-motion);
}

.legal-card a:not(.btn):hover {
    color: var(--legal-white);
    text-decoration-color: var(--legal-white);
}

.legal-card code {
    color: #9cddff;
    overflow-wrap: anywhere;
}

.legal-card hr {
    border-color: var(--legal-border);
    opacity: 1;
}

.legal-card blockquote {
    margin: 1.5rem 0;
    padding: .8rem 0 .8rem 1.25rem;
    border-left: 2px solid var(--legal-cyan);
    color: #c1ccda;
}

.legal-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--legal-ice);
    --bs-table-border-color: rgba(221, 236, 255, .14);
    --bs-table-striped-bg: rgba(40, 184, 255, .035);
    --bs-table-striped-color: var(--legal-ice);
    width: 100%;
    margin-bottom: 1.3rem;
    border-color: rgba(221, 236, 255, .14);
    color: var(--legal-ice);
}

.legal-table th {
    color: #b9d9ed;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .095em;
    text-transform: uppercase;
}

.legal-table :is(th, td) {
    padding: .9rem .75rem;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.legal-card .table-responsive {
    scrollbar-color: rgba(40, 184, 255, .35) transparent;
}

/* =========================================================
   Footer
   ========================================================= */
.legal-footer {
    position: relative;
    border-top: 1px solid rgba(40, 184, 255, .18);
    background: #02050c;
}

.legal-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    min-height: 124px;
    padding: 2rem clamp(1.2rem, 3vw, 2.5rem);
}

.legal-footer__brand {
    display: grid;
    gap: .45rem;
    justify-items: start;
}

.legal-footer__name {
    color: var(--legal-white);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.legal-footer__location {
    color: var(--legal-cyan);
    font-size: .52rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.legal-footer__copyright,
.legal-footer__links {
    margin: 0;
    color: #8393a6;
    font-size: .65rem;
    line-height: 1.7;
}

.legal-footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .4rem;
    text-align: right;
}

.legal-footer__links a {
    display: inline-flex;
    gap: .4rem;
    color: var(--legal-white);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--legal-motion);
}

.legal-footer__links a:hover {
    color: var(--legal-cyan);
}

/* =========================================================
   Responsive and accessibility
   ========================================================= */
@media (max-width: 991.98px) {
    .legal-hero__heading {
        font-size: clamp(3.2rem, 7.2vw, 5.8rem);
    }

    .legal-hero__orbit {
        right: -5%;
        width: min(44vw, 350px);
    }

    .legal-footer__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.2rem;
    }

    .legal-footer__copyright {
        grid-row: 2;
        grid-column: 1 / -1;
    }

    .legal-footer__links {
        grid-row: 1;
        grid-column: 2;
    }
}

@media (max-width: 767.98px) {
    .legal-header__inner {
        min-height: 76px;
    }

    .legal-hero {
        padding-top: 3.2rem;
    }

    .legal-hero__heading {
        font-size: clamp(2.75rem, 9vw, 4.7rem);
    }

    .legal-hero__orbit {
        right: -18%;
        width: min(65vw, 340px);
        opacity: .62;
    }

    .legal-nav {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    .legal-nav__link {
        min-height: 3.8rem;
        gap: 1rem;
        padding: .83rem 1rem;
    }

    .legal-nav__label {
        font-size: .77rem;
    }

    .legal-card {
        padding: clamp(1.25rem, 4vw, 2.3rem);
    }
}

@media (max-width: 575.98px) {
    .legal-header__inner {
        gap: .6rem !important;
        padding-inline: 1rem;
    }

    .legal-brand {
        gap: .5rem;
    }

    .legal-brand__mark {
        width: 3.55rem;
    }

    .legal-brand__text strong {
        font-size: .78rem;
    }

    .legal-brand__text small {
        font-size: .45rem;
        letter-spacing: .12em;
    }

    .legal-home-btn {
        gap: .55rem;
        min-height: 2.75rem;
        padding: .65rem .8rem;
        font-size: .59rem;
    }

    .legal-home-btn__full {
        display: none;
    }

    .legal-home-btn__short {
        display: inline;
    }

    .legal-shell {
        padding-inline: 1rem;
        padding-bottom: 4.3rem;
    }

    .legal-hero {
        padding-top: 2.8rem;
        padding-bottom: 2.1rem;
    }

    .legal-hero__topline {
        margin-bottom: 2rem;
        font-size: .49rem;
        letter-spacing: .12em;
    }

    .legal-hero__topline span:last-child {
        display: none;
    }

    .legal-hero__heading {
        font-size: clamp(2.1rem, 10vw, 3.5rem);
        line-height: .98;
    }

    .legal-hero__intro {
        margin-top: 1.4rem;
        font-size: .89rem;
        line-height: 1.7;
    }

    .legal-nav {
        margin-block: 1.1rem 1.6rem;
    }

    .legal-card {
        padding: 1.4rem 1.1rem;
        font-size: .94rem;
    }

    .legal-title h1 {
        font-size: clamp(1.85rem, 8vw, 2.5rem);
    }

    .legal-section {
        padding-block: 1.45rem;
    }

    /* 窄屏保留表格的列结构，允许横向滚动阅读. */
    .legal-table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-color: rgba(40, 184, 255, .42) transparent;
    }

    .legal-table :is(th, td) {
        overflow-wrap: normal;
    }

    .legal-footer__inner {
        grid-template-columns: 1fr;
        gap: 1.15rem;
        padding-inline: 1rem;
    }

    .legal-footer__brand,
    .legal-footer__links,
    .legal-footer__copyright {
        grid-row: auto;
        grid-column: 1;
    }

    .legal-footer__links {
        align-items: flex-start;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .legal-page *,
    .legal-page *::before,
    .legal-page *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
