:root {
    --bg: #080b14;
    --bg-soft: #0f1321;
    --panel: rgba(11, 14, 24, 0.76);
    --panel-strong: rgba(15, 19, 33, 0.92);
    --line: rgba(136, 149, 255, 0.16);
    --text: #f3f5fb;
    --muted: #9fa7bb;
    --primary: #7d89ff;
    --primary-strong: #6170ff;
    --accent: #b1b7ff;
    --danger: #ff7b8e;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Outfit", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top center, rgba(125, 137, 255, 0.18), transparent 26%),
        linear-gradient(180deg, #0a0d16 0%, #06070d 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    font-family: "Space Grotesk", monospace;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
    position: relative;
    z-index: 3;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand__mark {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 20px rgba(116, 242, 206, 0.35);
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    flex-wrap: wrap;
}

.pill,
.feedback,
.member-card__badge,
.plan-card__ribbon,
.eyebrow {
    border-radius: 999px;
}

.pill {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.feedback-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.feedback {
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
}

.feedback--success { border-color: rgba(116, 242, 206, 0.4); }
.feedback--info { border-color: rgba(255, 200, 87, 0.35); }
.feedback--error { border-color: rgba(255, 123, 142, 0.4); }

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
    padding: 72px 48px 56px;
    min-height: 760px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, rgba(10, 13, 22, 0.4), rgba(7, 9, 15, 0.85));
    box-shadow: var(--shadow);
}

.hero__backdrop,
.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__backdrop {
    background:
        linear-gradient(180deg, rgba(11, 14, 24, 0.44), rgba(11, 14, 24, 0.9)),
        url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
    transform: scale(1.03);
    filter: saturate(0.7) brightness(0.45);
}

.hero__overlay {
    background:
        linear-gradient(rgba(125, 137, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 137, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(125, 137, 255, 0.15), transparent 34%);
    background-size: 44px 44px, 44px 44px, auto;
    opacity: 0.65;
}

.hero__copy,
.hero__panel {
    position: relative;
    z-index: 2;
}

.hero h1,
.section h2,
.member-card h3,
.auth-card h2,
.plan-card h3 {
    font-family: "Space Grotesk", sans-serif;
    margin: 0;
}

.hero h1 {
    font-size: clamp(3.6rem, 8vw, 6.9rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    max-width: 10ch;
}

.hero h1 span {
    color: var(--primary);
}

.eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    margin: 0 0 14px;
    color: #c7cdff;
    background: rgba(125, 137, 255, 0.10);
    border: 1px solid rgba(125, 137, 255, 0.25);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead,
.member-card p,
.auth-card p,
.delivery-card p,
.locked-panel p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero__cta,
.member-grid,
.plans,
.auth-section {
    display: grid;
    gap: 16px;
}

.hero__cta {
    grid-template-columns: repeat(2, max-content);
    margin: 28px 0 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    color: #f6f7ff;
    background: linear-gradient(135deg, rgba(125, 137, 255, 0.2), rgba(97, 112, 255, 0.18));
    border: 1px solid rgba(125, 137, 255, 0.45);
    box-shadow: 0 18px 40px rgba(97, 112, 255, 0.18), inset 0 0 20px rgba(125, 137, 255, 0.12);
}

.button--ghost {
    color: var(--text);
    background: rgba(15, 17, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.button--disabled {
    color: rgba(243, 245, 251, 0.55);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
    box-shadow: none;
}

.button--small {
    min-height: 42px;
    padding-inline: 14px;
}

.glass-card,
.member-card,
.plan-card,
.auth-card,
.delivery-card,
.locked-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.glass-card {
    padding: 28px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    background: rgba(11, 14, 24, 0.76);
}

.glass-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 137, 255, 0.24), transparent 65%);
}

.glass-card__label,
.member-card__label,
.plan-card__name {
    margin: 0 0 14px;
    color: #c9d0ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.glass-card__title {
    margin: 0 0 18px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.8rem;
    line-height: 1.1;
}

.timeline {
    margin: 0;
    padding-left: 20px;
    color: var(--text);
    line-height: 1.8;
}

.mini-terminal {
    margin-top: 26px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(125, 137, 255, 0.18);
}

.mini-terminal span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.mini-terminal strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
}

.section {
    padding: 36px 0;
}

.section__head {
    margin-bottom: 20px;
}

.section__head h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.section__head--center {
    text-align: center;
}

.section__subcopy {
    max-width: 760px;
    margin: 14px auto 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

.member-grid,
.plans,
.auth-section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-card,
.plan-card,
.auth-card,
.delivery-card,
.locked-panel {
    border-radius: 28px;
    padding: 24px;
}

.member-card--highlight {
    background:
        radial-gradient(circle at top right, rgba(125, 137, 255, 0.18), transparent 28%),
        var(--panel-strong);
}

.member-card__badge {
    display: inline-flex;
    padding: 10px 14px;
    margin-top: 12px;
    background: rgba(125, 137, 255, 0.16);
    color: #d7dcff;
}

.text-link {
    color: var(--primary);
}

.plan-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card--active {
    border-color: rgba(125, 137, 255, 0.42);
    box-shadow: 0 24px 70px rgba(97, 112, 255, 0.14);
}

.plan-card__ribbon {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 8px 12px;
    background: rgba(125, 137, 255, 0.16);
    color: #d7dcff;
    font-size: 0.8rem;
}

.plan-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.payment-note {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(125, 137, 255, 0.16);
    background: rgba(125, 137, 255, 0.07);
    color: #cfd5ff;
}

.checkout-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 22px;
    margin-top: 26px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(125, 137, 255, 0.16);
    background:
        radial-gradient(circle at top right, rgba(125, 137, 255, 0.18), transparent 24%),
        rgba(17, 19, 28, 0.88);
    box-shadow: var(--shadow);
}

.checkout-panel[hidden] {
    display: none;
}

.checkout-panel__copy p {
    color: var(--muted);
    line-height: 1.75;
}

.checkout-form {
    display: grid;
    gap: 14px;
}

.checkout-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.checkout-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
}

.payment-element-shell {
    min-height: 82px;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.checkout-page {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 26px;
    align-items: start;
}

.checkout-sidebar,
.checkout-main,
.checkout-box {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 19, 28, 0.82);
    box-shadow: var(--shadow);
}

.checkout-sidebar,
.checkout-main {
    padding: 24px;
}

.checkout-page--shop {
    grid-template-columns: 300px 1fr;
    gap: 0;
    min-height: 760px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    overflow: hidden;
    background: #07090d;
}

.checkout-sidebar--shop,
.checkout-main--shop {
    min-height: 760px;
    border-radius: 0;
    box-shadow: none;
}

.checkout-sidebar--shop {
    background: #1a1a1a;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-main--shop {
    background: #050607;
}

.checkout-sidebar__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 34px;
}

.checkout-sidebar__head h2,
.checkout-suggestion h3,
.checkout-product--shop h3 {
    margin: 0;
    font-size: 1rem;
}

.checkout-sidebar__head a,
.checkout-breadcrumb span,
.checkout-product--shop strong,
.checkout-suggestion p {
    color: #e8edf7;
}

.checkout-product {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
}

.checkout-product--shop {
    align-items: start;
    margin-bottom: 40px;
}

.checkout-product--shop img,
.checkout-suggestion img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
}

.checkout-product img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
}

.checkout-product p,
.checkout-summary__row span,
.checkout-main p {
    color: var(--muted);
}

.checkout-form--shop {
    gap: 26px;
}

.checkout-form--shop label {
    font-weight: 600;
    color: #f2f6ff;
}

.checkout-form--shop input {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.checkout-summary {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 14px;
}

.checkout-summary--shop {
    margin-top: 48px;
    padding-top: 18px;
}

.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.checkout-summary__row--total {
    font-size: 1.2rem;
}

.checkout-form--large {
    margin-top: 20px;
}

.checkout-submit {
    width: 100%;
    justify-content: center;
    background: #18aee8;
    color: #fff;
}

.checkout-box {
    padding: 20px;
}

.checkout-breadcrumb {
    display: flex;
    gap: 12px;
    color: #97a7bc;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.checkout-breadcrumb span:not(:last-child)::after {
    content: "›";
    margin-left: 12px;
    color: #5c6b7c;
}

.checkout-suggestions {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.checkout-suggestion {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1c1c1c;
}

.checkout-suggestion__info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.checkout-add {
    min-width: 92px;
    justify-content: center;
    background: #061317;
    border-color: #0f2025;
}

.checkout-box--details {
    margin-top: 40px;
    background: #0d1016;
}

.invoice-list-card,
.invoice-sheet {
    border-radius: 28px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 19, 28, 0.82);
    box-shadow: var(--shadow);
}

.invoice-list-card {
    margin-top: 24px;
}

.invoice-list {
    display: grid;
    gap: 12px;
}

.invoice-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(125, 137, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    text-decoration: none;
}

.invoice-row:hover {
    border-color: rgba(125, 137, 255, 0.3);
}

.invoice-empty,
.invoice-meta {
    color: var(--muted);
    line-height: 1.7;
}

.invoice-page {
    padding: 48px 0;
}

.invoice-head,
.invoice-grid {
    display: grid;
    gap: 18px;
}

.invoice-head {
    grid-template-columns: 1.2fr 1fr;
    margin-bottom: 26px;
}

.invoice-company p,
.invoice-block p {
    margin: 6px 0 0;
    color: var(--muted);
}

.invoice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 24px;
}

.invoice-block {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.invoice-table th,
.invoice-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.invoice-table tfoot td {
    font-weight: 600;
}

.plan-card__desc {
    color: var(--muted);
    line-height: 1.7;
}

.feature-list {
    margin: 14px 0 22px;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
    flex: 1;
}

.auth-section {
    align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-section--single {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

.auth-card--wide {
    grid-column: 1 / -1;
}

.auth-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.auth-hint {
    margin-top: 18px;
    color: #cfd5ff;
}

.faq-section {
    padding-top: 52px;
}

.faq-list {
    display: grid;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}

.faq-item {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 19, 28, 0.82);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 26px 58px 26px 22px;
    position: relative;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    color: #eef0ff;
    font-size: 1.7rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item p {
    margin: 0;
    padding: 0 22px 24px;
    color: var(--muted);
    line-height: 1.75;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.auth-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
}

.locked-panel,
.delivery-card {
    max-width: 860px;
}

.workflow-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.workflow-step {
    position: relative;
    padding: 18px 18px 16px;
    border-radius: 24px;
    border: 1px solid rgba(125, 137, 255, 0.14);
    background: rgba(8, 10, 17, 0.52);
    backdrop-filter: blur(12px);
}

.workflow-step h3 {
    margin: 0 0 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
}

.workflow-step p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
}

.workflow-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 18px;
    border: 1px solid rgba(125, 137, 255, 0.3);
    background: rgba(125, 137, 255, 0.10);
    color: #eef0ff;
    font-size: 1.45rem;
    box-shadow: inset 0 0 22px rgba(125, 137, 255, 0.08);
}

.workflow-step__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workflow-step__tags span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(72, 82, 184, 0.26);
    color: #c9d0ff;
    font-size: 0.84rem;
}

.site-footer {
    margin-top: 42px;
    padding: 42px 32px 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(13, 15, 24, 0.92);
    box-shadow: var(--shadow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: 34px;
}

.footer-brand p,
.footer-bottom p,
.footer-column a {
    color: var(--muted);
    line-height: 1.8;
}

.brand--footer {
    margin-bottom: 22px;
}

.footer-discord {
    margin-top: 22px;
    width: max-content;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h3 {
    margin: 0 0 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
}

.footer-column a {
    transition: color 0.2s ease;
}

.footer-column a:hover,
.footer-bottom a:hover {
    color: var(--text);
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom a {
    color: var(--primary);
}

.legal-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 48px;
}

.legal-page {
    background:
        radial-gradient(circle at top center, rgba(125, 137, 255, 0.14), transparent 22%),
        linear-gradient(180deg, #090c14 0%, #06070d 100%);
}

.legal-page-shell {
    min-height: 100vh;
}

.legal-topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 19, 0.86);
    backdrop-filter: blur(16px);
}

.legal-topbar__inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.legal-topbar__nav {
    font-size: 0.95rem;
}

.legal-topbar-spacer {
    height: 56px;
}

.legal-hero {
    padding: 44px 0 18px;
}

.legal-hero__inner {
    max-width: 860px;
}

.legal-hero h1,
.legal-section h2 {
    font-family: "Space Grotesk", sans-serif;
    margin: 0;
}

.legal-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.legal-intro,
.legal-section p,
.legal-list,
.legal-meta,
.legal-toc__list a {
    color: var(--muted);
    line-height: 1.8;
}

.legal-intro {
    max-width: 72ch;
    margin: 16px 0 0;
    font-size: 1rem;
}

.legal-meta {
    margin: 18px 0 0;
    font-size: 0.92rem;
}

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

.legal-toc {
    position: sticky;
    top: 84px;
}

.legal-toc__card,
.legal-document {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(13, 15, 24, 0.88);
    box-shadow: var(--shadow);
}

.legal-toc__card {
    border-radius: 20px;
    padding: 22px 20px;
}

.legal-toc__label {
    margin: 0 0 14px;
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.legal-toc__list a {
    display: inline-flex;
    transition: color 0.2s ease, transform 0.2s ease;
}

.legal-toc__list a:hover {
    color: var(--text);
    transform: translateX(3px);
}

.legal-document {
    border-radius: 24px;
    padding: 36px 42px;
}

.legal-section {
    padding: 0 0 32px;
    margin: 0 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.legal-section h2 {
    margin-bottom: 16px;
    color: var(--text);
    font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem);
    line-height: 1.1;
}

.legal-section p {
    margin: 0 0 14px;
}

.legal-section strong {
    color: var(--text);
}

.legal-list {
    margin: 0;
    padding-left: 22px;
}

.legal-list li {
    margin-bottom: 10px;
}

.legal-document a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(125, 137, 255, 0.4);
    text-underline-offset: 0.2em;
}

nav a[aria-current="page"] {
    color: var(--text);
}

.legal-footer {
    width: min(1240px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 980px) {
    .hero,
    .member-grid,
    .plans,
    .auth-section {
        grid-template-columns: 1fr;
    }

    .checkout-panel {
        grid-template-columns: 1fr;
    }

    .checkout-page {
        grid-template-columns: 1fr;
    }

    .checkout-page--shop {
        grid-template-columns: 1fr;
    }

    .invoice-row,
    .invoice-head,
    .invoice-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 56px 24px 34px;
    }

    .hero__cta,
    .workflow-strip {
        grid-template-columns: 1fr;
    }

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

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

    .legal-toc {
        position: static;
    }

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

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

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1 {
        max-width: none;
    }

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

    .site-footer {
        padding: 28px 20px 22px;
    }

    .legal-shell,
    .legal-topbar__inner,
    .legal-footer {
        width: min(100% - 20px, 1240px);
    }

    .legal-topbar__inner {
        align-items: flex-start;
        padding: 10px 0;
    }

    .legal-topbar-spacer {
        height: 84px;
    }

    .legal-hero {
        padding-top: 30px;
    }

    .legal-document {
        padding: 22px 18px;
    }

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