:root {
    --teal-50: #e8fffc;
    --teal-100: #c9fff8;
    --teal-200: #95f4e8;
    --teal-300: #62e4d7;
    --teal-400: #3bd3c6;
    --teal-500: #20bcb2;
    --teal-600: #129c95;
    --teal-700: #0c7d78;

    --navy-1000: #02080d;
    --navy-975: #041018;
    --navy-950: #06131d;
    --navy-925: #081923;
    --navy-900: #0a1e29;
    --navy-850: #0d2633;
    --navy-800: #112f3d;
    --navy-750: #173847;
    --navy-700: #1d4353;

    --slate-100: #edf6f7;
    --slate-200: #d4e3e6;
    --slate-300: #b3c8cd;
    --slate-400: #91aab1;
    --slate-500: #708b93;
    --slate-600: #526d76;
    --slate-700: #334e59;

    --white: #ffffff;

    --surface-primary: #06131d;
    --surface-secondary: #0a1e29;
    --surface-tertiary: #0d2633;
    --surface-card: rgba(13, 38, 51, 0.82);
    --surface-card-solid: #0d2633;

    --border-subtle: rgba(98, 228, 215, 0.12);
    --border-medium: rgba(98, 228, 215, 0.22);

    --text-primary: #f3fbfc;
    --text-secondary: #b3c8cd;
    --text-muted: #78949c;

    --shadow-sm:
        0 2px 8px rgba(0, 0, 0, 0.18);

    --shadow-md:
        0 18px 45px rgba(0, 0, 0, 0.28);

    --shadow-lg:
        0 34px 90px rgba(0, 0, 0, 0.42);

    --teal-glow:
        0 0 35px rgba(59, 211, 198, 0.18);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --container: 1180px;
    --transition: 180ms ease;
}


/* =========================================
   RESET
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text-primary);
    background:
        linear-gradient(
            180deg,
            var(--navy-975) 0%,
            var(--navy-950) 100%
        );

    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -0.035em;
}

p:last-child {
    margin-bottom: 0;
}

ul {
    margin: 0;
    padding: 0;
}


/* =========================================
   GLOBAL LAYOUT
========================================= */

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

.section-heading {
    width: min(760px, 100%);
    margin: 0 auto 56px;
    text-align: center;
}

.section-heading-left {
    margin-left: 0;
    text-align: left;
}

.section-heading h2,
.status-content h2,
.security-layout h2,
.cta-inner h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p,
.status-content p,
.security-layout p {
    color: var(--text-secondary);
    font-size: 1.08rem;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--teal-300);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-kicker-light {
    color: var(--teal-100);
}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(4, 16, 24, 0.9);
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.brand-logo {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(98, 228, 215, 0.26);
    border-radius: 14px;
    background: var(--navy-900);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.28),
        0 0 20px rgba(59, 211, 198, 0.11);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    color: var(--text-primary);
    font-size: 1.26rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.brand-name span {
    color: var(--teal-300);
}

.brand-version {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-navigation a {
    padding: 10px 13px;
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 650;

    transition:
        color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--teal-200);
    background: rgba(59, 211, 198, 0.09);
}

.main-navigation .nav-button {
    margin-left: 8px;
    padding-inline: 19px;
    color: var(--navy-1000);
    background: var(--teal-300);
    box-shadow:
        0 8px 24px rgba(59, 211, 198, 0.16);
}

.main-navigation .nav-button:hover {
    color: var(--navy-1000);
    background: var(--teal-200);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--navy-850);
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--teal-200);
}


/* =========================================
   BUTTONS
========================================= */

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 750;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

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

.button-primary {
    color: var(--white);
    background: var(--teal-600);
    box-shadow:
        0 12px 28px rgba(8, 127, 122, 0.22);
}

.button-primary:hover {
    background: var(--teal-700);
    box-shadow:
        0 16px 34px rgba(8, 127, 122, 0.28);
}

.button-secondary {
    border-color: var(--border-medium);
    color: var(--text-primary);
    background: rgba(13, 38, 51, 0.68);
}

.button-secondary:hover {
    border-color: var(--teal-300);
    background: var(--navy-800);
}

.button-light {
    flex-shrink: 0;
    color: var(--navy-900);
    background: var(--white);
}

.button-light:hover {
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.16);
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 115px 0 125px;

    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(59, 211, 198, 0.12),
            transparent 31%
        ),
        radial-gradient(
            circle at 8% 85%,
            rgba(18, 156, 149, 0.08),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            var(--navy-975) 0%,
            var(--navy-950) 48%,
            var(--navy-900) 100%
        );
}

.hero::before {
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(98, 228, 215, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(98, 228, 215, 0.035) 1px,
            transparent 1px
        );

    background-size: 48px 48px;
    content: "";

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.85),
            transparent 88%
        );
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}

.hero-glow-one {
    top: -140px;
    right: 10%;
    width: 360px;
    height: 360px;
    background: rgba(103, 211, 204, 0.24);
}

.hero-glow-two {
    bottom: -180px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(15, 159, 152, 0.13);
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    align-items: center;
    gap: 76px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 27px;
    padding: 7px 12px;
    border: 1px solid var(--border-medium);
    border-radius: 999px;
    color: var(--teal-200);
    background: rgba(13, 38, 51, 0.66);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-500);
    box-shadow:
        0 0 0 5px rgba(15, 159, 152, 0.12);
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 27px;
    color: var(--text-primary);
    font-size: clamp(3.2rem, 6.7vw, 5.8rem);
}

.hero h1 span {
    display: block;
    color: var(--teal-300);
    text-shadow:
        0 0 38px rgba(59, 211, 198, 0.12);
}

.hero-description {
    max-width: 650px;
    margin-bottom: 34px;
    color: var(--text-secondary);
    font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    color: var(--slate-500);
    font-size: 0.92rem;
}

.hero-trust strong {
    color: var(--text-primary);
}

.hero-visual {
    position: relative;
}

.workflow-card {
    padding: 27px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            155deg,
            rgba(17, 47, 61, 0.9),
            rgba(6, 19, 29, 0.96)
        );

    box-shadow:
        var(--shadow-lg),
        var(--teal-glow);

    backdrop-filter: blur(18px);
}

.workflow-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.workflow-label {
    color: var(--teal-600);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.workflow-header h2 {
    margin: 5px 0 0;
    font-size: 1.45rem;
}

.workflow-status {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--teal-700);
    background: var(--teal-100);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.workflow {
    padding: 4px;
}

.workflow-node {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(4, 16, 24, 0.62);
    box-shadow: var(--shadow-sm);
}

.workflow-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
}

.workflow-summary div {
    padding: 13px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: rgba(13, 38, 51, 0.76);
}

.workflow-summary span,
.workflow-summary strong {
    display: block;
}

.workflow-summary span {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.workflow-summary strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.node-number {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 11px;
    color: var(--navy-1000);
    background: var(--teal-300);
    font-size: 0.72rem;
    font-weight: 850;
}

.workflow-summary div {
    padding: 13px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: rgba(13, 38, 51, 0.76);
}

.workflow-summary span {
    color: var(--text-muted);
}

.workflow-summary strong {
    color: var(--text-primary);
}

.workflow-line {
    display: flex;
    height: 27px;
    justify-content: flex-start;
    padding-left: 37px;
}

.workflow-line span {
    width: 2px;
    background:
        linear-gradient(
            var(--teal-300),
            var(--slate-300)
        );
}

.workflow-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
}

.workflow-summary div {
    padding: 13px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: rgba(13, 38, 51, 0.76);
}

.workflow-summary span,
.workflow-summary strong {
    display: block;
}

.workflow-summary span {
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.workflow-summary strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}


/* =========================================
   PRINCIPLES
========================================= */

.principles-section {
    background: var(--navy-950);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.principle-card {
    min-height: 275px;
    padding: 28px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background:
        linear-gradient(
            145deg,
            rgba(17, 47, 61, 0.72),
            rgba(8, 25, 35, 0.88)
        );
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.principle-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-5px);
    box-shadow:
        var(--shadow-md),
        0 0 30px rgba(59, 211, 198, 0.06);
}

.principle-card h3 {
    color: var(--text-primary);
}

.principle-card p {
    color: var(--text-secondary);
}

.principle-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 46px;
    place-items: center;
    border-radius: 13px;
    color: var(--teal-700);
    background: var(--teal-100);
    font-size: 0.78rem;
    font-weight: 850;
}

.principle-card h3 {
    margin-bottom: 13px;
    font-size: 1.35rem;
}

.principle-card p {
    color: var(--slate-600);
}

/* =========================================
   PRINCIPLE CARDS WITH IMAGES
========================================= */

.principle-card-image {
    display: flex;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    flex-direction: column;
}

.principle-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--navy-950);
}

.principle-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principle-content {
    display: flex;
    min-height: 240px;
    padding: 24px 24px 28px;
    flex: 1;
    flex-direction: column;
}

.principle-number {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 13px;
    color: var(--navy-950);
    background: var(--teal-100);
    font-size: 0.78rem;
    font-weight: 850;
}

.principle-content h3 {
    margin-bottom: 13px;
}

.principle-content p {
    color: var(--text-secondary);
}

@media (max-width: 1020px) {
    .principle-content {
        min-height: 210px;
    }
}

@media (max-width: 780px) {
    .principle-image {
        aspect-ratio: 16 / 11;
    }

    .principle-content {
        min-height: auto;
    }
}

/* =========================================
   PROCESS
========================================= */

.workflow-section {
    background: var(--navy-925);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.process-card {
    display: flex;
    min-height: 360px;
    gap: 18px;
    padding: 30px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background:
        linear-gradient(
            145deg,
            rgba(17, 47, 61, 0.72),
            rgba(8, 25, 35, 0.88)
        );
    box-shadow: var(--shadow-sm);
}

.process-card h3 {
    color: var(--text-primary);
}

.process-card p,
.process-card li {
    color: var(--text-secondary);
}

.process-number {
    color: var(--teal-500);
    font-size: 0.83rem;
    font-weight: 850;
}

.process-card h3 {
    margin-bottom: 16px;
    font-size: 1.42rem;
}

.process-card p {
    margin-bottom: 24px;
    color: var(--slate-600);
}

.process-card ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.process-card li {
    position: relative;
    padding-left: 20px;
    color: var(--slate-700);
    font-size: 0.93rem;
}

.process-card li::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal-500);
    content: "";
}


/* =========================================
   STATUS
========================================= */

.status-section {
    background: var(--navy-950);
}

.status-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
    align-items: center;
    gap: 85px;
}

.status-content p {
    max-width: 650px;
}

.status-panel {
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background:
        linear-gradient(
            145deg,
            rgba(17, 47, 61, 0.72),
            rgba(8, 25, 35, 0.88)
        );
    box-shadow: var(--shadow-md);
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 21px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.status-row span {
    color: var(--text-muted);
}

.status-row strong {
    color: var(--text-primary);
    text-align: right;
    font-size: 0.92rem;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 21px 24px;
    border-bottom: 1px solid var(--slate-200);
}

.status-row:last-child {
    border-bottom: 0;
}

.status-row span {
    color: var(--slate-500);
    font-size: 0.9rem;
}

.status-row strong {
    text-align: right;
    font-size: 0.92rem;
}


/* =========================================
   SECURITY
========================================= */

.security-section {
    padding-top: 30px;
}

.security-layout {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 36px;
    padding: 48px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            130deg,
            rgba(18, 156, 149, 0.12),
            rgba(13, 38, 51, 0.72)
        );

    box-shadow:
        var(--shadow-md),
        0 0 45px rgba(59, 211, 198, 0.06);
}

.security-icon {
    display: grid;
    width: 100px;
    height: 100px;
    place-items: center;
    border-radius: 28px;
    color: var(--navy-1000);
    background: var(--teal-300);
    box-shadow:
        0 16px 34px rgba(59, 211, 198, 0.16);
}

.security-icon span {
    font-size: 2.3rem;
    font-weight: 900;
}

.security-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 23px;
}

.security-links a {
    color: var(--teal-700);
    font-weight: 750;
}

.security-links a:hover {
    text-decoration: underline;
}


/* =========================================
   CTA
========================================= */

.cta-section {
    padding: 80px 0;
    color: var(--white);
    background:
        linear-gradient(
            120deg,
            var(--navy-950),
            var(--navy-800)
        );
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-inner h2 {
    margin-bottom: 12px;
    color: var(--white);
}

.cta-inner p {
    color: var(--slate-300);
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    color: var(--slate-300);
    background: var(--navy-950);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    padding-top: 72px;
    padding-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--white);
    font-size: 1.48rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.footer-logo span {
    color: var(--teal-300);
}

.footer-brand p {
    color: var(--slate-400);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.footer-links strong {
    margin-bottom: 5px;
    color: var(--white);
    font-size: 0.84rem;
}

.footer-links a {
    color: var(--slate-400);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--teal-300);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-top: 23px;
    padding-bottom: 25px;
    border-top: 1px solid rgba(148, 163, 184, 0.17);
}

.footer-bottom p {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.78rem;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1020px) {

    .hero-layout,
    .status-layout {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        gap: 60px;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-visual {
        max-width: 670px;
    }

    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .process-card {
        min-height: auto;
    }

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


@media (max-width: 780px) {

    .section {
        padding: 82px 0;
    }

    .mobile-menu-button {
        display: block;
    }

    .main-navigation {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(4, 16, 24, 0.98);
    box-shadow: var(--shadow-md);
}

    .main-navigation.open {
        display: flex;
    }

    .main-navigation a {
        padding: 13px 15px;
    }

    .main-navigation .nav-button {
        margin: 7px 0 0;
    }

    .hero {
        padding: 85px 0 95px;
    }

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

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.8rem);
    }

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

    .principle-card {
        min-height: auto;
    }

    .principle-icon {
        margin-bottom: 30px;
    }

    .security-layout {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .security-icon {
        width: 74px;
        height: 74px;
        border-radius: 21px;
    }

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

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
    }
	
	/* =========================================
   SITE TOOLS: BACK TO TOP + LEGAL NAVIGATION
   Add this block at the END of css/style.css
========================================= */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(98, 228, 215, 0.3);
    border-radius: 50%;
    color: var(--navy-1000);
    background: var(--teal-300);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.32),
        0 0 25px rgba(59, 211, 198, 0.16);
    font-size: 1.35rem;
    font-weight: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition),
        background var(--transition);
}

.back-to-top:hover {
    background: var(--teal-200);
    transform: translateY(-3px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.reading-progress {
    position: fixed;
    z-index: 1400;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    pointer-events: none;
    background: transparent;
}

.reading-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--teal-500),
        var(--teal-200)
    );
    box-shadow: 0 0 12px rgba(59, 211, 198, 0.35);
}

.legal-sections-button {
    position: fixed;
    right: 24px;
    bottom: 84px;
    z-index: 1200;
    display: none;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid var(--border-medium);
    border-radius: 999px;
    color: var(--text-primary);
    background: rgba(13, 38, 51, 0.96);
    box-shadow: var(--shadow-md);
    font-weight: 750;
    backdrop-filter: blur(16px);
}

.legal-sections-button:hover {
    border-color: var(--teal-300);
    color: var(--teal-200);
}

.legal-sections-overlay {
    position: fixed;
    z-index: 1290;
    inset: 0;
    opacity: 0;
    background: rgba(2, 8, 13, 0.66);
    backdrop-filter: blur(4px);
    transition: opacity 220ms ease;
}

.legal-sections-overlay.open {
    opacity: 1;
}

.legal-sections-drawer {
    position: fixed;
    z-index: 1300;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(72vh, 680px);
    overflow: auto;
    padding: 22px 20px 28px;
    border-top: 1px solid var(--border-medium);
    border-radius: 24px 24px 0 0;
    background:
        linear-gradient(
            160deg,
            var(--navy-850),
            var(--navy-950)
        );
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.48);
    transform: translateY(105%);
    transition: transform 220ms ease;
}

.legal-sections-drawer.open {
    transform: translateY(0);
}

.legal-sections-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-sections-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.legal-sections-close {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--teal-200);
    background: var(--navy-900);
    font-size: 1.6rem;
    line-height: 1;
}

.legal-sections-nav {
    display: grid;
    gap: 7px;
}

.legal-sections-nav a {
    display: block;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

.legal-sections-nav a:hover,
.legal-sections-nav a.active,
.legal-sections-nav a[aria-current="true"] {
    border-color: var(--border-medium);
    color: var(--teal-200);
    background: rgba(59, 211, 198, 0.08);
}

/* Active state for the existing desktop legal contents menu */
.legal-sidebar a.active,
.legal-toc a.active,
.contents-nav a.active,
.legal-contents a.active,
[data-legal-contents] a.active {
    color: var(--teal-200);
    background: rgba(59, 211, 198, 0.08);
}

body.legal-menu-open {
    overflow: hidden;
}

/* Optional hamburger-to-X animation */
.mobile-menu-button span {
    transition:
        transform var(--transition),
        opacity var(--transition);
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 780px) {
    .legal-sections-button {
        display: inline-flex;
    }

    .back-to-top {
        right: 18px;
        bottom: 20px;
    }

    .legal-sections-button {
        right: 18px;
        bottom: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .legal-sections-overlay,
    .legal-sections-drawer,
    .mobile-menu-button span {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

}